mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Fix build for customized PREFIX and LOCALBASE
Submitted by: QAT
This commit is contained in:
parent
f9d2fed583
commit
40023f8d76
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235604
@ -22,4 +22,9 @@ USE_PYDISTUTILS= yes
|
||||
|
||||
PLIST_FILES= %%PYTHON_SITELIBDIR%%/pytc.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,11 +1,13 @@
|
||||
--- setup.py.orig 2009-02-18 08:58:48.199458174 +0800
|
||||
+++ setup.py 2009-02-18 08:58:56.569760265 +0800
|
||||
@@ -5,7 +5,7 @@
|
||||
--- setup.py.orig 2009-06-12 02:49:50.405623403 +0800
|
||||
+++ setup.py 2009-06-12 02:50:50.873879838 +0800
|
||||
@@ -8,8 +8,8 @@
|
||||
if sys.version_info < (2, 3):
|
||||
raise Error, "Python 2.3 or later is required"
|
||||
|
||||
-include_dirs = []
|
||||
+include_dirs = ['/usr/local/include']
|
||||
library_dirs = ['/usr/local/lib']
|
||||
-library_dirs = ['/usr/local/lib']
|
||||
+include_dirs = ['%%LOCALBASE%%/include']
|
||||
+library_dirs = ['%%LOCALBASE%%/lib']
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
if sys.platform == 'linux2':
|
||||
os.environ['PATH'] += ":/usr/local/bin:$home/bin:.:..:../.."
|
||||
|
Loading…
Reference in New Issue
Block a user