openbsd-ports/x11/gnome/gdm/Makefile
espie 3caabf1c38 fix sqlports
do not commit linked parts of the tree that reference stuff that's not
there !
2012-09-10 23:03:24 +00:00

122 lines
3.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.124 2012/09/10 23:03:24 espie Exp $
BROKEN= needs PAM(7)
SHARED_ONLY= Yes
COMMENT= GNOME display manager
GNOME_PROJECT= gdm
GNOME_VERSION= 3.4.1
HOMEPAGE= http://projects.gnome.org/gdm/
SHARED_LIBS += gdmgreeter 0.0 # 1.0
SHARED_LIBS += gdmsimplegreeter 0.0 # 1.0
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm accountsservice
WANTLIB += atk-1.0 c cairo cairo-gobject canberra canberra-gtk3
WANTLIB += dbus-1 dbus-glib-1 drm execinfo expat ffi fontconfig
WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gthread-2.0 gtk-3 ltdl m nspr4 nss3 nssutil3
WANTLIB += ogg pam pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
WANTLIB += pixman-1 plc4 plds4 png pthread pthread-stubs smime3
WANTLIB += softokn3 sqlite3 ssl3 stdc++ upower-glib util vorbis
WANTLIB += vorbisfile wrap xcb xcb-render xcb-shm xkbfile xklavier
WANTLIB += xml2 z
BUILD_DEPENDS= x11/gnome/zenity
#XXX
#RUN_DEPENDS= audio/sox \
# x11/hicolor-icon-theme \
# x11/gnome/zenity \
# sysutils/consolekit
LIB_DEPENDS= audio/libcanberra,-gtk3 \
devel/libexecinfo \
security/nss \
sysutils/accountsservice \
sysutils/upower \
x11/gnome/libxklavier
# XXX
# security/pam
MODULES= devel/gettext \
x11/gnome \
devel/dconf
MODGNOME_TOOLS= yelp
MODGNOME_ICON_CACHE= Yes
MODGNOME_CPPFLAGS= -I${X11BASE}/include -DHAS_SA_LEN
MODGNOME_LDFLAGS= -L${X11BASE}/lib
CONFIGURE_ARGS= --mandir=${PREFIX}/man \
--with-at-spi-registryd-directory=${LOCALBASE}/libexec \
--with-custom-conf=${SYSCONFDIR}/X11/gdm/custom.conf \
--with-dbus-sys=${SYSCONFDIR}/dbus-1/system.d \
--with-log-dir=/var/log/gdm \
--with-working-directory=/var/db/gdm \
--with-xevie=no \
--with-sysconfsubdir=X11/gdm \
--with-pid-file=/var/run/gdm.pid \
--with-dmconfdir="${LOCALBASE}/share/xsessions" \
--with-screenshot-dir=/var/run/gdm/greeter \
--with-incomplete-locales \
--with-user=_gdm \
--with-group=_gdm \
--with-tcp-wrappers \
--with-x \
--with-xinerama \
--with-xdmcp \
--with-console-kit \
--with-xauth-dir=/var/run/gdm \
--with-screenshot-dir=/var/run/gdm/greeter \
--without-systemd \
--enable-authentication-scheme=crypt \
--disable-console-helper
# --with-lang-file=${SYSCONFDIR}/sysconfig/i18n
# XXX --enable-authentication-scheme=bsdauth
# XXX IPv6-only FLAVOR?
CONFIGURE_ARGS+= --disable-ipv6
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile.in \
${WRKSRC}/data/{Init.in,PreSession.in,Xsession.in,gdm.schemas}
perl -pi -e 's,root:root,root:wheel,g;' \
-e 's,root:gdm,root:676,g;' \
-e 's,gdm:gdm,676:676,g' ${WRKSRC}/data/Makefile.in
perl -pi -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/daemon/gdm-session-worker.c
perl -pi -e 's,/bin/true,/usr/bin/true,g' \
${WRKSRC}/data/applications/mime-dummy-handler.desktop \
${WRKSRC}/configure \
${WRKSRC}/data/00-upstream-settings \
${WRKSRC}/data/session-setup.entries
.for i in gdm-simple-greeter gnome-session-check-accelerated gnome-settings-daemon
perl -pi -e 's,/usr/libexec,${PREFIX},g' \
${WRKSRC}/data/applications/gdm-simple-greeter.desktop.in
.endfor
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gdm/db
mv ${WRKINST}/etc/dbus-1 ${PREFIX}/share/examples/gdm
mv ${WRKINST}/etc/X11/ ${PREFIX}/share/examples/gdm/
mv ${WRKINST}/etc/dconf ${PREFIX}/share/examples/gdm/
mv ${WRKINST}/var/db/gdm ${PREFIX}/share/examples/gdm/db
# XXX
rm -rf ${WRKINST}/etc/pam.d ${WRKINST}/var/run/gdm
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/gdm/*
.include <bsd.port.mk>