mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
7cfca3405b
PR: 24004 Exp-run by: antoine Reviewed by: madpilot Differential Revision: https://reviews.freebsd.org/D22410
34 lines
931 B
Makefile
34 lines
931 B
Makefile
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
CATEGORIES= textproc gnome python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= desktop@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= gettext-runtime gnome python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
CPPFLAGS+= `${PYTHON_CMD}-config --cflags`
|
|
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_CMD}-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"
|