diff options
Diffstat (limited to 'lang/python23/Makefile.common')
-rw-r--r-- | lang/python23/Makefile.common | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/lang/python23/Makefile.common b/lang/python23/Makefile.common index 262e15e82f9..3981169fbac 100644 --- a/lang/python23/Makefile.common +++ b/lang/python23/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.20 2004/11/22 21:48:09 wiz Exp $ +# $NetBSD: Makefile.common,v 1.21 2004/11/24 20:45:10 jschauma Exp $ # DISTNAME= Python-2.3.4 @@ -28,8 +28,10 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python23/PLIST.${OPSYS} .endif PLIST_SRC+= ${.CURDIR}/../../lang/python23/PLIST.common_end -.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" || ${OPSYS} == "IRIX" +.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" PY_PLATNAME= ${LOWER_OPSYS} +.elif ${OPSYS} == "IRIX" +PY_PLATNAME= ${LOWER_OPSYS:C/\..*//} .elif ${OPSYS} == "SunOS" PY_PLATNAME= sunos${OS_VERSION:C/\..*//} .else @@ -40,7 +42,7 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME} # the dl module isn't built for 64 bit archs and Darwin .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" \ || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64" \ - || ${OPSYS} == "Darwin" + || ${OPSYS} == "Darwin" || ( ${OPSYS} == "IRIX" && ${ABI} == "64" ) PLIST_SUBST+= DLMODULE="@comment " .else PLIST_SUBST+= DLMODULE= @@ -57,7 +59,7 @@ EXTRA_SO_SUBST= || ${PY_PLATNAME} == "freebsd5" OSSAUDIODEV_SUBST= . endif -.elif ${OPSYS} == "SunOS" +.elif ${OPSYS} == "SunOS" || ( ${OPSYS} == "IRIX" && ${ABI} != "64" ) EXTRA_SO_SUBST= .endif @@ -69,11 +71,23 @@ PLIST_SUBST+= OSSAUDIODEV=${OSSAUDIODEV_SUBST} INSTALL_UNSTRIPPED= yes .endif -# ensure that the bsddb185 module is built on all platforms -.include "../../mk/bdb.buildlink3.mk" +.if ${OPSYS} == "IRIX" +. if ${ABI} == "64" +PLIST_SUBST+= NISMODULE="@comment " +. else +PLIST_SUBST+= NISMODULE= +. endif +PLIST_SUBST+= BSDDBMODULE="@comment " +PLIST_SUBST+= NOSHLIB="@comment " +.else +. include "../../mk/bdb.buildlink3.mk" MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE} MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}} MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib +PLIST_SUBST+= BSDDBMODULE= +PLIST_SUBST+= NOSHLIB= +PLIST_SUBST+= NISMODULE= +.endif .if defined(BUILDLINK_TRANSFORM) MAKE_ENV+= PY_BDB_TRANSFORM="${BUILDLINK_TRANSFORM}" |