openbsd-ports/x11/polkit-qt4/Makefile
ajacoutot ac9d8dd7a4 Anything that uses polkit should really RUN_DEPENDS on consolekit;
otherwise we have no way to know the active session.

discussed/agreed with jasper@
2013-03-30 13:03:45 +00:00

52 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2013/03/30 13:03:45 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= PolicyKit authentication agent for for Qt4
V= 0.103.0
DISTNAME= polkit-qt-1-${V}
PKGNAME= polkit-qt4-${V}
REVISION= 0
SHARED_LIBS += polkit-qt-agent-1 1.0 # 0.99
SHARED_LIBS += polkit-qt-core-1 1.0 # 0.99
SHARED_LIBS += polkit-qt-gui-1 1.0 # 0.99
CATEGORIES= x11 sysutils
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://techbase.kde.org/Polkit-Qt-1
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += m stdc++ QtCore QtDBus QtGui QtXml gio-2.0 glib-2.0
WANTLIB += gobject-2.0 gthread-2.0 polkit-agent-1 polkit-gobject-1
MASTER_SITES= ${MASTER_SITE_KDE:=stable/apps/KDE4.x/admin/}
MODULES= devel/gettext \
devel/cmake \
x11/qt4
BUILD_DEPENDS= devel/automoc
LIB_DEPENDS= sysutils/polkit
# polkit(8) almost always needs to know the "active" session
RUN_DEPENDS += sysutils/consolekit
CONFIGURE_ARGS= -DCMAKE_REQUIRED_FLAGS:STRING="-L${LOCALBASE}/lib" \
-DCMAKE_INCLUDE_PATH:STRING="${LOCALBASE}/include" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="-L${LOCALBASE}/lib" \
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-L${LOCALBASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/PolkitQt-1Config.cmake.in
.include <bsd.port.mk>