34 lines
900 B
Makefile
34 lines
900 B
Makefile
# $NetBSD: Makefile,v 1.19 2012/10/25 06:56:49 asau Exp $
|
|
#
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-expat-0
|
|
PKGREVISION= 6
|
|
CATEGORIES= textproc python
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.python.org/
|
|
COMMENT= Python interface to expat
|
|
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/pyexpat.c
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PY_PATCHPLIST= yes
|
|
PY_SETUP_SUBST+= EXPATPREFIX=${BUILDLINK_DIR}
|
|
PY_SETUP_SUBST+= EXPATRTPREFIX=${BUILDLINK_PREFIX.expat}
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
|
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
do-patch:
|
|
(cd ${WRKSRC}; \
|
|
for f in ${PATCHDIR}/patch-*;do \
|
|
${PATCH} --batch <$$f || true; \
|
|
done)
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/srcdist.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|