summaryrefslogtreecommitdiff
path: root/lang/python33
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2015-01-11 14:07:48 +0000
committerbsiegert <bsiegert>2015-01-11 14:07:48 +0000
commitdee5f2fbafc5f231011d9d68cf0f151fe278fa67 (patch)
tree0f0488551dff97fa022633f92c6276fb6a4aa781 /lang/python33
parent0282fd95477e869749086136340ae91bebd91848 (diff)
downloadpkgsrc-dee5f2fbafc5f231011d9d68cf0f151fe278fa67.tar.gz
Make python33 and 34 build under Mac OS X by copying over compat hack from
python27. From J. Lewis Muir. Note that the correct way to solve this is to do this in the Darwin specific config files, but until that has landed, this at least fixes the build.
Diffstat (limited to 'lang/python33')
-rw-r--r--lang/python33/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index 2f590f87fc5..9095b4a2707 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2015/01/06 09:51:51 he Exp $
+# $NetBSD: Makefile,v 1.29 2015/01/11 14:07:48 bsiegert Exp $
.include "dist.mk"
@@ -77,6 +77,12 @@ PLIST.oss= yes
INSTALL_UNSTRIPPED= yes
.endif
+# For Xcode 5 and up, we need to search the SDK path for headers, otherwise
+# certain modules will not be built.
+.if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH}/usr/include)
+CFLAGS+= -I${OSX_SDK_PATH}/usr/include
+.endif
+
PLIST_VARS+= bsddb dll nis no-nis
.if ${OPSYS} == "IRIX"
. if ${ABI} == "64"