Changeset View
Changeset View
Standalone View
Standalone View
textproc/py-libxml2/Makefile
# Created by: Alexander Nedotsukov <bland@FreeBSD.org> | # Created by: Alexander Nedotsukov <bland@FreeBSD.org> | ||||
CATEGORIES= textproc gnome python | CATEGORIES= textproc gnome python | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= desktop@FreeBSD.org | |||||
COMMENT= Python interface for XML parser library for GNOME | COMMENT= Python interface for XML parser library for GNOME | ||||
MASTERDIR= ${.CURDIR}/../libxml2 | MASTERDIR= ${.CURDIR}/../libxml2 | ||||
BUILD_WRKSRC= ${WRKSRC}/python | |||||
INSTALL_WRKSRC= ${BUILD_WRKSRC} | |||||
DESCR= ${.CURDIR}/pkg-descr | |||||
PLIST= ${.CURDIR}/pkg-plist | |||||
USES+= gnome python shebangfix | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
diizzy: This should go unless we need egg files and if so patches are needed | |||||
USES= gettext-runtime gnome python:3.6+ | USE_PYTHON= flavors | ||||
USE_PYTHON= autoplist distutils | SHEBANG_FILES= *.py doc/*.py python/*.py python/tests/*.py | ||||
Done Inline Actionsit's a bit asymmetric that you have the _ON here but the _OFF in the main-Makefile. tcberner: it's a bit asymmetric that you have the _ON here but the _OFF in the main-Makefile. | |||||
Done Inline ActionsI think it makes more sense to keep port related configuration (or at least as much as possible) within the port rather than spreading it around and I'm not sure how to "fix" this without reverting to if statements which I would like to avoid if possible but that's just my thoughts on it. diizzy: I think it makes more sense to keep port related configuration (or at least as much as… | |||||
CPPFLAGS+= `${PYTHON_CMD}-config --cflags` | # Help CMake determine the correct version of Python if | ||||
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_CMD}-config --libs` | # multiple versions are installed | ||||
CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \ | CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} | ||||
--with-html-dir=${PREFIX}/share/doc \ | |||||
--with-html-subdir=${PORTNAME} \ | |||||
--with-python=${PYTHON_CMD} | |||||
DOCSDIR= ${PREFIX}/share/doc/py-libxml2 | OPTIONS_SLAVE= ${OPTIONS_DEFINE:NTEST} | ||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2 | |||||
post-install: | # Tell master port we're a slave port | ||||
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod*.so | LIBXML2_SLAVE= python | ||||
# Grab pkg-descr from slave port | |||||
DESCR= ${.CURDIR}/pkg-descr | |||||
# Don't append pkg-plist from master port | |||||
PLIST= | |||||
PLIST_FILES= ${PYTHON_SITELIBDIR}/drv_libxml2.py \ | |||||
${PYTHON_SITELIBDIR}/libxml2.py \ | |||||
${PYTHON_SITELIBDIR}/libxml2mod.so \ | |||||
${PYTHON_SITELIBDIR}/libxml2mod.so.${DISTVERSION} | |||||
Done Inline Actionshard-coded /usr/local -- python.mk should provide you with the proper path as a single variable for the correct verison. tcberner: hard-coded `/usr/local` -- python.mk should provide you with the proper path as a single… | |||||
do-install: | |||||
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} | |||||
${INSTALL_SCRIPT} ${WRKSRC}/python/drv_libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR} | |||||
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR} | |||||
${INSTALL_LIB} ${BUILD_WRKSRC}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR} | |||||
${RLN} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so.${DISTVERSION} | |||||
.include "${MASTERDIR}/Makefile" | .include "${MASTERDIR}/Makefile" |
This should go unless we need egg files and if so patches are needed