Annotation of pkgsrc/lang/python21/Makefile.common, revision 1.2
1.2 ! recht 1: # $NetBSD: Makefile.common,v 1.1 2004/01/24 07:09:15 grant Exp $
1.1 grant 2: #
3:
4: DISTNAME= Python-2.1.3
5: CATEGORIES= lang
6: MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/
7: EXTRACT_SUFX= .tgz
8:
9: MAINTAINER= tech-pkg@NetBSD.org
10: HOMEPAGE= http://www.python.org/
11: COMMENT= Interpreted, interactive, object-oriented programming language
12:
1.2 ! recht 13: USE_BUILDLINK3= YES
1.1 grant 14: GNU_CONFIGURE= YES
15:
16: INSTALL_TARGET= altinstall
17:
18: .include "../../mk/bsd.prefs.mk"
19:
20: PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
21: .if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
22: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
23: .endif
24: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
25:
26: .if ${OPSYS} == "SunOS"
27: LOWER_OPSYS= sunos
28: .endif
29:
30: .if ${OPSYS} == "Darwin" || ${OPSYS} == "IRIX"
31: PY_PLATNAME= ${LOWER_OPSYS}
32: .else
33: PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
34: .endif
35: PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
36:
37: # bsddb.so is not built on Solaris (or IRIX?)
38: BSDDB=
39: .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
40: BSDDB= "@comment "
41: .endif
42: PLIST_SUBST+= BSDDB=${BSDDB}
43:
44: PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
45:
46: post-extract:
47: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
48:
1.2 ! recht 49: .include "../../devel/zlib/buildlink3.mk"
1.1 grant 50: .include "../../mk/bsd.pkg.mk"
51:
52: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
53: # set earlier in the environment (last definition wins).
54: #
55: .if ${OBJECT_FMT} == "a.out"
56: MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
57: .endif
CVSweb <webmaster@jp.NetBSD.org>