summaryrefslogtreecommitdiff
path: root/sysutils/qt5-qtpaths
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/qt5-qtpaths')
-rw-r--r--sysutils/qt5-qtpaths/Makefile11
-rw-r--r--sysutils/qt5-qtpaths/files/patch-src_src.pro58
-rw-r--r--sysutils/qt5-qtpaths/pkg-plist2
3 files changed, 60 insertions, 11 deletions
diff --git a/sysutils/qt5-qtpaths/Makefile b/sysutils/qt5-qtpaths/Makefile
index 2ae61bbe340c..319a0b653198 100644
--- a/sysutils/qt5-qtpaths/Makefile
+++ b/sysutils/qt5-qtpaths/Makefile
@@ -11,17 +11,6 @@ COMMENT= Command line client to QStandardPaths
USES= compiler:c++11-lang qmake:outsource qt-dist:5,tools
USE_QT= core
-PLIST_FILES= ${QT_BINDIR}/qtpaths
-
-# Similarly to x11/qt5-qev, it makes more sense to just run the build system
-# from the qtpaths directory. If we run it from the top of the source tree, it
-# will look for a lot more dependencies for other tools such as lupdate, which
-# we do not really have to depend on.
-WRKSRC_SUBDIR= src/${PORTNAME}
-
QT_BINARIES= yes
-post-patch:
- ${CP} ${WRKSRC}/../../.qmake.conf ${WRKSRC}
-
.include <bsd.port.mk>
diff --git a/sysutils/qt5-qtpaths/files/patch-src_src.pro b/sysutils/qt5-qtpaths/files/patch-src_src.pro
new file mode 100644
index 000000000000..0d759da395aa
--- /dev/null
+++ b/sysutils/qt5-qtpaths/files/patch-src_src.pro
@@ -0,0 +1,58 @@
+--- src/src.pro.orig 2020-04-12 20:15:00 UTC
++++ src/src.pro
+@@ -1,54 +1,3 @@
+ TEMPLATE = subdirs
+
+-qtHaveModule(widgets) {
+- no-png {
+- message("Some graphics-related tools are unavailable without PNG support")
+- } else {
+- QT_FOR_CONFIG += widgets
+- qtConfig(pushbutton):qtConfig(toolbutton) {
+- SUBDIRS = assistant \
+- designer \
+- pixeltool
+-
+- linguist.depends = designer
+- }
+- qtHaveModule(quick):qtConfig(thread):qtConfig(toolbutton): SUBDIRS += distancefieldgenerator
+- }
+-}
+-
+-SUBDIRS += linguist \
+- qtattributionsscanner
+-
+-qtConfig(library) {
+- !android|android_app: SUBDIRS += qtplugininfo
+-}
+-
+-include($$OUT_PWD/qdoc/qtqdoc-config.pri)
+-QT_FOR_CONFIG += qdoc-private
+-qtConfig(qdoc): qtConfig(thread): SUBDIRS += qdoc
+-
+-!android|android_app: SUBDIRS += qtpaths
+-
+-macos {
+- SUBDIRS += macdeployqt
+-}
+-
+-qtHaveModule(dbus): SUBDIRS += qdbus
+-
+-win32|winrt:SUBDIRS += windeployqt
+-winrt:SUBDIRS += winrtrunner
+-qtHaveModule(gui):!wasm:!android:!uikit:!qnx:!winrt: SUBDIRS += qtdiag
+-
+-qtNomakeTools( \
+- distancefieldgenerator \
+- pixeltool \
+-)
+-
+-# This is necessary to avoid a race condition between toolchain.prf
+-# invocations in a module-by-module cross-build.
+-cross_compile:isEmpty(QMAKE_HOST_CXX.INCDIRS) {
+- qdoc.depends += qtattributionsscanner
+- windeployqt.depends += qtattributionsscanner
+- winrtrunner.depends += qtattributionsscanner
+- linguist.depends += qtattributionsscanner
+-}
++SUBDIRS = qtpaths
diff --git a/sysutils/qt5-qtpaths/pkg-plist b/sysutils/qt5-qtpaths/pkg-plist
new file mode 100644
index 000000000000..6a5b89e9c63d
--- /dev/null
+++ b/sysutils/qt5-qtpaths/pkg-plist
@@ -0,0 +1,2 @@
+%%QT_BINDIR%%/qtpaths
+%%DEBUG%%%%QT_BINDIR%%/qtpaths.debug