1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/devel/py-sip/Makefile
Raphael Kubo da Costa cd03765d17 Set PYTHON_PY3K_PLIST_HACK to adjust the plist for Python >= 3.2.0.
Since this port does not use distutils/setuptools and we manually generate
the .pyc/.pyo files, we need to set PYTHON_PY3K_PLIST_HACK so that the cache
files end up in the right directory if Python >= 3.2.0 is used due to
PEP-3147.

PR:		188150
MFH:		2014Q2
2014-06-08 10:19:25 +00:00

54 lines
1.4 KiB
Makefile

# Created by: nbm
# $FreeBSD$
PORTNAME= sip
PORTVERSION= ${SIP_VERSION}
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITES_SIP} ${MASTER_SITE_LOCAL}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${SIP_DISTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python to C and C++ bindings generator
USE_PYTHON= yes
PYTHON_PY3K_PLIST_HACK= yes
DATADIR= ${PREFIX}/share/py-${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \
-e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR} \
CC="${CC}" CXX="${CXX}" LINK="${CXX}" LINK_SHLIB="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INCDIR="${LOCALBASE}/include" LIBDIR="${LOCALBASE}/lib"
PORTDOCS= *
OPTIONS_DEFINE= DOCS DEBUG
.include "${.CURDIR}/../py-qt4/bsd.pyqt.mk"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
ARGS+= -u
.endif
do-configure:
cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR} && cd ${WRKSRC}/doc/html && \
${COPYTREE_SHARE} \. ${STAGEDIR}${DOCSDIR}
.endif
${MKDIR} ${STAGEDIR}${DATADIR} &&\
cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} &&\
${PYTHON_CMD} -c "import sipconfig" &&\
${PYTHON_CMD} -O -c "import sipconfig" &&\
${PYTHON_CMD} -c "import sipdistutils" &&\
${PYTHON_CMD} -O -c "import sipdistutils"
.include <bsd.port.mk>