Annotation of pkgsrc/lang/python21/Makefile, revision 1.34
1.34 ! rillig 1: # $NetBSD: Makefile,v 1.33 2006/08/26 15:32:29 joerg 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.34 ! rillig 6: PKGREVISION= 15
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.29 jlam 11: MAINTAINER= pkgsrc-users@NetBSD.org
1.17 recht 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:
1.32 minskim 20: REPLACE_INTERPRETER+= python
21: REPLACE.python.old= .*python
22: REPLACE.python.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}
23: REPLACE_FILES.python= Lib/cgi.py Lib/test/test_largefile.py
24:
1.26 rillig 25: PTHREAD_OPTS+= require
1.17 recht 26: .include "../../mk/pthread.buildlink3.mk"
27: .if ${PTHREAD_TYPE} == "pth"
28: CONFIGURE_ARGS+= --with-pth
29: .endif
1.1 drochner 30:
1.13 grant 31: PY_VER_SUFFIX= 2.1
1.1 drochner 32:
1.22 minskim 33: BUILD_TARGET= all ./Lib/plat-${PY_PLATNAME}
1.17 recht 34: INSTALL_TARGET= altinstall
35:
36: .include "../../mk/bsd.prefs.mk"
37:
38: PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
39: .if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
40: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
41: .endif
42: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
43:
44: .if ${OPSYS} == "Darwin"
45: PY_PLATNAME= ${LOWER_OPSYS}
46: .elif ${OPSYS} == "IRIX"
47: PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
48: .elif ${OPSYS} == "SunOS"
49: PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
50: .else
51: PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
52: .endif
1.26 rillig 53: PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
1.17 recht 54:
1.23 minskim 55: PLAT_SOCKET= "@comment "
56: PLAT_TERMIOS= "@comment "
57: .if !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*)
58: . if exists(/usr/include/sys/socket.h)
59: PLAT_SOCKET= ""
60: . endif
61: . if exists(/usr/include/termios.h)
62: PLAT_TERMIOS= ""
63: . endif
64: .endif
1.27 rillig 65: PLIST_SUBST+= PLAT_SOCKET=${PLAT_SOCKET} PLAT_TERMIOS=${PLAT_TERMIOS}
1.23 minskim 66:
1.17 recht 67: # bsddb.so is not built on Solaris (or IRIX?)
68: BSDDB=
69: .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
70: BSDDB= "@comment "
1.20 minskim 71: .else
72: .include "../../mk/bdb.buildlink3.mk"
1.26 rillig 73: MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE:Q}
1.21 minskim 74: MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
75: MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib
1.17 recht 76: .endif
1.27 rillig 77: PLIST_SUBST+= BSDDB=${BSDDB}
1.17 recht 78:
1.26 rillig 79: PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
1.17 recht 80:
81: post-extract:
82: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
83:
84: .include "../../devel/zlib/buildlink3.mk"
85: .include "../../mk/dlopen.buildlink3.mk"
86: .include "../../mk/bsd.pkg.mk"
87:
88: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
89: # set earlier in the environment (last definition wins).
90: #
91: .if ${OBJECT_FMT} == "a.out"
92: MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
93: .endif
CVSweb <webmaster@jp.NetBSD.org>