summaryrefslogtreecommitdiff
path: root/net/py-zmq/patches/patch-setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/py-zmq/patches/patch-setup.py')
-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']