ports/sysutils/polkit-qt-1/Makefile
Tobias C. Berner 552ed27ec1 sysutils/polkit-qt,sysutils/polkit-qt-1-devel: unify and flavorize
This updates sysutils/polkit-qt to the 0.200 release and removes the
development version port polkit-qt-1-devel. The new version is now
flavorized to support both Qt5 and Qt6.
2024-03-02 00:54:13 +01:00

34 lines
853 B
Makefile

PORTNAME= polkit-qt-1
DISTVERSION= 0.200.0
CATEGORIES= sysutils
MASTER_SITES= KDE/stable/${PORTNAME}/
PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt wrapper around Polkit libraries
WWW= https://projects.kde.org/projects/kdesupport/polkit-qt-1
LICENSE= LGPL21
FLAVORS= qt5 qt6
FLAVOR?= qt5
LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit
USES= cmake compiler:c++11-lang gnome pkgconfig qt:${FLAVOR:C/qt//} \
tar:xz
USE_GNOME= glib20
USE_QT= ${_USE_QT_${FLAVOR}}
CMAKE_OFF= BUILD_EXAMPLES BUILD_TEST
CMAKE_ARGS= -DQT_MAJOR_VERSION=${FLAVOR:C/qt//}
_USE_QT_qt5= core dbus gui widgets buildtools:build qmake:build
_USE_QT_qt6= base
USE_LDCONFIG= yes
PLIST_SUB= QT_VER=${FLAVOR:C/qt//}
post-patch:
${REINPLACE_CMD} -e 's|$${LIB_DESTINATION}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>