freebsd-ports/devel/qscintilla2-qt5/Makefile
Tobias C. Berner cc8a667aa2 pyqt: Change install directories for Python flavor support
* PyQt could not be installed for multiple Python versions at
  the same time, as there were conflicting files.

  This patch creates Python-version versioned directories for
  all these, and further installs binaries with a version number.

* Note, there might be some hickups for software that depends on
  on of the .so's provided by PyQt5, which might not be found
  anymore autmotically, and maybe need some LD-flaggery.

* Update PyQt5 to 5.10.1

* Mark www/py-qt5-webengine broken. It is unforuntately no longer
  compatible with the old qt5-webengine-5.9.4 we ship.

PR:		232745
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D8714
2018-11-22 20:18:37 +00:00

48 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= qscintilla2-qt5
PORTVERSION= ${QSCI2_VERSION}
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITES_QSCI2}
DISTNAME= ${QSCI2_DISTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt 5 port of the Scintilla C++ editor class
USES= qmake pyqt:5 qt:5
USE_GL= gl
USE_PYQT= #
USE_QT= buildtools_build core gui printsupport widgets
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:
.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>