Annotation of pkgsrc/lang/python/extension.mk, revision 1.7

1.7     ! recht       1: # $NetBSD: extension.mk,v 1.6 2003/11/01 12:10:00 recht Exp $
1.1       jlam        2: 
                      3: # derive a python version from the package name if possible
1.7     ! recht       4: # optionally handled quoted package names
1.1       jlam        5: .if defined(PKGNAME_REQD)
1.6       recht       6: PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/^\'?py([^-]*)-.*/\1/}
1.1       jlam        7: .endif
                      8: 
                      9: .include "../../lang/python/pyversion.mk"
                     10: 
                     11: .if defined(PYBINMODULE)
                     12: .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
1.2       schmonz    13: PKG_FAIL_REASON= "${PKGNAME} needs dynamic loading"
1.1       jlam       14: .endif
                     15: .endif
                     16: 
                     17: .if defined(PYDISTUTILSPKG)
                     18: PYSETUP?=              setup.py
                     19: PYSETUPBUILDARGS?=     #empty
                     20: PYSETUPINSTALLARGS?=   #empty
1.5       recht      21: PYSETUPOPTARGS?=       -c -O1
                     22: _PYSETUPINSTALLARGS=   ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS}
1.1       jlam       23: PY_PATCHPLIST?=                yes
1.3       jdolecek   24: PYSETUPSUBDIR?=                #empty
1.1       jlam       25: 
                     26: do-build:
1.3       jdolecek   27:        (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
1.4       recht      28:         ${PYSETUP} build ${PYSETUPBUILDARGS})
1.1       jlam       29: 
                     30: do-install:
1.3       jdolecek   31:        (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
1.5       recht      32:         ${PYSETUP} install ${_PYSETUPINSTALLARGS})
1.1       jlam       33: .endif
                     34: 
                     35: .if defined(PY_PATCHPLIST)
                     36: PLIST_SUBST+=  PYINC=${PYINC} PYSITELIB=${PYSITELIB}
                     37: .endif

CVSweb <webmaster@jp.NetBSD.org>