# Created by: Danny Pansters # $FreeBSD: head/devel/qscintilla2/Makefile 403297 2015-12-08 16:49:43Z rakuco $ 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 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