08c94c0300
Add license block. Pull extra patch to fix NULL pointer deref. [1] Changelog: https://mail.gnome.org/archives/xml/2016-May/msg00023.html PR: 209806 Submitted by: pi@ Obtained from: upstream [1] MFH: 2016Q3 Security: e195679d-045b-4953-bb33-be0073ba2ac6
34 lines
951 B
Makefile
34 lines
951 B
Makefile
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTREVISION= 0
|
|
CATEGORIES= textproc gnome python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Python interface for XML parser library for GNOME
|
|
|
|
MASTERDIR= ${.CURDIR}/../libxml2
|
|
BUILD_WRKSRC= ${WRKSRC}/python
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
USE_GNOME+= libxml2
|
|
USES+= python:2 gettext-runtime
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
CPPFLAGS+= `${PYTHON_VERSION}-config --cflags`
|
|
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_VERSION}-config --libs`
|
|
CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \
|
|
--with-html-dir=${PREFIX}/share/doc \
|
|
--with-html-subdir=${PORTNAME} \
|
|
--with-python=${PYTHON_CMD}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-libxml2
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so
|
|
|
|
.include "${MASTERDIR}/Makefile"
|