summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-06 14:57:37 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-06 14:57:37 +0000
commit80fbb24c9f71ba25e75d0f73a94be24d011fb208 (patch)
treefbf35f5b9b561a717170a4c8fc98cb0d1deaab15
parent391c26970d276516a8438ffd1c769dab3bcf1d3a (diff)
* FreeBSD-specific hacks. backups/freebsd-losser@34171
svn path=/nixpkgs/branches/freebsd-losser/; revision=266
-rw-r--r--pkgs/stdenv-linux/gcc-wrapper.sh2
-rwxr-xr-xpkgs/subversion/subversion-build.sh3
-rw-r--r--pkgs/subversion/subversion.fix1
-rwxr-xr-xpkgs/swig/swig-build.sh6
-rw-r--r--pkgs/swig/swig.fix2
5 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/stdenv-linux/gcc-wrapper.sh b/pkgs/stdenv-linux/gcc-wrapper.sh
index 9e1b26698bb29..66dc5b348bebc 100644
--- a/pkgs/stdenv-linux/gcc-wrapper.sh
+++ b/pkgs/stdenv-linux/gcc-wrapper.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /usr/local/bin/bash
 
 IFS=
 
diff --git a/pkgs/subversion/subversion-build.sh b/pkgs/subversion/subversion-build.sh
index fa2de05e5a216..d12d2786b7d9f 100755
--- a/pkgs/subversion/subversion-build.sh
+++ b/pkgs/subversion/subversion-build.sh
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-export NIX_LDFLAGS=-Wl,-s
+export NIX_LDFLAGS="-Wl,-s -pthread"
 
 . $stdenv/setup || exit 1
 
@@ -21,6 +21,7 @@ if test $httpServer; then
 fi
 
 if test $pythonBindings; then
+    export PYTHON=$python/bin/python
     extraflags="--with-swig=$swig $extraflags"
 fi
 
diff --git a/pkgs/subversion/subversion.fix b/pkgs/subversion/subversion.fix
index 90e158dfd63fa..3d246df4e8323 100644
--- a/pkgs/subversion/subversion.fix
+++ b/pkgs/subversion/subversion.fix
@@ -20,6 +20,7 @@ Function(["localServer", "httpsClient", "httpServer", "pythonBindings"],
     , ("stdenv", IncludeFix("stdenv/stdenv.fix"))
     , ("ssl", If(Var("httpsClient"), IncludeFix("openssl/openssl.fix"), ""))
     , ("swig", If(Var("pythonBindings"), IncludeFix("swig/swig.fix"), ""))
+    , ("python", "/usr/local")
     , ("httpd", If(Var("httpServer"), IncludeFix("httpd/httpd.fix"), ""))
     , ("db4", If(Var("localServer"), IncludeFix("db4/db4.fix"), ""))
     , ("libxml", IncludeFix("libxml2/libxml2.fix"))
diff --git a/pkgs/swig/swig-build.sh b/pkgs/swig/swig-build.sh
index 8f954c8eae852..b769fdbd64e4f 100755
--- a/pkgs/swig/swig-build.sh
+++ b/pkgs/swig/swig-build.sh
@@ -6,6 +6,6 @@ export NIX_LDFLAGS=-Wl,-s
 
 tar xvfz $src || exit 1
 cd SWIG-* || exit 1
-./configure --prefix=$out || exit 1
-gmake || exit 1
-gmake install || exit 1
+./configure --prefix=$out --with-python=$python/bin/python || exit 1
+/usr/local/bin/gmake || exit 1
+/usr/local/bin/gmake install || exit 1
diff --git a/pkgs/swig/swig.fix b/pkgs/swig/swig.fix
index 88555c6f29c60..6ee68210a4f3d 100644
--- a/pkgs/swig/swig.fix
+++ b/pkgs/swig/swig.fix
@@ -8,5 +8,7 @@ Package(
       ]))
 
   , ("stdenv", IncludeFix("stdenv/stdenv.fix"))
+
+  , ("python", "/usr/local")
   ]
 )