56 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.45 2014/11/27 09:38:22 ajacoutot Exp $
# NOTE: spam in /var/log/authlog is "expected"
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678506
# https://bugzilla.redhat.com/show_bug.cgi?id=810052#c8
# https://bugzilla.redhat.com/show_bug.cgi?id=809213
COMMENT= framework for defining and tracking users
DISTNAME= ConsoleKit-0.4.6
EXTRACT_SUFX= .tar.xz
PKGNAME= ${DISTNAME:L}
REVISION= 11
CATEGORIES= sysutils
SHARED_LIBS += ck-connector 1.0 # 0.0
HOMEPAGE= http://www.freedesktop.org/wiki/Software/ConsoleKit
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += X11 c dbus-1 dbus-glib-1 ffi gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gthread-2.0 kvm pcre polkit-gobject-1 pthread
WANTLIB += xcb z
MASTER_SITES= http://www.freedesktop.org/software/ConsoleKit/dist/
MODULES= devel/gettext
LIB_DEPENDS= sysutils/polkit \
x11/dbus-glib
AUTOCONF_VERSION= 2.69
CONFIGURE_STYLE= autoconf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-pid-file=/var/run/ConsoleKit/pid \
--disable-pam-module
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
.include <bsd.port.mk>