|
|
|
@ -45,7 +45,7 @@ Source5: ftp://ftp.cs.wisc.edu/pub/ghost/aladdin/ghostscript-fonts-other-6.
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0, gcc |
|
|
|
|
PreReq: OpenPKG, openpkg >= 0.9-20011025.0 |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
@ -66,14 +66,20 @@ AutoReqProv: no
|
|
|
|
|
mv zlib-1.1.3 gs%{version}/zlib |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
mtcflags="" |
|
|
|
|
mtldflags="" |
|
|
|
|
case "%{l_target}" in |
|
|
|
|
*-freebsd* ) mtcflags=""; mtldflags="-lc_r" ;; |
|
|
|
|
*-linux* ) mtcflags=""; mtldflags="-lpthread" ;; |
|
|
|
|
*-solaris* ) mtcflags=""; mtldflags="-lpthread" ;; |
|
|
|
|
esac |
|
|
|
|
cd gs%{version} |
|
|
|
|
%{l_rpmtool} subst \ |
|
|
|
|
"s;^STDLIBS=-lpthread -lm;STDLIBS=-lc_r -lm;" \ |
|
|
|
|
"s;^STDLIBS=-lpthread -lm;STDLIBS=$mtldflags -lm;" \ |
|
|
|
|
"s;^prefix = /usr/local;prefix = %{l_prefix};" \ |
|
|
|
|
"s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \ |
|
|
|
|
"s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \ |
|
|
|
|
"s;CC=gcc;CC=%{l_cc};" \ |
|
|
|
|
"s;GCFLAGS=.*(-f.*)\$;GCFLAGS=\$1;" \ |
|
|
|
|
"s;XCFLAGS=.*\$;XCFLAGS=$mtcflags;" \ |
|
|
|
|
-- src/unix-gcc.mak |
|
|
|
|
%{l_make} %{l_mflags} -f src/unix-gcc.mak DEVICE_DEVS="" |
|
|
|
|
|
|
|
|
|