OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Jan-2004 15:22:39
Branch: HEAD Handle: 2004010914223900
Modified files:
openpkg-src/gd gd.spec
Log:
added optional xpm support
Summary:
Revision Changes Path
1.62 +15 -0 openpkg-src/gd/gd.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gd/gd.spec
============================================================================
$ cvs diff -u -r1.61 -r1.62 gd.spec
--- openpkg-src/gd/gd.spec 9 Jan 2004 08:16:25 -0000 1.61
+++ openpkg-src/gd/gd.spec 9 Jan 2004 14:22:39 -0000 1.62
@@ -35,6 +35,9 @@
Version: 2.0.20
Release: 20040109
+# package options
+%option with_xpm no
+
# list of sources
Source0: http://www.boutell.com/gd/http/gd-%{version}.tar.gz
Patch0: gd.patch
@@ -46,6 +49,10 @@
PreReq: OpenPKG, openpkg >= 20030709, perl
BuildPreReq: png, zlib, jpeg, freetype
PreReq: png, zlib, jpeg, freetype
+%if "%{with_xpm}" == "yes"
+BuildPreReq: X11, xpm
+PreReq: X11, xpm
+%endif
AutoReq: no
AutoReqProv: no
@@ -73,7 +80,15 @@
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix} \
+%if "%{with_xpm}" == "yes"
+ --with-x \
+ --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+ --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
+ --with-xpm=%{l_prefix} \
+%else
--without-x \
+ --without-xpm \
+%endif
--with-png=%{l_prefix} \
--with-freetype=%{l_prefix} \
--with-jpeg=%{l_prefix} \
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]