aa9ba55255
* This is mostly based on the work by Adriaan de Groot <groot@kde.org> in our development repo. PR: 217305 PR: 218539 Submitted by: Adriaan de Groot <groot@kde.org> Reviewed by: rakuco, mat Approved by: rakuco (mentor) Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D9771
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# Created by: nbm
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sip
|
|
PORTVERSION= ${SIP_VERSION}
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITES_SIP}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${SIP_DISTNAME}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Python to C and C++ bindings generator
|
|
|
|
USES= python pyqt:sip
|
|
USE_PYTHON= concurrent py3kplist
|
|
USE_PYQT= #
|
|
|
|
CONFIGURE_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
|
|
DEBUG_CONFIGURE_ON= --debug
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS}
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR} && cd ${WRKSRC}/doc/html && \
|
|
${COPYTREE_SHARE} \. ${STAGEDIR}${DOCSDIR}
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
-f -d ${PYTHONPREFIX_SITELIBDIR} \
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
-f -d ${PYTHONPREFIX_SITELIBDIR} \
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/sip
|
|
${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/sip.so
|
|
|
|
.include <bsd.port.mk>
|