mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
b1a1d38bf9
From now on, ports that depend on Qt4 will have to set USES= qt:4 USE_QT= foo bar ports depending on Qt5 will use USES= qt:5 USE_QT= foo bar PR: 229225 Exp-run by: antoine Reviewed by: mat Approved by: portmgr (antoine) Differential Revision: →https://reviews.freebsd.org/D15540
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
# Created by: Dima Panov <fluffy@Fluffy.Khv.RU>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= polkit-qt
|
|
DISTVERSIONPREFIX= 1-
|
|
DISTVERSION= 0.112.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= KDE/stable/apps/KDE4.x/admin/
|
|
PKGNAMESUFFIX= ${FLAVOR:C/qt//}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt${FLAVOR:C/qt//} wrapper around Polkit libraries
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit
|
|
|
|
FLAVORS= qt4 qt5
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
USES= cmake:outsource pkgconfig tar:bzip2
|
|
USE_GNOME= glib20
|
|
CMAKE_OFF= BUILD_EXAMPLES \
|
|
BUILD_TEST
|
|
|
|
. if ${FLAVOR} == qt4
|
|
USES+= kde:4 qt:4
|
|
USE_KDE= automoc4
|
|
USE_QT= corelib dbus gui \
|
|
qmake_build moc_build rcc_build uic_build
|
|
CMAKE_ON+= USE_QT4
|
|
CMAKE_OFF+= USE_QT5
|
|
QTVER_SUFFIX= # empty
|
|
. else
|
|
USES+= qt:5
|
|
USE_QT= core dbus gui widgets buildtools_build qmake_build
|
|
CMAKE_ON+= USE_QT5
|
|
CMAKE_OFF+= USE_QT4
|
|
QTVER_SUFFIX= 5
|
|
. endif
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= QTVER_SUFFIX="${QTVER_SUFFIX}"
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|$${LIB_DESTINATION}/pkgconfig|libdata/pkgconfig|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|