freebsd-ports/x11/qt5-qev/Makefile
Tobias C. Berner 93eea426e8 misc/qtchooser: do not create unnecessary wrappers
misc/qtchooser provides a wrapper binary bin/qtchooser, that when called with
name foo, will lauch the corresponding binary from lib/qt${current_qt_version}/bin/foo.

Previously qtchooser would install a list of 30-ish symlinks to itself automatically.
Now we switch this around.

qt-dist ports that define QT_BINARIES will now have a @postexec and @postunexec
entry added to their plist to run the shell-script update-qtchooser-wrapper
(installed by qtchooser).

update-qtchooser-wrapper removes all symlinks to bin/qtcreator that have no
corresponding binary in lib/qt*/bin, and readds links that are missing.

Exp-run by:	antoine
PR:		242905
PR:		243443
Reported by:	grarpamp@gmail.com
Reviewed by:	adridg
Differential Revision:	https://reviews.freebsd.org/D22991
2020-01-25 20:19:38 +00:00

26 lines
686 B
Makefile

# $FreeBSD$
PORTNAME= qev
DISTVERSION= ${QT5_VERSION}
PORTREVISION= 1
CATEGORIES= x11
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt QWidget events introspection tool
USES= compiler:c++11-lang qmake qt-dist:5,tools
USE_QT= core widgets
WRKSRC_SUBDIR= src/${PORTNAME}
QT_BINARIES= yes
# qev is not connected to qttool's build system, so we cannot just run qmake qt-dist:5,tools
# and set {BUILD,INSTALL}_WRKSRC.
# Instead, we run qmake qt-dist:5,tools from src/${PORTNAME} but need to copy .qmake qt-dist:5,tools.conf to
# it for all required variables to be set (MODULE_VERSION etc).
post-patch:
${CP} ${WRKSRC}/../../.qmake.conf ${WRKSRC}
.include <bsd.port.mk>