summaryrefslogtreecommitdiff
path: root/lang/python27
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-12-12 11:34:23 +0000
committerjperkin <jperkin@pkgsrc.org>2013-12-12 11:34:23 +0000
commit9b5c8b028223538a7c554245f12df495fcfba14f (patch)
tree9500c8068c0631589f34039125380f421ddfc76b /lang/python27
parent59ac8b606f700e1a88903e0e708caf643078b322 (diff)
downloadpkgsrc-9b5c8b028223538a7c554245f12df495fcfba14f.tar.gz
Search the SDK path on OSX, otherwise for Xcode 5 certain modules will not
be built, due to the headers not being installed in /usr/include by default.
Diffstat (limited to 'lang/python27')
-rw-r--r--lang/python27/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index a6641cad6ba..e68e6bc2c25 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2013/11/12 18:57:25 adam Exp $
+# $NetBSD: Makefile,v 1.33 2013/12/12 11:34:23 jperkin Exp $
.include "dist.mk"
@@ -114,6 +114,12 @@ PLIST.extra-so= yes
INSTALL_UNSTRIPPED= yes
.endif
+# For Xcode 5 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+= dll nis no-nis
.if ${OPSYS} == "IRIX"
. if ${ABI} == "64"