mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 03:45:17 -04:00
to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit)
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# Created by: Danny Pansters <danny@ricin.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= core
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel python
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Python bindings for the Qt4 toolkit, QtCore module
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:${PORTSDIR}/devel/py-sip
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
CONFIGURE_ARGS= --enable QtCore
|
|
PYQT4_DIST= yes
|
|
PYTHON_PY3K_PLIST_HACK= yes
|
|
USE_QT4= corelib qmake_build moc_build
|
|
|
|
OPTIONS_DEFINE= API DEBUG
|
|
OPTIONS_DEFAULT=API
|
|
OPTIONS_SUB= yes
|
|
|
|
API_DESC= Install QtCore API for QScintilla2
|
|
API_CONFIGURE_ON= --qsci-api --qsci-api-destdir=${QSCIDIR}
|
|
API_CONFIGURE_OFF= --no-qsci-api
|
|
API_LIB_DEPENDS= libqscintilla2.so:${PORTSDIR}/devel/qscintilla2
|
|
DEBUG_CONFIGURE_ON= --debug --trace
|
|
|
|
.include "${.CURDIR}/../py-qt4/bsd.pyqt.mk"
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Bug 180467: We need to remove the port_v${VERSION} directory that does not
|
|
# correspond to the Python version being used to avoid failures in the
|
|
# bytecompilation calls in post-install.
|
|
PLIST_SUB+= PYTHON_MAJOR_VER="${PYTHON_MAJOR_VER}"
|
|
post-patch:
|
|
.if ${PYTHON_MAJOR_VER} == "2"
|
|
${RM} -rf ${WRKSRC}/pyuic/uic/port_v3
|
|
.elif ${PYTHON_MAJOR_VER} == "3"
|
|
${RM} -rf ${WRKSRC}/pyuic/uic/port_v2
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/Qt.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt4
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
-f -d ${PYTHONPREFIX_SITELIBDIR} \
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt4
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
-f -d ${PYTHONPREFIX_SITELIBDIR} \
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt4
|
|
|
|
.include <bsd.port.post.mk>
|