summaryrefslogtreecommitdiff
path: root/lang/python26
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-01-03 12:13:21 +0000
committeradam <adam@pkgsrc.org>2011-01-03 12:13:21 +0000
commitc94bcdd24ffc017d3d14f60c4276719a9075070e (patch)
treec163d521e1e9b4a152bf461da8b0fe764fc4808f /lang/python26
parent90666732e43f3f08d1c323ce956804a257c1edc6 (diff)
downloadpkgsrc-c94bcdd24ffc017d3d14f60c4276719a9075070e.tar.gz
Fix find_library_file on Darwin
Diffstat (limited to 'lang/python26')
-rw-r--r--lang/python26/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index c76f61d8461..7464c3c00c6 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2010/12/25 05:45:15 obache Exp $
+# $NetBSD: Makefile,v 1.33 2011/01/03 12:13:21 adam Exp $
.include "dist.mk"
@@ -146,6 +146,12 @@ REPLACE_FILES.py26= Lib/cgi.py # explicitly demanded to be patched
REPLACE_FILES.py26+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py
REPLACE_FILES.py26+= Lib/test/test_largefile.py Lib/test/test_optparse.py
+SUBST_CLASSES+= findlib
+SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin.
+SUBST_STAGE.findlib= pre-configure
+SUBST_FILES.findlib= Lib/distutils/unixccompiler.py
+SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},'
+
post-extract:
${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}