Annotation of pkgsrc/lang/python21/Makefile.common, revision 1.7

1.7     ! wiz         1: # $NetBSD: Makefile.common,v 1.6 2004/10/30 16:26:27 grant Exp $
1.1       grant       2: #
                      3: 
                      4: DISTNAME=      Python-2.1.3
1.4       recht       5: CATEGORIES=    lang python
1.1       grant       6: MASTER_SITES=  ftp://ftp.python.org/pub/python/2.1.3/
                      7: EXTRACT_SUFX=  .tgz
                      8: 
                      9: MAINTAINER=    tech-pkg@NetBSD.org
                     10: HOMEPAGE=      http://www.python.org/
                     11: COMMENT=       Interpreted, interactive, object-oriented programming language
                     12: 
1.7     ! wiz        13: USE_LANGUAGES=         c c++
1.2       recht      14: USE_BUILDLINK3=                YES
1.1       grant      15: GNU_CONFIGURE=         YES
                     16: 
                     17: INSTALL_TARGET=                altinstall
                     18: 
                     19: .include "../../mk/bsd.prefs.mk"
                     20: 
                     21: PLIST_SRC=     ${.CURDIR}/../../lang/python21/PLIST.common
                     22: .if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
                     23: PLIST_SRC+=    ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
                     24: .endif
                     25: PLIST_SRC+=    ${.CURDIR}/../../lang/python21/PLIST.common_end
                     26: 
1.5       recht      27: .if ${OPSYS} == "Darwin"
1.1       grant      28: PY_PLATNAME=   ${LOWER_OPSYS}
1.5       recht      29: .elif ${OPSYS} == "IRIX"
                     30: PY_PLATNAME=   ${LOWER_OPSYS:C/\..*//}
1.6       grant      31: .elif ${OPSYS} == "SunOS"
                     32: PY_PLATNAME=   sunos${OS_VERSION:C/\..*//}
1.1       grant      33: .else
                     34: PY_PLATNAME=   ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
                     35: .endif
                     36: PLIST_SUBST+=  PY_PLATNAME=${PY_PLATNAME}
                     37: 
                     38: # bsddb.so is not built on Solaris (or IRIX?)
                     39: BSDDB=
                     40: .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
                     41: BSDDB=         "@comment "
                     42: .endif
                     43: PLIST_SUBST+=  BSDDB=${BSDDB}
                     44: 
                     45: PLIST_SUBST+=  PY_VER_SUFFIX=${PY_VER_SUFFIX}
                     46: 
                     47: post-extract:
                     48:        ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
                     49: 
1.2       recht      50: .include "../../devel/zlib/buildlink3.mk"
1.1       grant      51: .include "../../mk/bsd.pkg.mk"
                     52: 
                     53: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
                     54: # set earlier in the environment (last definition wins).
                     55: #
                     56: .if ${OBJECT_FMT} == "a.out"
                     57: MAKE_ENV+=     LDFLAGS="${LDFLAGS:S/-Wl,//}"
                     58: .endif

CVSweb <webmaster@jp.NetBSD.org>