2005-01-30 13:44:39 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2005/01/30 12:44:39 jmmv Exp $
|
2002-01-16 19:40:48 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= Python-2.0.1
|
|
|
|
PKGNAME= python20-2.0.1
|
2005-01-30 13:44:39 +01:00
|
|
|
PKGREVISION= 10
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= lang python
|
2002-01-16 19:40:48 +01:00
|
|
|
MASTER_SITES= ftp://ftp.python.org/pub/python/2.0.1/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tsarna@NetBSD.org
|
2002-01-16 19:40:48 +01:00
|
|
|
HOMEPAGE= http://www.python.org/
|
|
|
|
COMMENT= Interpreted, interactive, object-oriented programming language
|
|
|
|
|
2005-01-30 13:44:39 +01:00
|
|
|
CONFLICTS+= python-[0-9]*
|
2002-01-16 19:40:48 +01:00
|
|
|
CONFLICTS+= python-2.0.*
|
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/Python-2.0.1
|
2002-01-16 19:40:48 +01:00
|
|
|
DIST_SUBDIR= python
|
|
|
|
|
2004-11-22 22:48:08 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2004-01-25 17:06:47 +01:00
|
|
|
USE_BUILDLINK3= yes
|
2002-01-16 19:40:48 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --without-threads
|
|
|
|
INSTALL_TARGET= altinstall
|
|
|
|
|
|
|
|
# Make sure having environment variable OPT doesn't affect the
|
|
|
|
# installed module-building Makefile
|
|
|
|
MAKE_ENV+= 'OPT=${CFLAGS}'
|
|
|
|
CONFIGURE_ENV+= 'OPT=${CFLAGS}'
|
|
|
|
SCRIPTS_ENV+= 'OPT=${CFLAGS}'
|
|
|
|
|
2002-10-25 14:45:00 +02:00
|
|
|
SSLFLAGS= -DUSE_SSL -I${BUILDLINK_PREFIX.openssl}/include/openssl \
|
|
|
|
-L${BUILDLINK_PREFIX.openssl}/lib \
|
2004-08-27 08:29:06 +02:00
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib -lssl -lcrypto
|
2003-03-14 20:37:30 +01:00
|
|
|
FIX_RPATH+= SSLFLAGS
|
2002-01-16 19:40:48 +01:00
|
|
|
|
|
|
|
# Handle the module setup file:
|
|
|
|
# - disable a few broken modules on 64 bit platforms (nothing important)
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
ZOULARIS?= ${PREFIX}/bsd
|
2004-08-27 08:29:06 +02:00
|
|
|
MODADD= -I${ZOULARIS}/include -L${ZOULARIS}/lib ${COMPILER_RPATH_FLAG}${ZOULARIS}/lib
|
2003-03-14 20:37:30 +01:00
|
|
|
FIX_RPATH+= MODADD
|
2002-01-16 19:40:48 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
2002-01-28 12:51:23 +01:00
|
|
|
${SED} -e 's,@NOSHARED@,${NOSHARED},g' \
|
2002-01-16 19:40:48 +01:00
|
|
|
-e 's,@MODADD@,${MODADD},g' \
|
2002-10-25 14:45:00 +02:00
|
|
|
-e 's+@SSLFLAGS@+${SSLFLAGS}+g' \
|
2002-01-16 19:40:48 +01:00
|
|
|
${FILESDIR}/Setup.in >${WRKSRC}/Modules/Setup.in
|
2002-01-28 12:51:23 +01:00
|
|
|
${SED} -e 's,@NOSHARED@,${NOSHARED},g' \
|
2002-01-16 19:40:48 +01:00
|
|
|
-e 's,@MODADD@,${MODADD},g' \
|
|
|
|
${FILESDIR}/Setup.config.in >${WRKSRC}/Modules/Setup.config.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
|
|
|
|
(cd ${PREFIX}; ${FIND} lib/python2.0 -type f -print | \
|
|
|
|
${GREP} -v site-packages >>${PLIST_SRC})
|
|
|
|
${ECHO} lib/python2.0/site-packages/README >>${PLIST_SRC}
|
|
|
|
(cd ${PREFIX}; ${FIND} include/python2.0 -type f -print \
|
|
|
|
>>${PLIST_SRC})
|
|
|
|
(cd ${PREFIX}; ${FIND} -d include/python2.0 -type d -print | \
|
|
|
|
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
|
|
|
|
(cd ${PREFIX}; ${FIND} -d lib/python2.0 -type d -print | \
|
|
|
|
${GREP} -v site-packages | \
|
|
|
|
${GREP} -vx lib/python2.0 | \
|
|
|
|
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
|
|
|
|
${ECHO} "@dirrm lib/python2.0/site-packages" >>${PLIST_SRC}
|
|
|
|
${ECHO} "@dirrm lib/python2.0" >>${PLIST_SRC}
|
|
|
|
# Reinstall Python binary to get it stripped
|
|
|
|
${RM} ${PREFIX}/bin/python2.0
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/python ${PREFIX}/bin/python2.0
|
|
|
|
|
2004-07-20 00:26:57 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2004-01-25 17:06:47 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2004-10-31 14:23:03 +01:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2004-12-19 06:34:07 +01:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2002-01-16 19:40:48 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|