|
|
@@ -33,8 +33,8 @@ Distribution: OpenPKG
|
|
|
Class: EVAL
|
|
|
Group: Text
|
|
|
License: GPL
|
|
|
-Version: 1.10
|
|
|
-Release: 20041031
|
|
|
+Version: 1.11
|
|
|
+Release: 20041104
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.pdfhacks.com/pdftk/pdftk-%{version}.tar.gz
|
|
|
@@ -71,10 +71,19 @@ AutoReqProv: no
|
|
|
%build
|
|
|
cd pdftk
|
|
|
export CLASSPATH="`echo %{l_prefix}/share/gcc/libgcj*.jar`:."
|
|
|
- %{l_shtool} subst \
|
|
|
- -e 's;^\(CPPFLAGS=.*\)$;\1 %{l_cppflags gcc};' \
|
|
|
- -e 's;^\(CXXFLAGS=.*\)$;\1 -lpthread;' \
|
|
|
- Makefile.Generic
|
|
|
+ case "%{l_platform -t}" in
|
|
|
+ *-freebsd4* )
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;^\(CPPFLAGS=.*\)$;\1 -pthread %{l_cppflags gcc};' \
|
|
|
+ Makefile.Generic
|
|
|
+ ;;
|
|
|
+ * )
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;^\(CPPFLAGS=.*\)$;\1 %{l_cppflags gcc};' \
|
|
|
+ -e 's;^\(CXXFLAGS=.*\)$;\1 -lpthread;' \
|
|
|
+ Makefile.Generic
|
|
|
+ ;;
|
|
|
+ esac
|
|
|
%{l_make} %{l_mflags} -f Makefile.Generic
|
|
|
|
|
|
%install
|