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