openbsd-ports/sysutils/consolekit/Makefile
ajacoutot eb874011f3 Bring in several fixes from FreeBSD and fd.o bugzilla.
Fix tty names, cmd arguments... Install the stop/restart scripts.
Remove policykit support for now.
2009-11-13 14:52:33 +00:00

61 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2009/11/13 14:52:33 ajacoutot Exp $
BROKEN= WIP does not work yet
COMMENT= Framework for defining and tracking users
DISTNAME= ConsoleKit-0.3.0
PKGNAME= ${DISTNAME:L}p3
CATEGORIES= sysutils
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS+= ck-connector 0.0
HOMEPAGE= http://freedesktop.org/wiki/Software/ConsoleKit
MANTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2+
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
WANTLIB += X11 Xau Xdmcp c dbus-1 glib-2.0 gobject-2.0 gthread-2.0
WANTLIB += kvm pcre pthread pthread-stubs xcb z
MASTER_SITES= ftp://ftp.fr.freebsd.org/pub/FreeBSD/distfiles/
MODULES= devel/gettext
LIB_DEPENDS= dbus-glib-1.>=4::x11/dbus-glib
AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--localstatedir=/var \
--with-pid-file=/var/run/consolekit.pid
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
USE_LIBTOOL= Yes
USE_GMAKE= Yes
FAKE_FLAGS= DBUS_SYS_DIR=${TRUEPREFIX}/share/examples/consolekit/dbus-1 \
sysconfdir=${TRUEPREFIX}/share/examples/consolekit
pre-patch:
@cd ${WRKSRC}/tools && \
cp -R freebsd openbsd && \
perl -pi -e "s,freebsd,openbsd,g" openbsd/Makefile.in
# from FreeBSD ports
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-display-device \
${PREFIX}/libexec/ck-get-x11-display-device
${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-server-pid \
${PREFIX}/libexec/ck-get-x11-server-pid
.include <bsd.port.mk>