Annotation of pkgsrc/lang/python21/Makefile, revision 1.21
1.21 ! minskim 1: # $NetBSD: Makefile,v 1.20 2005/05/29 06:26:50 minskim 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 "
1.20 minskim 53: .else
54: .include "../../mk/bdb.buildlink3.mk"
1.21 ! minskim 55: MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE}
! 56: MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
! 57: MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib
1.17 recht 58: .endif
59: PLIST_SUBST+= BSDDB=${BSDDB}
60:
61: PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
62:
63: post-extract:
64: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
65:
66: .include "../../devel/zlib/buildlink3.mk"
67: .include "../../mk/dlopen.buildlink3.mk"
68: .include "../../mk/bsd.pkg.mk"
69:
70: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
71: # set earlier in the environment (last definition wins).
72: #
73: .if ${OBJECT_FMT} == "a.out"
74: MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
75: .endif
CVSweb <webmaster@jp.NetBSD.org>