Annotation of pkgsrc/lang/python21/Makefile, revision 1.17
1.17 ! recht 1: # $NetBSD: Makefile.common,v 1.8 2004/12/19 05:34:07 grant 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.17 ! recht 6: PKGREVISION= 5
! 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:
! 15: USE_LANGUAGES= c c++
! 16: USE_BUILDLINK3= YES
! 17: GNU_CONFIGURE= YES
! 18:
! 19: PTHREAD_OPTS= require
! 20: .include "../../mk/pthread.buildlink3.mk"
! 21: .if ${PTHREAD_TYPE} == "pth"
! 22: CONFIGURE_ARGS+= --with-pth
! 23: .endif
1.1 drochner 24:
1.13 grant 25: PY_VER_SUFFIX= 2.1
1.1 drochner 26:
1.17 ! recht 27: INSTALL_TARGET= altinstall
! 28:
! 29: .include "../../mk/bsd.prefs.mk"
! 30:
! 31: PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
! 32: .if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
! 33: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
! 34: .endif
! 35: PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
! 36:
! 37: .if ${OPSYS} == "Darwin"
! 38: PY_PLATNAME= ${LOWER_OPSYS}
! 39: .elif ${OPSYS} == "IRIX"
! 40: PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
! 41: .elif ${OPSYS} == "SunOS"
! 42: PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
! 43: .else
! 44: PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
! 45: .endif
! 46: PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
! 47:
! 48: # bsddb.so is not built on Solaris (or IRIX?)
! 49: BSDDB=
! 50: .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
! 51: BSDDB= "@comment "
! 52: .endif
! 53: PLIST_SUBST+= BSDDB=${BSDDB}
! 54:
! 55: PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
! 56:
! 57: post-extract:
! 58: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
! 59:
! 60: .include "../../devel/zlib/buildlink3.mk"
! 61: .include "../../mk/dlopen.buildlink3.mk"
! 62: .include "../../mk/bsd.pkg.mk"
! 63:
! 64: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
! 65: # set earlier in the environment (last definition wins).
! 66: #
! 67: .if ${OBJECT_FMT} == "a.out"
! 68: MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
! 69: .endif
CVSweb <webmaster@jp.NetBSD.org>