diff options
author | grant <grant@pkgsrc.org> | 2004-01-24 08:13:14 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-01-24 08:13:14 +0000 |
commit | 39aab8e564fc92c836ce6955bf13ec5146931967 (patch) | |
tree | 5a2e98cd0c3e233c281dd599632be38669f35202 /lang/python22/Makefile.common | |
parent | ed3327a4f6fbe35180225e765627a5f2bf19d3ec (diff) | |
download | pkgsrc-39aab8e564fc92c836ce6955bf13ec5146931967.tar.gz |
split the common parts of python22 and python22-pth into Makefile.common
and fix PLIST for some modules which are only installed on Solaris.
Diffstat (limited to 'lang/python22/Makefile.common')
-rw-r--r-- | lang/python22/Makefile.common | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/lang/python22/Makefile.common b/lang/python22/Makefile.common new file mode 100644 index 00000000000..3bd16633ebf --- /dev/null +++ b/lang/python22/Makefile.common @@ -0,0 +1,49 @@ +# $NetBSD: Makefile.common,v 1.1 2004/01/24 08:13:14 grant Exp $ +# + +DISTNAME= Python-2.2.3 +CATEGORIES= lang +MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.3/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.python.org/ +COMMENT= Interpreted, interactive, object-oriented programming language + +USE_BUILDLINK2= YES +GNU_CONFIGURE= YES + +.include "../../mk/bsd.prefs.mk" + +PLIST_SRC= ${.CURDIR}/../../lang/python22/PLIST.common +.if exists(${.CURDIR}/../../lang/python22/PLIST.${OPSYS}) +PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.${OPSYS} +.endif +PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.common_end + +.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 + +PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX} + +INSTALL_TARGET= altinstall + +post-extract: + ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} + +.include "../../devel/zlib/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" + +# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one +# set earlier in the environment (last definition wins). +# +.if ${OBJECT_FMT} == "a.out" +MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}" +.endif |