git: 58972f6dd486 - main - Qt 5 distribution ports: Add USE_LDCONFIG where appropriate

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 05 Mar 2025 19:15:27 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58972f6dd4869cd14c00624f7361ab91be904223

commit 58972f6dd4869cd14c00624f7361ab91be904223
Author:     Жунёва Мария Михайловна <zhunyova@mts.ru>
AuthorDate: 2025-03-05 18:51:36 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-05 19:14:25 +0000

    Qt 5 distribution ports: Add USE_LDCONFIG where appropriate
    
    Pull Request:   https://github.com/freebsd/freebsd-ports/pull/358
---
 accessibility/qt5-speech/Makefile          | 2 ++
 comms/qt5-connectivity/Makefile            | 2 ++
 comms/qt5-sensors/Makefile                 | 2 ++
 comms/qt5-serialbus/Makefile               | 2 ++
 comms/qt5-serialport/Makefile              | 2 ++
 databases/qt5-sql/Makefile                 | 2 ++
 devel/qt5-concurrent/Makefile              | 2 ++
 devel/qt5-dbus/Makefile                    | 2 ++
 devel/qt5-designer/Makefile                | 2 ++
 devel/qt5-help/Makefile                    | 2 ++
 devel/qt5-location/Makefile                | 2 ++
 devel/qt5-remoteobjects/Makefile           | 2 ++
 devel/qt5-script/Makefile                  | 3 ++-
 devel/qt5-scripttools/Makefile             | 3 ++-
 devel/qt5-scxml/Makefile                   | 2 ++
 devel/qt5-testlib/Makefile                 | 2 ++
 graphics/qt5-3d/Makefile                   | 2 ++
 graphics/qt5-opengl/Makefile               | 2 ++
 graphics/qt5-svg/Makefile                  | 2 ++
 graphics/qt5-wayland/Makefile              | 2 ++
 multimedia/qt5-multimedia/Makefile         | 3 ++-
 net/qt5-network/Makefile                   | 2 ++
 net/qt5-networkauth/Makefile               | 2 ++
 print/qt5-printsupport/Makefile            | 2 ++
 textproc/qt5-xml/Makefile                  | 2 ++
 textproc/qt5-xmlpatterns/Makefile          | 2 ++
 www/qt5-webchannel/Makefile                | 2 ++
 www/qt5-webengine/Makefile                 | 3 ++-
 www/qt5-websockets/Makefile                | 2 ++
 www/qt5-webview/Makefile                   | 2 ++
 x11-toolkits/qt5-charts/Makefile           | 2 ++
 x11-toolkits/qt5-datavis3d/Makefile        | 2 ++
 x11-toolkits/qt5-declarative-test/Makefile | 2 ++
 x11-toolkits/qt5-declarative/Makefile      | 2 ++
 x11-toolkits/qt5-gamepad/Makefile          | 2 ++
 x11-toolkits/qt5-quick3d/Makefile          | 2 ++
 x11-toolkits/qt5-quickcontrols2/Makefile   | 2 ++
 x11-toolkits/qt5-virtualkeyboard/Makefile  | 2 ++
 x11-toolkits/qt5-widgets/Makefile          | 2 ++
 x11/qt5-x11extras/Makefile                 | 2 ++
 40 files changed, 80 insertions(+), 4 deletions(-)

diff --git a/accessibility/qt5-speech/Makefile b/accessibility/qt5-speech/Makefile
index e4d9491da5da..e0eb3a7f6136 100644
--- a/accessibility/qt5-speech/Makefile
+++ b/accessibility/qt5-speech/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	speech
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	accessibility
 PKGNAMEPREFIX=	qt5-
 
@@ -11,6 +12,7 @@ USES=		compiler:c++11-lang gl pkgconfig perl5 qmake:outsource,norecursive \
 USE_GL=		gl
 USE_PERL5=	extract
 USE_QT=		core gui buildtools:build qmake:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 OPTIONS_DEFINE=		ALSA
 OPTIONS_GROUP=		BACKEND
