summaryrefslogtreecommitdiff
path: root/lang
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
parentbf13a3c2e514ff97b739915c114385699a7f0c40 (diff)
downloadpkgsrc-9508c23e2a1c1f250c52863e7ddad2c9dbdbcfc4.tar.gz
Fix build problems under Mac OS X Leopard.
Diffstat (limited to 'lang')
-rw-r--r--lang/python24/Makefile12
-rw-r--r--lang/python24/PLIST.Darwin4
2 files changed, 13 insertions, 3 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
diff --git a/lang/python24/PLIST.Darwin b/lang/python24/PLIST.Darwin
index 853e67d3d03..ba82423fec3 100644
--- a/lang/python24/PLIST.Darwin
+++ b/lang/python24/PLIST.Darwin
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.Darwin,v 1.4 2006/06/19 17:50:57 minskim Exp $
+@comment $NetBSD: PLIST.Darwin,v 1.5 2007/12/15 18:43:32 tron Exp $
lib/libpython2.4.2.dylib
lib/python${PY_VER_SUFFIX}/lib-dynload/ColorPicker.so
lib/python${PY_VER_SUFFIX}/lib-dynload/MacOS.so
@@ -25,7 +25,7 @@ lib/python${PY_VER_SUFFIX}/lib-dynload/_Launch.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_List.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_Menu.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_Mlte.so
-lib/python${PY_VER_SUFFIX}/lib-dynload/_OSA.so
+${LEOPARD}lib/python${PY_VER_SUFFIX}/lib-dynload/_OSA.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_Qd.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_Qdoffs.so
lib/python${PY_VER_SUFFIX}/lib-dynload/_Qt.so