2011-06-01 07:29:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2011/06/01 11:29:53 ajacoutot Exp $
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2010-06-28 11:55:21 -04:00
|
|
|
COMMENT= framework for defining and tracking users
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2011-05-14 08:13:13 -04:00
|
|
|
DISTNAME= ConsoleKit-0.4.5
|
2010-06-27 18:15:38 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}
|
2011-06-01 07:29:53 -04:00
|
|
|
REVISION= 1
|
2009-10-16 05:36:56 -04:00
|
|
|
|
2009-06-06 22:55:19 -04:00
|
|
|
CATEGORIES= sysutils
|
2009-10-16 05:36:56 -04:00
|
|
|
|
2009-06-06 22:55:19 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2011-04-28 09:08:33 -04:00
|
|
|
SHARED_LIBS+= ck-connector 1.0
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2010-06-27 18:15:38 -04:00
|
|
|
HOMEPAGE= http://www.freedesktop.org/wiki/Software/ConsoleKit
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2009-10-16 05:36:56 -04:00
|
|
|
MANTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2009-06-06 22:55:19 -04:00
|
|
|
# GPLv2+
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2011-04-28 09:08:33 -04:00
|
|
|
WANTLIB += X11 Xau Xdmcp c dbus-1 dbus-glib-1 gio-2.0
|
2010-06-27 18:15:38 -04:00
|
|
|
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 kvm pcre
|
2010-08-01 11:31:57 -04:00
|
|
|
WANTLIB += pthread pthread-stubs xcb z polkit-gobject-1
|
2009-10-16 05:36:56 -04:00
|
|
|
|
2010-06-27 18:15:38 -04:00
|
|
|
MASTER_SITES= http://www.freedesktop.org/software/ConsoleKit/dist/
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2009-06-07 03:49:44 -04:00
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2011-04-28 09:08:33 -04:00
|
|
|
LIB_DEPENDS= sysutils/polkit>=0.101 \
|
|
|
|
x11/dbus-glib
|
2009-11-13 09:52:33 -05:00
|
|
|
|
2011-05-14 08:13:13 -04:00
|
|
|
AUTOCONF_VERSION= 2.68
|
2009-10-16 05:36:56 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-04-28 09:08:33 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2009-10-16 05:36:56 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--localstatedir=/var \
|
2011-04-28 09:08:33 -04:00
|
|
|
--disable-silent-rules \
|
2010-06-27 18:15:38 -04:00
|
|
|
--with-pid-file=/var/run/ConsoleKit/pid \
|
|
|
|
--enable-pam-module=no
|
2009-06-06 22:55:19 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2009-06-07 03:49:44 -04:00
|
|
|
FAKE_FLAGS= DBUS_SYS_DIR=${TRUEPREFIX}/share/examples/consolekit/dbus-1 \
|
|
|
|
sysconfdir=${TRUEPREFIX}/share/examples/consolekit
|
2009-06-06 22:55:19 -04:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@cd ${WRKSRC}/tools && \
|
2009-06-07 03:49:44 -04:00
|
|
|
cp -R freebsd openbsd && \
|
|
|
|
perl -pi -e "s,freebsd,openbsd,g" openbsd/Makefile.in
|
2009-06-06 22:55:19 -04:00
|
|
|
|
2011-04-28 09:08:33 -04:00
|
|
|
# from Slackware Linux
|
2009-11-13 09:52:33 -05:00
|
|
|
post-install:
|
2010-06-27 18:15:38 -04:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/pam-foreground-compat.ck \
|
|
|
|
${PREFIX}/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck
|
2009-11-13 09:52:33 -05:00
|
|
|
|
2009-06-06 22:55:19 -04:00
|
|
|
.include <bsd.port.mk>
|