2012-11-22 12:37:35 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.39 2012/11/22 17:37:35 ajacoutot Exp $
|
2010-07-01 03:46:21 -04:00
|
|
|
|
|
|
|
COMMENT= framework for granting privileged operations to users
|
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
DISTNAME= polkit-0.108
|
2012-11-22 12:37:35 -05:00
|
|
|
REVISION= 0
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
SHARED_LIBS += polkit-gobject-1 2.0 # .0.0
|
|
|
|
SHARED_LIBS += polkit-agent-1 2.0 # .0.0
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2011-05-22 09:34:19 -04:00
|
|
|
CATEGORIES= sysutils security
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-09-19 08:39:34 -04:00
|
|
|
HOMEPAGE= http://www.freedesktop.org/wiki/Software/polkit
|
2010-07-01 03:46:21 -04:00
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv2+
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
WANTLIB += c expat gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 pthread
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-09-19 08:39:34 -04:00
|
|
|
MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
MODULES= textproc/intltool \
|
|
|
|
lang/python
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2010-07-08 11:20:45 -04:00
|
|
|
BUILD_DEPENDS= ${MODGNU_AUTOMAKE_DEPENDS} \
|
2011-04-07 07:12:12 -04:00
|
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
2012-11-20 09:11:48 -05:00
|
|
|
devel/gettext \
|
|
|
|
devel/gobject-introspection \
|
|
|
|
devel/spidermonkey
|
2011-04-07 07:12:12 -04:00
|
|
|
|
2011-05-21 01:00:07 -04:00
|
|
|
RUN_DEPENDS= x11/dbus
|
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
# dlopen() libmozjs185.so
|
|
|
|
RUN_DEPENDS += devel/spidermonkey
|
|
|
|
|
2011-11-17 06:42:31 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2011-04-28 09:09:07 -04:00
|
|
|
# needs AM_PROG_LIBTOOL
|
2011-11-17 09:07:14 -05:00
|
|
|
BUILD_DEPENDS+= devel/libtool
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2010-07-08 11:20:45 -04:00
|
|
|
# We do no want to depends on gtk-doc as it creates a dependency loop:
|
|
|
|
# polkit -> gtk-doc -> yelp -> gconf2 -> polkit
|
2012-09-27 13:26:05 -04:00
|
|
|
BUILD_DEPENDS+= textproc/docbook-xsl
|
2010-07-08 11:20:45 -04:00
|
|
|
|
2011-04-28 09:09:07 -04:00
|
|
|
LIB_DEPENDS= devel/glib2
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2011-05-16 13:30:31 -04:00
|
|
|
AUTOCONF_VERSION= 2.68
|
2011-04-28 09:09:07 -04:00
|
|
|
AUTOMAKE_VERSION=1.10
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-09-19 08:39:34 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test/mocklibc
|
|
|
|
|
2010-07-01 03:46:21 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2011-04-28 09:09:07 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2010-07-01 03:46:21 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2011-04-28 09:09:07 -04:00
|
|
|
--disable-gtk-doc \
|
2012-11-20 09:11:48 -05:00
|
|
|
--disable-libsystemd-login \
|
2010-07-01 03:46:21 -04:00
|
|
|
--mandir=${PREFIX}/man \
|
2011-04-28 09:09:07 -04:00
|
|
|
--enable-introspection \
|
2010-07-01 03:46:21 -04:00
|
|
|
--enable-man-pages \
|
|
|
|
--enable-examples \
|
|
|
|
--with-os-type=openbsd \
|
2012-11-20 09:11:48 -05:00
|
|
|
--with-authfw=bsdauth \
|
|
|
|
--with-polkitd-user=_polkitd
|
2010-07-01 03:46:21 -04:00
|
|
|
|
2012-09-21 10:48:05 -04:00
|
|
|
# If one of these tools is found at configure stage, it might be used,
|
|
|
|
# no matter whether we use --disable-gtk-doc or not.
|
|
|
|
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
|
|
|
|
ac_cv_path_GTKDOC_REBASE="" \
|
|
|
|
ac_cv_path_GTKDOC_MKPDF=""
|
|
|
|
|
2012-11-20 09:11:48 -05:00
|
|
|
MODPY_BUILDDEP= No
|
|
|
|
MODPY_RUNDEP= No
|
2010-07-01 03:46:21 -04:00
|
|
|
USE_GMAKE= Yes
|
2011-04-07 07:12:12 -04:00
|
|
|
USE_GROFF= Yes
|
|
|
|
|
2010-07-01 03:46:21 -04:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/polkit
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/docs/man/pkexec.xml \
|
2012-11-20 09:11:48 -05:00
|
|
|
${WRKSRC}/docs/man/polkit.xml \
|
|
|
|
${WRKSRC}/docs/extensiondir.xml \
|
2010-07-01 03:46:21 -04:00
|
|
|
${WRKSRC}/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in
|
2011-04-28 09:09:07 -04:00
|
|
|
cd ${WRKSRC} && \
|
2010-07-01 03:46:21 -04:00
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
2011-04-28 09:09:07 -04:00
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
${LOCALBASE}/bin/autoreconf
|
2010-07-01 03:46:21 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|