Procházet zdrojové kódy

tried to fix differences in linking pthreads on different freebsd versions, eventually there is more to do on other platforms

Thorsten Hohmeier před 21 roky
rodič
revize
cda04ddbe9
1 změnil soubory, kde provedl 15 přidání a 6 odebrání
  1. 15 6
      pdftk/pdftk.spec

+ 15 - 6
pdftk/pdftk.spec

@@ -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