pkgsrc/lang/python22/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 2003/02/06 21:02:58 drochner Exp $
2002-01-15 18:11:03 +01:00
#
DISTNAME= Python-2.2.2
PKGNAME= python22-2.2.2
2002-01-15 18:11:03 +01:00
CATEGORIES= lang
MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.2/
2002-01-15 18:11:03 +01:00
EXTRACT_SUFX= .tgz
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.python.org/
COMMENT= Interpreted, interactive, object-oriented programming language
2002-09-20 23:32:05 +02:00
USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
2002-09-24 20:06:22 +02:00
.include "../../mk/bsd.prefs.mk"
2002-10-30 11:55:41 +01:00
.if ${OPSYS} == "SunOS"
LOWER_OPSYS= sunos
.endif
.if ${OPSYS} == "Darwin"
PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}
.else
2002-09-24 20:06:22 +02:00
PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//}
.endif
2002-09-24 20:06:22 +02:00
.if ${OPSYS} == "NetBSD"
# XXX We'll enable native threads (if available) as soon as it is
# stable enough. Remaining issues:
# -stack size too small in main thread
# -PR lib/20214 (libpthread assertion failure triggered by py-bsddb3)
# -"test_gettext" in Python autotest hanging forever
2002-01-15 18:11:03 +01:00
CONFIGURE_ARGS+= --without-threads
2002-09-24 20:06:22 +02:00
.endif
2002-01-15 18:11:03 +01:00
INSTALL_TARGET= altinstall
post-extract:
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc2.2
2002-09-20 23:32:05 +02:00
.include "../../devel/zlib/buildlink2.mk"
2002-01-15 18:11:03 +01:00
.include "../../mk/bsd.pkg.mk"
# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
# set earlier in the environment (last definition wins).
#
.if ${OBJECT_FMT} == "a.out"
MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
.endif