Annotation of pkgsrc/lang/python21/Makefile, revision 1.35
1.35 ! jlam 1: # $NetBSD: Makefile,v 1.34 2006/10/04 21:07:52 rillig 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:
1.35 ! jlam 38: PLIST_VARS= bsddb socket termios
! 39:
1.17 recht 40: PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
41: .if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
42: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
43: .endif
44: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
45:
46: .if ${OPSYS} == "Darwin"
47: PY_PLATNAME= ${LOWER_OPSYS}
48: .elif ${OPSYS} == "IRIX"
49: PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
50: .elif ${OPSYS} == "SunOS"
51: PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
52: .else
53: PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
54: .endif
1.26 rillig 55: PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
1.17 recht 56:
1.23 minskim 57: .if !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*)
58: . if exists(/usr/include/sys/socket.h)
1.35 ! jlam 59: PLIST.socket= yes
1.23 minskim 60: . endif
61: . if exists(/usr/include/termios.h)
1.35 ! jlam 62: PLIST.termios= yes
1.23 minskim 63: . endif
64: .endif
65:
1.17 recht 66: # bsddb.so is not built on Solaris (or IRIX?)
1.35 ! jlam 67: .if ${OPSYS} != "SunOS" && ${OPSYS} != "IRIX"
! 68: . include "../../mk/bdb.buildlink3.mk"
! 69: PLIST.bsddb= yes
1.26 rillig 70: MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE:Q}
1.21 minskim 71: MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
72: MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib
1.17 recht 73: .endif
74:
1.26 rillig 75: PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
1.17 recht 76:
77: post-extract:
78: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
79:
80: .include "../../devel/zlib/buildlink3.mk"
81: .include "../../mk/dlopen.buildlink3.mk"
82: .include "../../mk/bsd.pkg.mk"
83:
84: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
85: # set earlier in the environment (last definition wins).
86: #
87: .if ${OBJECT_FMT} == "a.out"
88: MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
89: .endif
CVSweb <webmaster@jp.NetBSD.org>