summaryrefslogtreecommitdiff
path: root/lang/python24/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2007-12-15 18:43:31 +0000
committertron <tron@pkgsrc.org>2007-12-15 18:43:31 +0000
commit9508c23e2a1c1f250c52863e7ddad2c9dbdbcfc4 (patch)
tree907df20c1498e1c3eb3a2734e5a2f94acdb715d3 /lang/python24/Makefile
parentbf13a3c2e514ff97b739915c114385699a7f0c40 (diff)
downloadpkgsrc-9508c23e2a1c1f250c52863e7ddad2c9dbdbcfc4.tar.gz
Fix build problems under Mac OS X Leopard.
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r--lang/python24/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index f759007e8dd..c318c807dc9 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2007/12/02 11:17:22 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2007/12/15 18:43:31 tron Exp $
DISTNAME= Python-2.4.4
PKGNAME= python24-2.4.4
@@ -92,6 +92,16 @@ PLIST_SUBST+= OSSAUDIODEV=
PLIST_SUBST+= OSSAUDIODEV="@comment "
.endif
+# Mac OS X Leopard support:
+# 1.) Fix detection of setpgrp(2).
+# 2.) "lib-dynload/_OSA.so" isn't built.
+.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
+CFLAGS+= -D__DARWIN_UNIX03
+PLIST_SUBST+= LEOPARD="@comment "
+.else
+PLIST_SUBST+= LEOPARD=
+.endif
+
# Make sure python modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes