b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
33 lines
820 B
Makefile
33 lines
820 B
Makefile
# $NetBSD: Makefile,v 1.9 2005/12/05 20:51:07 rillig Exp $
|
|
#
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-expat-0
|
|
PKGREVISION= 2
|
|
CATEGORIES= textproc python
|
|
|
|
MAINTAINER= tsarna@NetBSD.org
|
|
HOMEPAGE= http://www.python.org/
|
|
COMMENT= Python interface to expat
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/pyexpat.c
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PYBINMODULE= yes
|
|
PY_PATCHPLIST= yes
|
|
PY_SETUP_SUBST+= EXPATPREFIX=${BUILDLINK_DIR}
|
|
PY_SETUP_SUBST+= EXPATRTPREFIX=${BUILDLINK_PREFIX.expat}
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
|
|
|
|
# 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"
|