openbsd-ports/x11/gnome/gdm/Makefile
ajacoutot 5d26a70b63 Add an rc_check because checking on gdm-binary is not enough: at reboot
or shutdown time, we may be left with a hanging gdm-binary process (that
is because X is killed before the rc script has a chance to run).
2011-05-01 16:23:18 +00:00

83 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.101 2011/05/01 16:23:18 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= GNOME display manager
GNOME_PROJECT= gdm
GNOME_VERSION= 2.20.11
REVISION= 21
HOMEPAGE= http://projects.gnome.org/gdm/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender art_lgpl_2 atk-1.0 c
WANTLIB += cairo croco-0.6 dmx expat fontconfig freetype gailutil
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glade-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
WANTLIB += png pthread pthread-stubs util wrap xcb xcb-render rsvg-2
WANTLIB += xml2 z gnomecanvas-2 GL Xxf86vm drm xcb-shm
BUILD_DEPENDS= x11/gnome/zenity
RUN_DEPENDS= audio/sox \
x11/hicolor-icon-theme \
x11/gnome/zenity \
security/gksu-polkit
LIB_DEPENDS= x11/gnome/librsvg \
x11/gnome/libgnomecanvas
MODULES= devel/gettext \
x11/gnome
# has 2 different libraries with same name
USE_LIBTOOL= gnu
USE_GROFF = Yes
MODGNOME_HELP_FILES= Yes
CONFIGURE_STYLE= gnu old
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--localstatedir=/var \
--mandir=${PREFIX}/man \
--sysconfdir=${SYSCONFDIR} \
--without-xevie \
--without-libaudit \
--with-sysconfsubdir=X11/gdm \
--with-dmconfdir=${LOCALBASE}/share/xsessions \
--with-pid-file=/var/run/gdm.pid \
--with-tcp-wrappers \
--with-xdmcp \
--enable-secureremote \
--disable-console-helper
# XXX --enable-authentication-scheme=bsdauth
# gdm 2.20.X releases only work with old ConsoleKit versions so instead
# we patch Xsession to start ck-launch-session with the session.
RUN_DEPENDS+= sysutils/consolekit
CONFIGURE_ARGS+= --without-console-kit
# -pthread is needed to resolve some undefined symbols
# (pthread_mutex_trylock in libgthread for gdmflexiserver, gdmXnest...)
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
# XXX IPv6-only FLAVOR?
CONFIGURE_ARGS+= --disable-ipv6
FAKE_FLAGS= gdmconfdir=${PREFIX}/share/examples/gdm
pre-configure:
${SUBST_CMD} \
${WRKSRC}/config/{Init.in,PostSession.in,PreSession.in,Xsession.in,XKeepsCrashing} \
${WRKSRC}/gui/gdmsetup.desktop.in.in
.include <bsd.port.mk>