diff options
author | apb <apb> | 2012-03-02 18:44:44 +0000 |
---|---|---|
committer | apb <apb> | 2012-03-02 18:44:44 +0000 |
commit | 5c064ff5c1c6267754f3f60cc30d581f6044767a (patch) | |
tree | 2cdb6e104ab12a70fd060a8133eb9c37fdc2f0c4 /net/py-zmq/patches | |
parent | fdf015543b2ba3d39af90187f5a3f8cd72a97dc4 (diff) | |
download | pkgsrc-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.py | 17 |
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'] |