diff options
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r-- | lang/python24/Makefile | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 80edd24bbdc..9ae8e7d1887 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.42 2008/04/11 10:44:08 drochner Exp $ +# $NetBSD: Makefile,v 1.43 2008/04/12 22:43:02 jlam Exp $ DISTNAME= Python-2.4.5 PKGNAME= python24-2.4.5 @@ -69,37 +69,34 @@ IS_64BIT_PLATFORM?= no .endif # the dl module isn't built for 64 bit archs and Darwin -.if !empty(IS_64BIT_PLATFORM:M[yY][eE][sS]) || (${OPSYS} == "Darwin") -PLIST_SUBST+= DLMODULE="@comment " -.else -PLIST_SUBST+= DLMODULE= +PLIST_VARS+= dl +.if empty(IS_64BIT_PLATFORM:M[yY][eE][sS]) && (${OPSYS} != "Darwin") +PLIST.dl= yes .endif # setup.py causes some modules to be built if the platform is *not* 64bit. +PLIST_VARS+= extra-so .if !empty(IS_64BIT_PLATFORM:M[nN][oO]) -PLIST_SUBST+= EXTRA_SO= -.else -PLIST_SUBST+= EXTRA_SO="@comment " +PLIST.extra-so= yes .endif # ossaudiodev is only available on x86 for the following platforms +PLIST_VARS+= oss .if (${MACHINE_ARCH} == "i386") && \ (${PY_PLATNAME} == "linux2" || ${OPSYS} == "FreeBSD") -PLIST_SUBST+= OSSAUDIODEV= +PLIST.oss= yes .elif (${MACHINE_ARCH} == "x86_64") && (${PY_PLATNAME} == "linux2") -PLIST_SUBST+= OSSAUDIODEV= -.else -PLIST_SUBST+= OSSAUDIODEV="@comment " +PLIST.oss= yes .endif # Mac OS X Leopard support: # 1.) Fix detection of setpgrp(2). # 2.) "lib-dynload/_OSA.so" isn't built. +PLIST_VARS+= osa .if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*) CFLAGS+= -D__DARWIN_UNIX03 -PLIST_SUBST+= LEOPARD="@comment " .else -PLIST_SUBST+= LEOPARD= +PLIST.osa= yes .endif # Make sure python modules can link correctly @@ -108,30 +105,25 @@ INSTALL_UNSTRIPPED= yes CFLAGS+= -I${WRKSRC}/Include .endif +PLIST_VARS+= bsddb dll nis no-nis .if ${OPSYS} == "IRIX" . if ${ABI} == "64" -PLIST_SUBST+= NISMODULE="@comment " -PLIST_SUBST+= NO_NISMODULE="@comment " +PLIST.no-nis= yes . else -PLIST_SUBST+= NISMODULE= -PLIST_SUBST+= NO_NISMODULE="@comment " +PLIST.nis= yes . endif -PLIST_SUBST+= BSDDBMODULE="@comment " -PLIST_SUBST+= NOSHLIB="@comment " .else . include "../../mk/bdb.buildlink3.mk" MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE:Q} MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}} MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib LIBS+= ${BDB_LIBS} -PLIST_SUBST+= BSDDBMODULE= -PLIST_SUBST+= NOSHLIB= +PLIST.bsddb= yes +PLIST.dll= yes .if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) -PLIST_SUBST+= NISMODULE= -PLIST_SUBST+= NO_NISMODULE="@comment " +PLIST.nis= yes .else -PLIST_SUBST+= NISMODULE="@comment " -PLIST_SUBST+= NO_NISMODULE= +PLIST.no-nis= yes .endif .endif |