blob: 6449add87bb4fb77201418c39feb8618cd021676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.16 2011/12/03 00:02:16 joerg Exp $
#
PKGNAME= ${PYPKGPREFIX}-expat-0
PKGREVISION= 5
CATEGORIES= textproc python
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://www.python.org/
COMMENT= Python interface to expat
PKG_DESTDIR_SUPPORT= user-destdir
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"
|