summaryrefslogtreecommitdiff
path: root/net/py-zmq/patches
diff options
context:
space:
mode:
authorapb <apb>2012-03-02 18:44:44 +0000
committerapb <apb>2012-03-02 18:44:44 +0000
commit5c064ff5c1c6267754f3f60cc30d581f6044767a (patch)
tree2cdb6e104ab12a70fd060a8133eb9c37fdc2f0c4 /net/py-zmq/patches
parentfdf015543b2ba3d39af90187f5a3f8cd72a97dc4 (diff)
downloadpkgsrc-5c064ff5c1c6267754f3f60cc30d581f6044767a.tar.gz
Patch the setup script to use PREFIX/include and PREFIX/lib.
This should fix a build failure, where it failed to find the installed version of zmq. (It worked for me because I had /usr/pkg/lib in /etc/ld.so.conf.) Bump PKGREVISION to 1.
Diffstat (limited to 'net/py-zmq/patches')
-rw-r--r--net/py-zmq/patches/patch-setup.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/py-zmq/patches/patch-setup.py b/net/py-zmq/patches/patch-setup.py
new file mode 100644
index 00000000000..3deb7704f01
--- /dev/null
+++ b/net/py-zmq/patches/patch-setup.py
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2012/03/02 18:44:45 apb Exp $
+
+Use PREFIX/include and PREFIX/lib for pkgsrc build.
+
+--- setup.py.orig 2011-10-12 22:38:44.000000000 +0000
++++ setup.py
+@@ -126,6 +126,10 @@ else:
+ if ZMQ is not None:
+ COMPILER_SETTINGS['include_dirs'] += [pjoin(ZMQ, 'include')]
+ COMPILER_SETTINGS['library_dirs'] += [pjoin(ZMQ, 'lib')]
++ elif os.environ['PREFIX']:
++ PREFIX = os.environ['PREFIX']
++ COMPILER_SETTINGS['include_dirs'] += [pjoin(PREFIX, 'include')]
++ COMPILER_SETTINGS['library_dirs'] += [pjoin(PREFIX, 'lib')]
+ elif sys.platform == 'darwin' and os.path.isdir('/opt/local/lib'):
+ # allow macports default
+ COMPILER_SETTINGS['include_dirs'] += ['/opt/local/include']