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: 11-Oct-2003 20:15:46
Branch: HEAD Handle: 2003101119154600
Modified files:
openpkg-src/ghostscript ghostscript.spec
Log:
great idea, but let's use the already existing XCFLAGS substitution,
enable the stuff by default and just name it with_a4 because I think
this is already clear that it is just the default and it can be
overridden explicitly
Summary:
Revision Changes Path
1.44 +4 -5 openpkg-src/ghostscript/ghostscript.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/ghostscript/ghostscript.spec
============================================================================
$ cvs diff -u -r1.43 -r1.44 ghostscript.spec
--- openpkg-src/ghostscript/ghostscript.spec 11 Oct 2003 17:26:31 -0000 1.43
+++ openpkg-src/ghostscript/ghostscript.spec 11 Oct 2003 18:15:46 -0000 1.44
@@ -46,7 +46,7 @@
# package options
%option with_x11 yes
-%option with_def_a4 no
+%option with_a4 yes
# list of sources
Source0:
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_comp}/ghostscript-%{V_real}.tar.bz2
@@ -103,6 +103,9 @@
x11_inc=""
x11_lib=""
%endif
+%if "%{with_a4}" == "yes"
+ mtcflags="$mtcflags -DA4"
+%endif
%{l_shtool} subst \
-e "s;^STDLIBS=-lpthread -lm;STDLIBS=$mtldflags -lm;" \
-e "s;^prefix = /usr/local;prefix = %{l_prefix};" \
@@ -117,11 +120,7 @@
-e 's;DEVICE_DEVS=.*$;DEVICE_DEVS=;' \
src/unix-gcc.mak
%endif
-%if "%{with_def_a4}" == "yes"
- %{l_make} %{l_mflags} -f src/unix-gcc.mak XCFLAGS="-DA4"
-%else
%{l_make} %{l_mflags} -f src/unix-gcc.mak
-%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]