2012-05-06 00:16:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2012/05/05 22:16:14 joerg Exp $
|
2002-10-16 18:45:56 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-expat-0
|
2012-05-06 00:16:14 +02:00
|
|
|
PKGREVISION= 6
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= textproc python
|
2002-10-16 18:45:56 +02:00
|
|
|
|
2012-04-16 00:00:58 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-10-16 18:45:56 +02:00
|
|
|
HOMEPAGE= http://www.python.org/
|
|
|
|
COMMENT= Python interface to expat
|
|
|
|
|
2008-03-15 19:11:38 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2011-12-03 01:02:14 +01:00
|
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/pyexpat.c
|
2002-10-16 18:45:56 +02:00
|
|
|
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
PY_SETUP_SUBST+= EXPATPREFIX=${BUILDLINK_DIR}
|
|
|
|
PY_SETUP_SUBST+= EXPATRTPREFIX=${BUILDLINK_PREFIX.expat}
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
2011-05-04 13:38:05 +02:00
|
|
|
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
|
2002-10-16 18:45:56 +02:00
|
|
|
|
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
|
|
do-patch:
|
|
|
|
(cd ${WRKSRC}; \
|
|
|
|
for f in ${PATCHDIR}/patch-*;do \
|
|
|
|
${PATCH} --batch <$$f || true; \
|
|
|
|
done)
|
|
|
|
|
2004-04-25 06:59:40 +02:00
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2002-10-16 18:45:56 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2002-12-10 16:08:19 +01:00
|
|
|
.include "../../lang/python/srcdist.mk"
|
2002-10-16 18:45:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|