aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-fox
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-27 22:03:36 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-27 22:03:36 +0000
commitefd783f9be54b06eb3e1e48bdc44d0fb4a6c7e99 (patch)
tree4b9a3496e85c96230f9a6b5e4b16b3d6849780d8 /x11-toolkits/py-fox
parent43aad21b330ab0d61943d7a9ac27e60ad02cfdae (diff)
- Respect X11BASE
PR: ports/105907 Submitted by: trasz
Notes
Notes: svn path=/head/; revision=178138
Diffstat (limited to 'x11-toolkits/py-fox')
-rw-r--r--x11-toolkits/py-fox/Makefile3
-rw-r--r--x11-toolkits/py-fox/files/patch-setup7
2 files changed, 7 insertions, 3 deletions
diff --git a/x11-toolkits/py-fox/Makefile b/x11-toolkits/py-fox/Makefile
index 85169578b3ab..8e8ffd95b7f0 100644
--- a/x11-toolkits/py-fox/Makefile
+++ b/x11-toolkits/py-fox/Makefile
@@ -26,6 +26,9 @@ WRKSRC= ${WRKDIR}/FXPy-${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+post-patch:
+ ${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/setup.py
+
do-install:
@(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install ${PYDISTUTILS_INSTALLARGS})
.if !defined(NOPORTDOCS)
diff --git a/x11-toolkits/py-fox/files/patch-setup b/x11-toolkits/py-fox/files/patch-setup
index 0539958d9409..fb2d40fe3576 100644
--- a/x11-toolkits/py-fox/files/patch-setup
+++ b/x11-toolkits/py-fox/files/patch-setup
@@ -1,13 +1,14 @@
--- setup.py.orig Wed Apr 3 00:29:06 2002
-+++ setup.py Tue Apr 6 11:53:15 2004
++++ setup.py Mon Nov 27 10:32:24 2006
@@ -13,8 +13,10 @@
# Location of X libraries
if sys.platform == 'win32':
XLIBDIR = []
+ XLIBINC = []
else:
- XLIBDIR = ['/usr/X11R6/lib']
-+ XLIBINC = ['/usr/X11R6/include']
+- XLIBDIR = ['/usr/X11R6/lib']
++ XLIBDIR = ['%%X11BASE%%/lib']
++ XLIBINC = ['%%X11BASE%%/include']
# Other libraries
OLIBDIRS = ['c:\cygwin\usr\local\lib']