diff --git a/comms/qt5-connectivity/Makefile b/comms/qt5-connectivity/Makefile
index 87fde0e4b281..a763c306ea2b 100644
--- a/comms/qt5-connectivity/Makefile
+++ b/comms/qt5-connectivity/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	connectivity
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	comms
 PKGNAMEPREFIX=	qt5-
 
@@ -9,5 +10,6 @@ COMMENT=	Qt connectivity (Bluetooth/NFC) module
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,connectivity
 USE_PERL5=	build
 USE_QT=		concurrent core declarative buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/comms/qt5-sensors/Makefile b/comms/qt5-sensors/Makefile
index 4aa2a8deacd0..c227ad79e4ce 100644
--- a/comms/qt5-sensors/Makefile
+++ b/comms/qt5-sensors/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sensors
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	comms
 PKGNAMEPREFIX=	qt5-
 
@@ -9,5 +10,6 @@ COMMENT=	Qt sensors module
 USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,sensors
 USE_PERL5=	build
 USE_QT=		core declarative buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/comms/qt5-serialbus/Makefile b/comms/qt5-serialbus/Makefile
index 8d6383b666f7..eccb7fe8ba0e 100644
--- a/comms/qt5-serialbus/Makefile
+++ b/comms/qt5-serialbus/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	serialbus
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	comms
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt functions to access industrial bus systems
 USES=		compiler:c++11-lib perl5 qmake qt-dist:5,serialbus
 USE_PERL5=	extract
 USE_QT=		core network serialport buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 QT_BINARIES=	yes
 
 .include <bsd.port.mk>
diff --git a/comms/qt5-serialport/Makefile b/comms/qt5-serialport/Makefile
index 6d146d533fc4..a21296882c02 100644
--- a/comms/qt5-serialport/Makefile
+++ b/comms/qt5-serialport/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	serialport
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	comms
 PKGNAMEPREFIX=	qt5-
 
@@ -9,5 +10,6 @@ COMMENT=	Qt functions to access serial ports
 USES=		compiler:c++11-lang libtool perl5 qmake qt-dist:5,serialport
 USE_PERL5=	extract
 USE_QT=		core buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/databases/qt5-sql/Makefile b/databases/qt5-sql/Makefile
index fa1f1ed8cbff..5cea48690be2 100644
--- a/databases/qt5-sql/Makefile
+++ b/databases/qt5-sql/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sql
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	databases
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt SQL database integration module
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/devel/qt5-concurrent/Makefile b/devel/qt5-concurrent/Makefile
index 9532f9a11665..ff96f0726168 100644
--- a/devel/qt5-concurrent/Makefile
+++ b/devel/qt5-concurrent/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	concurrent
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt multi-threading module
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/devel/qt5-dbus/Makefile b/devel/qt5-dbus/Makefile
index 394cca577a21..22dfe5bacd4c 100644
--- a/devel/qt5-dbus/Makefile
+++ b/devel/qt5-dbus/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	dbus
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -11,6 +12,7 @@ LIB_DEPENDS=	libdbus-1.so:devel/dbus
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/devel/qt5-designer/Makefile b/devel/qt5-designer/Makefile
index e7132a956fef..bae576adb1f3 100644
--- a/devel/qt5-designer/Makefile
+++ b/devel/qt5-designer/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	designer
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ USES=		compiler:c++11-lang perl5 qmake qt-dist:5,tools
 USE_PERL5=	build
 USE_QT=		assistant:run core declarative gui network printsupport uiplugin \
 		widgets xml buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 DESKTOP_ENTRIES="Qt 5 Designer" "" \
 		"${PREFIX}/share/pixmaps/designer-qt5.png" \
diff --git a/devel/qt5-help/Makefile b/devel/qt5-help/Makefile
index ed70e5baf977..42c8c3e2d7f4 100644
--- a/devel/qt5-help/Makefile
+++ b/devel/qt5-help/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	help
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ USES=		compiler:c++11-lang perl5 qmake qt-dist:5,tools
 USE_PERL5=	build
 USE_QT=		core gui network sql widgets \
 		buildtools:build sql-sqlite3:run
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QT_BINARIES=	yes
 
