2011-08-17 12:59:47 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2011/08/17 16:59:47 ajacoutot Exp $
|
2010-07-05 06:51:16 -04:00
|
|
|
|
|
|
|
COMMENT= PolicyKit integration for GNOME/GTK+2
|
|
|
|
|
2011-08-17 12:59:47 -04:00
|
|
|
DISTNAME= polkit-gnome-0.102
|
2010-07-05 06:51:16 -04:00
|
|
|
|
|
|
|
CATEGORIES= x11 sysutils
|
|
|
|
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2011-04-28 09:09:59 -04:00
|
|
|
SHARED_LIBS += polkit-gtk-1 1.0 # 0.0
|
2010-07-05 06:51:16 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://hal.freedesktop.org/docs/PolicyKit-gnome/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# LGPLv2+
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-08-17 12:59:47 -04:00
|
|
|
WANTLIB += GL X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
|
|
|
|
WANTLIB += Xrandr Xrender atk-1.0 c cairo expat fontconfig freetype
|
|
|
|
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB += gthread-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
|
|
WANTLIB += pcre pixman-1 png polkit-agent-1 polkit-gobject-1 pthread
|
|
|
|
WANTLIB += pthread-stubs xcb xcb-render xcb-shm z
|
2010-07-05 06:51:16 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://hal.freedesktop.org/releases/
|
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
|
|
|
|
2011-04-07 09:40:04 -04:00
|
|
|
BUILD_DEPENDS= devel/gobject-introspection
|
|
|
|
|
2011-08-17 12:59:47 -04:00
|
|
|
LIB_DEPENDS= sysutils/polkit>=0.102
|
2010-07-05 06:51:16 -04:00
|
|
|
|
2011-04-07 09:40:04 -04:00
|
|
|
# XXX: the libtool wrapper script is passed as argument to g-ir-scanner,
|
|
|
|
# instead of the actual library
|
|
|
|
USE_LIBTOOL= gnu
|
|
|
|
|
2010-07-05 06:51:16 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--localstatedir=/var \
|
2011-04-07 09:40:04 -04:00
|
|
|
--enable-introspection \
|
2011-06-02 13:09:31 -04:00
|
|
|
--disable-gtk-doc
|
2011-05-17 11:02:46 -04:00
|
|
|
|
|
|
|
FLAVORS= gtk2
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgtk2}
|
|
|
|
CONFIGURE_ARGS+=--with-gtk=2.0
|
|
|
|
LIB_DEPENDS+= x11/gtk+2
|
|
|
|
WANTLIB += gdk-x11-2.0 gtk-x11-2.0
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-gtk=3.0
|
|
|
|
LIB_DEPENDS+= x11/gtk+3
|
|
|
|
WANTLIB += cairo-gobject gdk-3 gtk-3
|
|
|
|
.endif
|
2011-04-28 09:09:59 -04:00
|
|
|
|
|
|
|
# revert the following commit:
|
2011-05-19 13:55:45 -04:00
|
|
|
# ----------------------------------------------------------------------
|
2011-04-28 09:09:59 -04:00
|
|
|
# From 47ca445decf21b8de13d804b870d6ce171bad306 Mon Sep 17 00:00:00 2001
|
|
|
|
# From: David Zeuthen <davidz@redhat.com>
|
|
|
|
# Date: Mon, 21 Feb 2011 21:44:43 +0000
|
|
|
|
# Subject: Nuke desktop file for autostart
|
|
|
|
# It is much easier if the desktops (and power users) using this
|
|
|
|
# authentication agent just loads it themselves (via e.g. XDG autostart
|
|
|
|
# or whatever).
|
2011-05-19 13:55:45 -04:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# Also add an autostart condition: gnome-shell comes with its own
|
|
|
|
# implementation of a policy kit agent, however the fallback session
|
|
|
|
# does not and needs polkit-gnome-authentication-agent to be started.
|
2011-04-28 09:09:59 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/polkit-gnome/xdg/autostart
|
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} \
|
|
|
|
-c ${FILESDIR}/polkit-gnome-authentication-agent-1.desktop \
|
|
|
|
${PREFIX}/share/examples/polkit-gnome/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
2011-05-19 13:55:45 -04:00
|
|
|
.if ! ${FLAVOR:L:Mgtk2}
|
|
|
|
echo 'AutostartCondition=GNOME3 if-session gnome-fallback' >> \
|
|
|
|
${PREFIX}/share/examples/polkit-gnome/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
|
|
|
.endif
|
2010-07-05 06:51:16 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|