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

1.5     ! recht       1: # $NetBSD: Makefile.common,v 1.4 2004/07/22 09:16:03 recht 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.3       abs        13: USE_GCC_SHLIB=         YES
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: 
                     27: .if ${OPSYS} == "SunOS"
                     28: LOWER_OPSYS=   sunos
                     29: .endif
                     30: 
1.5     ! recht      31: .if ${OPSYS} == "Darwin"
1.1       grant      32: PY_PLATNAME=   ${LOWER_OPSYS}
1.5     ! recht      33: .elif ${OPSYS} == "IRIX"
        !            34: PY_PLATNAME=   ${LOWER_OPSYS:C/\..*//}
1.1       grant      35: .else
                     36: PY_PLATNAME=   ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
                     37: .endif
                     38: PLIST_SUBST+=  PY_PLATNAME=${PY_PLATNAME}
                     39: 
                     40: # bsddb.so is not built on Solaris (or IRIX?)
                     41: BSDDB=
                     42: .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
                     43: BSDDB=         "@comment "
                     44: .endif
                     45: PLIST_SUBST+=  BSDDB=${BSDDB}
                     46: 
                     47: PLIST_SUBST+=  PY_VER_SUFFIX=${PY_VER_SUFFIX}
                     48: 
                     49: post-extract:
                     50:        ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
                     51: 
1.2       recht      52: .include "../../devel/zlib/buildlink3.mk"
1.1       grant      53: .include "../../mk/bsd.pkg.mk"
                     54: 
                     55: # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
                     56: # set earlier in the environment (last definition wins).
                     57: #
                     58: .if ${OBJECT_FMT} == "a.out"
                     59: MAKE_ENV+=     LDFLAGS="${LDFLAGS:S/-Wl,//}"
                     60: .endif

CVSweb <webmaster@jp.NetBSD.org>