OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 25-Oct-2002 21:41:09
Branch: HEAD Handle: 2002102520410900
Modified files:
openpkg-src/imagemagick imagemagick.spec
Log:
make Perl support automatic; add automatic X11 support
Summary:
Revision Changes Path
1.65 +20 -3 openpkg-src/imagemagick/imagemagick.spec
____________________________________________________________________________
Index: openpkg-src/imagemagick/imagemagick.spec
============================================================
$ cvs diff -u -r1.64 -r1.65 imagemagick.spec
--- openpkg-src/imagemagick/imagemagick.spec 25 Oct 2002 08:38:54 -0000 1.64
+++ openpkg-src/imagemagick/imagemagick.spec 25 Oct 2002 19:41:09 -0000 1.65
@@ -25,7 +25,10 @@
# package options
%ifndef with_perl
-%define with_perl no
+%define with_perl %{l_test -p perl}
+%endif
+%ifndef with_x11
+%define with_x11 %{l_test -p x11}
%endif
# package version
@@ -61,6 +64,10 @@
BuildPreReq: perl
PreReq: perl
%endif
+%if "%{with_x11}" == "yes"
+BuildPreReq: X11
+PreReq: X11
+%endif
AutoReq: no
AutoReqProv: no
@@ -75,6 +82,10 @@
Image processing operations are available from the command line, as
well as through C, C++, and PERL-based programming interfaces.
+ Options:
+ --define 'with_perl %{with_perl}'
+ --define 'with_x11 %{with_x11}'
+
%prep
%setup -q -n ImageMagick-%{V_major}
%{l_shtool} subst \
@@ -98,8 +109,14 @@
--with-jpeg \
--with-png \
--without-perl \
- --without-threads \
- --without-x
+%if "%{with_x11}" == "yes"
+ --with-x \
+ --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+ --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
+%else
+ --without-x \
+%endif
+ --without-threads
%{l_make} %{l_mflags}
%install
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]