diff --git a/devel/qt5-location/Makefile b/devel/qt5-location/Makefile
index f4f5ccf5bd22..91aaf52781ed 100644
--- a/devel/qt5-location/Makefile
+++ b/devel/qt5-location/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	location
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -10,5 +11,6 @@ USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,location
 USE_PERL5=	build
 USE_QT=		concurrent core dbus declarative gui network serialport \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/devel/qt5-remoteobjects/Makefile b/devel/qt5-remoteobjects/Makefile
index feccc271254d..9324617a3f5f 100644
--- a/devel/qt5-remoteobjects/Makefile
+++ b/devel/qt5-remoteobjects/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	remoteobjects
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -11,6 +12,7 @@ USE_GL=		gl
 USE_PERL5=	build
 USE_QT=		core declarative network \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QT_BINARIES=	yes
 
diff --git a/devel/qt5-script/Makefile b/devel/qt5-script/Makefile
index cd8e2cddefbc..34fade48e748 100644
--- a/devel/qt5-script/Makefile
+++ b/devel/qt5-script/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	script
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +10,7 @@ COMMENT=	Qt 4-compatible scripting module
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,script
 USE_PERL5=	extract
 USE_QT=		core buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 # Keep make(1) from descending into src/script/obj/ (qmake:outsource
 # doesn't work).
 MAKE_ENV=	MAKEOBJDIR=.
diff --git a/devel/qt5-scripttools/Makefile b/devel/qt5-scripttools/Makefile
index b1de205c921f..17b46fa16b80 100644
--- a/devel/qt5-scripttools/Makefile
+++ b/devel/qt5-scripttools/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	scripttools
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +10,7 @@ COMMENT=	Qt Script additional components
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,script
 USE_PERL5=	build
 USE_QT=		core gui script widgets buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 BUILD_WRKSRC=	${WRKSRC}/src/${PORTNAME}
 INSTALL_WRKSRC=	${WRKSRC}/src/${PORTNAME}
diff --git a/devel/qt5-scxml/Makefile b/devel/qt5-scxml/Makefile
index 16e579dcfcf0..8e290f631fe9 100644
--- a/devel/qt5-scxml/Makefile
+++ b/devel/qt5-scxml/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	scxml
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt5 SCXML module
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,scxml
 USE_PERL5=	build
 USE_QT=		core declarative network buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QT_BINARIES=	yes
 
diff --git a/devel/qt5-testlib/Makefile b/devel/qt5-testlib/Makefile
index e883878f2180..6332499fbd94 100644
--- a/devel/qt5-testlib/Makefile
+++ b/devel/qt5-testlib/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	testlib
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt unit testing module
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/graphics/qt5-3d/Makefile b/graphics/qt5-3d/Makefile
index e2e8188bd949..0f7cf8beb18b 100644
--- a/graphics/qt5-3d/Makefile
+++ b/graphics/qt5-3d/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	3d
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	graphics
 PKGNAMEPREFIX=	qt5-
 
@@ -11,6 +12,7 @@ LIB_DEPENDS=	libassimp.so:multimedia/assimp
 USES=		compiler:c++11-lang perl5 pkgconfig qmake:norecursive qt-dist:5,3d
 USE_PERL5=	extract
 USE_QT=		concurrent core declarative gui network buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 OPTIONS_DEFINE_amd64=	AVX
 OPTIONS_DEFINE_i386=	AVX
diff --git a/graphics/qt5-opengl/Makefile b/graphics/qt5-opengl/Makefile
index 8769038a9b31..b6281e94ca9a 100644
--- a/graphics/qt5-opengl/Makefile
+++ b/graphics/qt5-opengl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	opengl
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	graphics
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ USES=		compiler:c++11-lang gl perl5 qmake:no_env qt-dist:5,base
 USE_GL=		gl
 USE_PERL5=	extract
 USE_QT=		core gui widgets qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 
 BUILD_WRKSRC=	${WRKSRC}/src/${PORTNAME}
