In preparation for landing PyQt5 ports, generalize devel/py-qt4's bsd.pyqt.mk and make it a proper file in Uses/. Ports wishing to depend on PyQt4 ports can now do the following: USES= pyqt:4 USE_PYQT= foo bar_build baz_run Other changes include the renaming of the PYQT4_DIST variable to PYQT_DIST and the introduction of the PYQT_SIPDIR plist substitution variable. The rest of the contents of Uses/pyqt.mk are pretty much identical to what we had in bsd.pyqt.mk with additional processing of USE_PYQT. Even though this patch touches files in many different ports, the goal is for it to be a no-op from an end-user perspective (so that the basic infrastructure is landed before the other, riskier changes): no dependencies have been changed, PyQt/SIP/QScintilla have not been upgraded and the plists should remain exactly the same, since PYQT_SIPDIR currently contains the same value that used to be hardcoded in the plists. Huge thanks to Guido Falsi (madpilot@) for spearheading most of the work: he took the initiative to work on PyQt5 and sent D2910 to Phabricator with the original version of this patch. Tobias Berner (tcberner@gmail.com) later applied it to kde@'s experimental area51 repositories and did some more work on it.
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# Created by: Danny Pansters <danny@ricin.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qscintilla2
|
|
PORTVERSION= ${QSCI2_VERSION}
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITES_QSCI2}
|
|
DISTNAME= ${QSCI2_DISTNAME}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt 4 port of the Scintilla C++ editor class
|
|
|
|
USES= qmake pyqt:4
|
|
USE_PYQT= #
|
|
USE_QT4= moc_build gui xml designer
|
|
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/Qt4Qt5
|
|
CONFIGURE_WRKSRC= ${BUILD_WRKSRC}
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e \
|
|
's|$$$$\[QT_INSTALL_HEADERS\]|${PREFIX}/${QT_INCDIR_REL}|; \
|
|
s|$$$$\[QT_INSTALL_LIBS\]|${PREFIX}/${QT_LIBDIR_REL}|; \
|
|
s|$$$$\[QT_INSTALL_TRANSLATIONS\]|${PREFIX}/share/qt4/translations|; \
|
|
s|$$$$\[QT_INSTALL_DATA\]|${PREFIX}/share/qt4|' \
|
|
qscintilla.pro
|
|
|
|
.if empty(PORT_OPTIONS:MNLS)
|
|
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e \
|
|
's|trans qsci|qsci|' qscintilla.pro
|
|
.endif
|
|
|
|
post-install:
|
|
cd ${WRKSRC} &&\
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/html ${STAGEDIR}${DOCSDIR}/Scintilla &&\
|
|
${INSTALL_DATA} NEWS README ${STAGEDIR}${DOCSDIR} &&\
|
|
${INSTALL_DATA} doc/html-Qt4Qt5/* ${STAGEDIR}${DOCSDIR}/html &&\
|
|
${INSTALL_DATA} doc/Scintilla/* ${STAGEDIR}${DOCSDIR}/Scintilla
|
|
cd ${WRKSRC}/example-Qt4Qt5 &&\
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/images &&\
|
|
${INSTALL_DATA} *.* ${STAGEDIR}${EXAMPLESDIR} &&\
|
|
${INSTALL_DATA} images/* ${STAGEDIR}${EXAMPLESDIR}/images
|
|
|
|
.include <bsd.port.mk>
|