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