diff --git a/graphics/qt5-svg/Makefile b/graphics/qt5-svg/Makefile
index 85bd01a3b956..acfb5d69163e 100644
--- a/graphics/qt5-svg/Makefile
+++ b/graphics/qt5-svg/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	svg
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	graphics
 PKGNAMEPREFIX=	qt5-
 
@@ -9,5 +10,6 @@ COMMENT=	Qt SVG support module
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,svg
 USE_PERL5=	build
 USE_QT=		core gui widgets buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/graphics/qt5-wayland/Makefile b/graphics/qt5-wayland/Makefile
index df6e9b59b53c..8c0b9d0f9c16 100644
--- a/graphics/qt5-wayland/Makefile
+++ b/graphics/qt5-wayland/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	wayland
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	graphics wayland
 PKGNAMEPREFIX=	qt5-
 
@@ -19,6 +20,7 @@ USE_GNOME=	glib20
 USE_PERL5=	build
 USE_QT=		core dbus gui declarative \
 		buildtools:build qmake:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 USE_XORG=	x11 xcomposite
 
 QT_BINARIES=	yes
diff --git a/multimedia/qt5-multimedia/Makefile b/multimedia/qt5-multimedia/Makefile
index 9438dcc80ff4..dd9a0f765fbb 100644
--- a/multimedia/qt5-multimedia/Makefile
+++ b/multimedia/qt5-multimedia/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	multimedia
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia
 PKGNAMEPREFIX=	qt5-
 
@@ -16,6 +16,7 @@ USE_GNOME=	glib20
 USE_PERL5=	build
 USE_QT=		core declarative gui network opengl widgets \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 USE_XORG=	x11 xext xv
 
 QT_CONFIG=	xlib
diff --git a/net/qt5-network/Makefile b/net/qt5-network/Makefile
index c92c8074b1f0..4685b1473397 100644
--- a/net/qt5-network/Makefile
+++ b/net/qt5-network/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	network
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	net
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt network module
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base ssl
 USE_PERL5=	extract
 USE_QT=		core buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/net/qt5-networkauth/Makefile b/net/qt5-networkauth/Makefile
index 2255dfdc9dbf..491c8802b377 100644
--- a/net/qt5-networkauth/Makefile
+++ b/net/qt5-networkauth/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	networkauth
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	net
 PKGNAMEPREFIX=	qt5-
 
@@ -10,5 +11,6 @@ USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5
 USE_PERL5=	extract
 USE_QT=		core network \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/print/qt5-printsupport/Makefile b/print/qt5-printsupport/Makefile
index a62b8603597d..b9b94e5bc450 100644
--- a/print/qt5-printsupport/Makefile
+++ b/print/qt5-printsupport/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	printsupport
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	print
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt print support module
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core gui widgets qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 
 BUILD_WRKSRC=	${WRKSRC}/src/${PORTNAME}
diff --git a/textproc/qt5-xml/Makefile b/textproc/qt5-xml/Makefile
index 60db446925db..ffe53be3e66e 100644
--- a/textproc/qt5-xml/Makefile
+++ b/textproc/qt5-xml/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xml
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	textproc
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt SAX and DOM implementations
 USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base
 USE_PERL5=	extract
 USE_QT=		core qmake:build buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-no-gui -no-xcb
 
diff --git a/textproc/qt5-xmlpatterns/Makefile b/textproc/qt5-xmlpatterns/Makefile
index 3e7fe12b77c1..c55fb777bea8 100644
--- a/textproc/qt5-xmlpatterns/Makefile
+++ b/textproc/qt5-xmlpatterns/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xmlpatterns
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	textproc
 PKGNAMEPREFIX=	qt5-
 
@@ -9,6 +10,7 @@ COMMENT=	Qt support for XPath, XQuery, XSLT and XML Schema
 USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,xmlpatterns
 USE_PERL5=	build
 USE_QT=		core declarative network buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QT_BINARIES=	yes
 
