2013-09-21 01:05:58 +02:00
|
|
|
# Created by: Dima Panov <fluffy@Fluffy.Khv.RU>
|
2010-05-11 14:46:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= polkit-qt
|
2010-08-03 20:03:11 +02:00
|
|
|
DISTVERSIONPREFIX= 1-
|
2018-04-14 15:30:12 +02:00
|
|
|
DISTVERSION= 0.112.0
|
2019-01-16 12:13:44 +01:00
|
|
|
PORTREVISION= 5
|
2010-05-11 14:46:44 +02:00
|
|
|
CATEGORIES= sysutils
|
2014-02-20 14:00:31 +01:00
|
|
|
MASTER_SITES= KDE/stable/apps/KDE4.x/admin/
|
2018-04-14 15:30:12 +02:00
|
|
|
PKGNAMESUFFIX= ${FLAVOR:C/qt//}
|
2010-05-11 14:46:44 +02:00
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2018-04-14 15:30:12 +02:00
|
|
|
COMMENT= Qt${FLAVOR:C/qt//} wrapper around Polkit libraries
|
2010-05-11 14:46:44 +02:00
|
|
|
|
2011-03-25 11:22:45 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit
|
2010-05-11 14:46:44 +02:00
|
|
|
|
2018-12-02 16:41:47 +01:00
|
|
|
FLAVORS= qt5 qt4
|
2018-04-14 15:30:12 +02:00
|
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
|
2018-12-25 21:25:39 +01:00
|
|
|
USES= cmake gnome pkgconfig tar:bzip2
|
2016-10-05 11:59:12 +02:00
|
|
|
USE_GNOME= glib20
|
2018-04-14 15:30:12 +02:00
|
|
|
CMAKE_OFF= BUILD_EXAMPLES \
|
|
|
|
BUILD_TEST
|
2014-12-26 22:02:21 +01:00
|
|
|
|
2018-04-14 15:30:12 +02:00
|
|
|
. if ${FLAVOR} == qt4
|
2018-12-16 17:49:17 +01:00
|
|
|
DEPRECATED= Qt4 has been EOL since december 2015
|
|
|
|
EXPIRATION_DATE=2019-03-15
|
2019-01-01 13:50:05 +01:00
|
|
|
USES+= qt:4
|
2018-06-28 19:39:53 +02:00
|
|
|
USE_QT= corelib dbus gui \
|
2010-05-11 14:46:44 +02:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2018-04-14 15:30:12 +02:00
|
|
|
CMAKE_ON+= USE_QT4
|
|
|
|
CMAKE_OFF+= USE_QT5
|
|
|
|
QTVER_SUFFIX= # empty
|
|
|
|
. else
|
2018-10-23 20:25:17 +02:00
|
|
|
USES+= compiler:c++11-lang qt:5
|
2018-06-28 19:39:53 +02:00
|
|
|
USE_QT= core dbus gui widgets buildtools_build qmake_build
|
2018-04-14 15:30:12 +02:00
|
|
|
CMAKE_ON+= USE_QT5
|
|
|
|
CMAKE_OFF+= USE_QT4
|
|
|
|
QTVER_SUFFIX= 5
|
|
|
|
. endif
|
2016-10-05 11:59:12 +02:00
|
|
|
|
2014-12-26 22:02:21 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2018-04-14 15:30:12 +02:00
|
|
|
PLIST_SUB= QTVER_SUFFIX="${QTVER_SUFFIX}"
|
2016-10-05 11:59:12 +02:00
|
|
|
|
2014-12-26 22:02:21 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|$${LIB_DESTINATION}/pkgconfig|libdata/pkgconfig|' \
|
2010-05-11 14:46:44 +02:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|