QtChooser allows you to select your version of Qt among those installed. However, this tool is no longer supported upstream and will not be available for Qt6. By default, our Qt installations are done in ${LOCALBASE}/lib/qt${QT_VERSION} as recommended. We have added symbolic linking for the main binaries to ${LOCALBASE}/bin with the suffix -qt5.
29 lines
696 B
Makefile
29 lines
696 B
Makefile
PORTNAME= linguisttools
|
|
DISTVERSION= ${QT5_VERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= qt5-
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt localization tools
|
|
|
|
USES= compiler:c++11-lang qmake qt-dist:5,tools
|
|
USE_QT= core xml buildtools_build declarative_build
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/linguist
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/linguist
|
|
|
|
QT_BINARIES= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/SUBDIRS.*linguist/ d' \
|
|
${WRKSRC}/src/linguist/linguist.pro
|
|
|
|
post-install:
|
|
.for f in lrelease lupdate
|
|
${INSTALL_MAN} ${WRKSRC}/src/linguist/${f}/${f}.1 \
|
|
${STAGEDIR}${MANPREFIX}/man/man1
|
|
${RLN} ${STAGEDIR}${QT_BINDIR}/${f} ${STAGEDIR}${PREFIX}/bin/${f}-qt5
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|