diff --git a/www/qt5-webchannel/Makefile b/www/qt5-webchannel/Makefile
index e73f96fdb667..b56aceae2da5 100644
--- a/www/qt5-webchannel/Makefile
+++ b/www/qt5-webchannel/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	webchannel
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	www
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,webchannel
 USE_PERL5=	build
 USE_QT=		core declarative \
 		buildtools:build declarative-test:build testlib:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 # The default EXTRACT_AFTER_ARGS value excludes examples/ from the extracted
 # tarball, which we need during the build.
diff --git a/www/qt5-webengine/Makefile b/www/qt5-webengine/Makefile
index c1864b0d30c7..82986332de6c 100644
--- a/www/qt5-webengine/Makefile
+++ b/www/qt5-webengine/Makefile
@@ -19,7 +19,7 @@
 
 PORTNAME=	webengine
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 PKGNAMEPREFIX=	qt5-
 
@@ -86,6 +86,7 @@ USE_QT=		core declarative gui location network printsupport \
 		buildtools:build designer:build qmake:build
 USE_XORG=	x11 xcb xcomposite xcursor xdamage xext xfixes xi xkbfile \
 		xorgproto xrandr xrender xscrnsaver xtst
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QMAKE_CONFIGURE_ARGS=	-proprietary-codecs -system-ffmpeg
 
diff --git a/www/qt5-websockets/Makefile b/www/qt5-websockets/Makefile
index 8021b81ca0d2..4f5f67f93164 100644
--- a/www/qt5-websockets/Makefile
+++ b/www/qt5-websockets/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	websockets
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	www
 PKGNAMEPREFIX=	qt5-
 
@@ -9,5 +10,6 @@ COMMENT=	Qt implementation of WebSocket protocol
 USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,websockets
 USE_PERL5=	extract
 USE_QT=		buildtools:build core network
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/www/qt5-webview/Makefile b/www/qt5-webview/Makefile
index 86e237fd67d2..9d3ac0ff7c7b 100644
--- a/www/qt5-webview/Makefile
+++ b/www/qt5-webview/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	webview
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	www
 PKGNAMEPREFIX=	qt5-
 
@@ -11,6 +12,7 @@ USE_GL=		gl
 USE_PERL5=	build
 USE_QT=		core declarative gui location network webchannel \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.pre.mk>
 
diff --git a/x11-toolkits/qt5-charts/Makefile b/x11-toolkits/qt5-charts/Makefile
index 130b5a11faa0..156d6cf82120 100644
--- a/x11-toolkits/qt5-charts/Makefile
+++ b/x11-toolkits/qt5-charts/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	charts
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -10,5 +11,6 @@ USES=		compiler:c++11-lang perl5 qmake qt-dist:5,charts tar:xz
 USE_PERL5=	build
 USE_QT=		core declarative network gui widgets designer \
 		buildtools:build qmake:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/x11-toolkits/qt5-datavis3d/Makefile b/x11-toolkits/qt5-datavis3d/Makefile
index f2aa821fb0dc..0d8d0fa5a2d4 100644
--- a/x11-toolkits/qt5-datavis3d/Makefile
+++ b/x11-toolkits/qt5-datavis3d/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	datavis3d
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -8,6 +9,7 @@ COMMENT=	Qt 5 3D data visualization module
 
 USE_PERL5=	build
 USE_QT=		core declarative network gui widgets designer buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 USES=		compiler:c++11-lang perl5 qmake qt-dist:5,datavis3d
 
diff --git a/x11-toolkits/qt5-declarative-test/Makefile b/x11-toolkits/qt5-declarative-test/Makefile
index cd19fb851273..3eec0ea9d81c 100644
--- a/x11-toolkits/qt5-declarative-test/Makefile
+++ b/x11-toolkits/qt5-declarative-test/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	declarative-test
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -13,6 +14,7 @@ USE_GL=		gl
 USE_PERL5=	build
 USE_QT=		core declarative gui network sql testlib widgets \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 CONFLICTS=	qt5-declarative-render2d-* qt5-qml qt5-quick
 
