summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-01-11 14:07:48 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-01-11 14:07:48 +0000
commit51529dc852dc4d74bbdf69e7b6170ffe3f76083d (patch)
tree0f0488551dff97fa022633f92c6276fb6a4aa781 /lang
parent9145bf1657dbe0d7e95398bd0e933d4a8d29edbf (diff)
downloadpkgsrc-51529dc852dc4d74bbdf69e7b6170ffe3f76083d.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')
-rw-r--r--lang/python33/Makefile8
-rw-r--r--lang/python34/Makefile8
2 files changed, 14 insertions, 2 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"
diff --git a/lang/python34/Makefile b/lang/python34/Makefile
index 4e488f22edf..5840d980209 100644
--- a/lang/python34/Makefile
+++ b/lang/python34/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2014/10/09 09:15:38 adam Exp $
+# $NetBSD: Makefile,v 1.8 2015/01/11 14:07:48 bsiegert Exp $
.include "dist.mk"
@@ -76,6 +76,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"