summaryrefslogtreecommitdiff
path: root/lang/python23/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python23/Makefile')
-rw-r--r--lang/python23/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/python23/Makefile b/lang/python23/Makefile
index 791d47af4f8..0b83f8cd763 100644
--- a/lang/python23/Makefile
+++ b/lang/python23/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2003/08/18 17:16:53 recht Exp $
+# $NetBSD: Makefile,v 1.4 2003/08/18 20:57:11 recht Exp $
#
DISTNAME= Python-2.3
@@ -31,6 +31,16 @@ post-install:
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+LOWER_OPSYS= sunos
+.endif
+
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "IRIX"
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}
+.else
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//}
+.endif
+
.if ${OPSYS} != "NetBSD"
.include "../../databases/db/buildlink2.mk"
CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/include/db2