diff --git a/x11-toolkits/qt5-declarative/Makefile b/x11-toolkits/qt5-declarative/Makefile
index 275baf21c810..c86556381c4d 100644
--- a/x11-toolkits/qt5-declarative/Makefile
+++ b/x11-toolkits/qt5-declarative/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	declarative
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -13,6 +14,7 @@ USE_GL=		gl
 USE_PERL5=	build
 USE_QT=		core gui network sql widgets \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 CONFLICTS=	qt5-declarative-render2d-* qt5-qml qt5-quick
 
diff --git a/x11-toolkits/qt5-gamepad/Makefile b/x11-toolkits/qt5-gamepad/Makefile
index 7f093a844670..05a30cfb1b43 100644
--- a/x11-toolkits/qt5-gamepad/Makefile
+++ b/x11-toolkits/qt5-gamepad/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gamepad
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -11,5 +12,6 @@ BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
 USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5,gamepad
 USE_PERL5=	build
 USE_QT=		core declarative gui buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>
diff --git a/x11-toolkits/qt5-quick3d/Makefile b/x11-toolkits/qt5-quick3d/Makefile
index 0fc442b51705..e0d742349b52 100644
--- a/x11-toolkits/qt5-quick3d/Makefile
+++ b/x11-toolkits/qt5-quick3d/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	quick3d
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -13,6 +14,7 @@ USES=		compiler:c++11-lang perl5 qmake qt-dist:5
 USE_PERL5=	build
 USE_QT=		core declarative gui network opengl \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 QT_BINARIES=	yes
 
diff --git a/x11-toolkits/qt5-quickcontrols2/Makefile b/x11-toolkits/qt5-quickcontrols2/Makefile
index 8b9f55b246cb..f4307ec04946 100644
--- a/x11-toolkits/qt5-quickcontrols2/Makefile
+++ b/x11-toolkits/qt5-quickcontrols2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	quickcontrols2
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -13,6 +14,7 @@ USES=		compiler:c++11-lang perl5 qmake:norecursive qt-dist:5
 USE_PERL5=	build
 USE_QT=		core declarative gui widgets \
 		buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 QT_DIST=	${PORTNAME}
 
 .include <bsd.port.mk>
diff --git a/x11-toolkits/qt5-virtualkeyboard/Makefile b/x11-toolkits/qt5-virtualkeyboard/Makefile
index b78e20f9e1ad..8eabe54908c9 100644
--- a/x11-toolkits/qt5-virtualkeyboard/Makefile
+++ b/x11-toolkits/qt5-virtualkeyboard/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	virtualkeyboard
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
 
 USES=		compiler:c++11-lang pkgconfig qmake qt-dist:5,virtualkeyboard xorg
 USE_QT=		core declarative network gui widgets svg buildtools:build
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 USE_XORG=	xcb
 
 # Disable the builtin layouts -- otherwise we need to pull in a lot of other
diff --git a/x11-toolkits/qt5-widgets/Makefile b/x11-toolkits/qt5-widgets/Makefile
index a22e410ea354..4b1ab8e817da 100644
--- a/x11-toolkits/qt5-widgets/Makefile
+++ b/x11-toolkits/qt5-widgets/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	widgets
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 PKGNAMEPREFIX=	qt5-
 
@@ -10,6 +11,7 @@ USES=		compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base xorg
 USE_PERL5=	extract
 USE_QT=		core gui qmake:build buildtools:build
 USE_XORG=	x11
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 HAS_CONFIGURE=	yes
 
 BUILD_WRKSRC=	${WRKSRC}/src/${PORTNAME}
diff --git a/x11/qt5-x11extras/Makefile b/x11/qt5-x11extras/Makefile
index 9c2b119b21bf..290f29f00bc1 100644
--- a/x11/qt5-x11extras/Makefile
+++ b/x11/qt5-x11extras/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	x11extras
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	x11
 PKGNAMEPREFIX=	qt5-
 
@@ -10,5 +11,6 @@ USES=		compiler:c++11-lang perl5 qmake qt-dist:5,x11extras perl5
 USE_PERL5=	extract
 USE_QT=		core gui \
 		buildtools:build # syncqt
+USE_LDCONFIG=	${PREFIX}/${QT_LIBDIR_REL}
 
 .include <bsd.port.mk>