Просмотр исходного кода

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

Thorsten Hohmeier 21 лет назад
Родитель
Сommit
cda04ddbe9
1 измененных файлов с 15 добавлено и 6 удалено
  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