# Created by: Joe Marcus Clarke # $FreeBSD$ # $MCom: ports/sysutils/policykit/Makefile,v 1.22 2008/08/21 21:53:00 mezz Exp $ PORTNAME= policykit PORTVERSION= 0.9 PORTREVISION= 6 CATEGORIES= sysutils gnome MASTER_SITES= http://hal.freedesktop.org/releases/ DISTNAME= PolicyKit-${PORTVERSION} MAINTAINER= gnome@FreeBSD.org COMMENT= Framework for controlling access to system-wide components LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \ expat:${PORTSDIR}/textproc/expat2 USERS= polkit GROUPS= polkit USES= pathfix USE_GNOME= glib20 intlhack USE_GMAKE= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --disable-gtk-doc \ --with-pam-include=system \ --with-os-type=freebsd \ --localstatedir=/var \ --with-polkit-user=polkit \ --with-polkit-group=polkit CONFIGURE_ENV= GTKDOC="false" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT=MANPAGES .include .if ${PORT_OPTIONS:MMANPAGES} BUILD_DEPENDS= ${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410 \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl USE_GNOME+= libxslt:build MAN1= polkit-action.1 polkit-auth.1 polkit-config-file-validate.1 \ polkit-policy-file-validate.1 MAN5= PolicyKit.conf.5 MAN8= PolicyKit.8 .else CONFIGURE_ARGS+=--disable-man-pages .endif post-install: ${MKDIR} ${PREFIX}/etc/PolicyKit if [ ! -f ${PREFIX}/etc/PolicyKit/PolicyKit.conf ]; then \ ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ ${PREFIX}/etc/PolicyKit/PolicyKit.conf ; \ fi ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ ${PREFIX}/etc/PolicyKit/PolicyKit.conf.dist .if !defined(PACKAGE_BUILDING) @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif .include