Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/consolekit2/Makefile
# Created by: FreeBSD GNOME Team <gnome@freebsd.org> | # Created by: FreeBSD GNOME Team <gnome@freebsd.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= consolekit | PORTNAME= consolekit | ||||
PORTVERSION= 1.2.1 | PORTVERSION= 1.2.1 | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= sysutils gnome | CATEGORIES= sysutils gnome | ||||
MASTER_SITES= https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${PORTVERSION}/ | MASTER_SITES= https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${PORTVERSION}/ | ||||
PKGNAMESUFFIX= 2 | PKGNAMESUFFIX= 2 | ||||
DISTNAME= ConsoleKit2-${PORTVERSION} | DISTNAME= ConsoleKit2-${PORTVERSION} | ||||
MAINTAINER= desktop@FreeBSD.org | MAINTAINER= desktop@FreeBSD.org | ||||
# Support for DRM/evdev | |||||
PATCH_SITES= https://github.com/myfreeweb/ConsoleKit2/commit/ | |||||
PATCHFILES= 03eaa9779f2c9c7b0acf0521a5547036bdec2245.patch:-p1 \ | |||||
05f26e99539e7a442e57035ed6d64fdd9a50feb9.patch:-p1 \ | |||||
ea4a569100dfa44a0c9d42b1cf7381fd8f88c837.patch:-p1 \ | |||||
18a058576d118dec428d81c7e2e3369d9ec939d0.patch:-p1 \ | |||||
42b8c93b2b7c2a57a74580531c73ab736e95336a.patch:-p1 | |||||
MAINTAINER= gnome@FreeBSD.org | |||||
COMMENT= Framework for defining and tracking users | COMMENT= Framework for defining and tracking users | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libdbus-1.so:devel/dbus | LIB_DEPENDS= libdbus-1.so:devel/dbus \ | ||||
libdrm.so:graphics/libdrm \ | |||||
libevdev.so:devel/libevdev \ | |||||
libudev.so:devel/libudev-devd | |||||
OPTIONS_DEFINE= POLKIT | OPTIONS_DEFINE= POLKIT X11 | ||||
OPTIONS_DEFAULT=POLKIT | OPTIONS_DEFAULT=POLKIT X11 | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
POLKIT_DESC= Build with Polkit support | POLKIT_DESC= Build with Polkit support | ||||
POLKIT_LIB_DEPENDS= libpolkit-gobject-1.so:sysutils/polkit | POLKIT_LIB_DEPENDS= libpolkit-gobject-1.so:sysutils/polkit | ||||
POLKIT_CONFIGURE_ENABLE= polkit | POLKIT_CONFIGURE_ENABLE= polkit | ||||
X11_USES= xorg | |||||
X11_USE= XORG=x11 | |||||
WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION} | WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION} | ||||
USES= gettext gmake gnome libtool localbase pathfix pkgconfig \ | USES= autoreconf gettext gmake gnome libtool localbase pathfix pkgconfig \ | ||||
tar:bzip2 xorg | tar:bzip2 | ||||
USE_CSTD= gnu99 | USE_CSTD= gnu99 | ||||
USE_XORG= x11 | |||||
USE_GNOME= glib20 libxslt introspection:build | USE_GNOME= glib20 libxslt introspection:build | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \ | CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \ | ||||
--enable-pam-module \ | --enable-pam-module \ | ||||
--with-pam-module-dir=${PREFIX}/lib \ | --with-pam-module-dir=${PREFIX}/lib \ | ||||
--localstatedir=/var \ | --localstatedir=/var \ | ||||
--enable-introspection \ | --enable-introspection \ | ||||
--enable-libdrm \ | |||||
--enable-libevdev \ | |||||
--enable-libudev \ | |||||
--without-html-dir \ | --without-html-dir \ | ||||
--disable-udev-acl \ | --disable-udev-acl \ | ||||
--disable-libcgmanager \ | --disable-libcgmanager \ | ||||
--disable-libdrm \ | |||||
--disable-libevdev \ | |||||
--disable-libudev \ | |||||
--without-systemdsystemunitdir | --without-systemdsystemunitdir | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
post-install: | post-install: | ||||
.for script in ck-system-hibernate ck-system-hybridsleep \ | .for script in ck-system-hibernate ck-system-hybridsleep \ | ||||
ck-system-restart ck-system-stop ck-system-suspend | ck-system-restart ck-system-stop ck-system-suspend | ||||
cd ${STAGEDIR}${PREFIX}/lib/ConsoleKit/scripts && \ | cd ${STAGEDIR}${PREFIX}/lib/ConsoleKit/scripts && \ | ||||
${MV} ${script} ${script}.sample | ${MV} ${script} ${script}.sample | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |