32 lines
978 B
Makefile
32 lines
978 B
Makefile
# $NetBSD: Makefile,v 1.53 2016/05/27 23:52:05 pgoyette Exp $
|
|
|
|
.include "../../textproc/libxml2/Makefile.common"
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
|
|
COMMENT= Python wrapper for libxml2
|
|
LICENSE= modified-bsd
|
|
|
|
USE_GCC_RUNTIME= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/python
|
|
NO_CONFIGURE= YES
|
|
|
|
SUBST_CLASSES+= setup
|
|
SUBST_MESSAGE.setup= Fixing hardcoded paths.
|
|
SUBST_STAGE.setup= pre-build
|
|
SUBST_FILES.setup= setup.py
|
|
SUBST_SED.setup= -e "/ROOT/s,'/usr','${BUILDLINK_PREFIX.libxml2}',g"
|
|
SUBST_SED.setup+= -e "/^\"/s,/usr/include,${BUILDLINK_PREFIX.iconv}/include,g"
|
|
SUBST_SED.setup+= -e "/^\"/s,/usr/local/include,${BUILDLINK_PREFIX.iconv}/include,g"
|
|
|
|
EGG_NAME= ${DISTNAME:S/-/_python-/}
|
|
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
|
|
|
|
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=${PKGVERSION}
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
.include "../../lang/python/distutils.mk"
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|