2002-05-21 08:36:29 +02:00
|
|
|
# New ports collection makefile for: gdm2
|
|
|
|
# Date created: 20 May 2002
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2000-09-13 17:12:29 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2009-04-24 08:38:26 +02:00
|
|
|
# $MCom: ports-stable/x11/gdm/Makefile,v 1.8 2009/04/15 23:39:01 kwm Exp $
|
2000-09-13 17:12:29 +02:00
|
|
|
#
|
|
|
|
|
2005-01-25 00:26:24 +01:00
|
|
|
PORTNAME= gdm
|
2009-04-24 08:38:26 +02:00
|
|
|
PORTVERSION= 2.26.1
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 6
|
2000-09-13 17:12:29 +02:00
|
|
|
CATEGORIES= x11 gnome
|
2008-03-24 04:52:36 +01:00
|
|
|
MASTER_SITES= GNOME
|
2002-05-21 08:36:29 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-08-01 05:08:52 +02:00
|
|
|
COMMENT= GNOME 2 version of xdm display manager
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2006-05-04 08:02:14 +02:00
|
|
|
BUILD_DEPENDS= zenity:${PORTSDIR}/x11/zenity
|
2009-01-10 06:22:13 +01:00
|
|
|
LIB_DEPENDS= ck-connector.0:${PORTSDIR}/sysutils/consolekit \
|
2009-05-03 08:30:16 +02:00
|
|
|
execinfo:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
hal.1:${PORTSDIR}/sysutils/hal
|
2008-03-24 04:52:36 +01:00
|
|
|
RUN_DEPENDS= zenity:${PORTSDIR}/x11/zenity \
|
2009-06-06 21:12:15 +02:00
|
|
|
${LOCALBASE}/libexec/gnome-settings-daemon:${PORTSDIR}/sysutils/gnome-settings-daemon \
|
|
|
|
gnome-session:${PORTSDIR}/x11/gnome-session
|
2006-05-04 08:02:14 +02:00
|
|
|
|
2002-03-14 01:07:41 +01:00
|
|
|
USE_BZIP2= yes
|
2006-04-30 02:47:21 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-10-14 10:35:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-06-03 06:31:22 +02:00
|
|
|
USE_XORG= dmx dmxproto
|
2006-04-30 02:47:21 +02:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
USE_RC_SUBR= gdm
|
2006-10-31 10:58:24 +01:00
|
|
|
USE_GNOME_SUBR= yes
|
2000-09-13 17:12:29 +02:00
|
|
|
USE_GMAKE= yes
|
2009-01-10 06:22:13 +01:00
|
|
|
USE_GNOME= gnomehack intlhack gnomehier libgnomeui librsvg2 gnomedocutils \
|
|
|
|
gnomeprefix gnomepanel
|
|
|
|
GCONF_SCHEMAS= gdm-simple-greeter.schemas
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-10 06:22:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-working-directory=${PREFIX}/etc/gdm/home
|
2009-05-17 00:15:20 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DHAS_SA_LEN" \
|
2005-08-28 20:56:00 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
GTKDOC="false"
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2008-07-27 22:18:54 +02:00
|
|
|
SUB_FILES+= gdm.pam
|
|
|
|
|
2001-10-02 14:18:33 +02:00
|
|
|
GDMDIR?= ${PREFIX}/etc/gdm
|
2004-04-05 05:11:39 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2001-10-02 14:18:33 +02:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
GNOME_LOCALSTATEDIR= /var
|
|
|
|
|
2009-05-17 00:15:20 +02:00
|
|
|
OPTIONS= IPV6 "Enable IPv6 support" off \
|
2009-01-10 06:22:13 +01:00
|
|
|
KEYRING "Enable GnomeKeyring/PAM integration" on
|
2004-04-11 05:17:14 +02:00
|
|
|
|
2002-09-08 21:25:54 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-07-27 22:18:54 +02:00
|
|
|
.if defined(WITHOUT_KEYRING)
|
|
|
|
SUB_LIST+= PAM_KEYRING=\#
|
2002-09-08 21:25:54 +02:00
|
|
|
.else
|
2008-07-27 22:18:54 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring
|
|
|
|
SUB_LIST+= PAM_KEYRING=
|
2002-09-08 21:25:54 +02:00
|
|
|
.endif
|
|
|
|
|
2009-05-17 00:15:20 +02:00
|
|
|
.if defined(WITH_IPV6)
|
2004-04-11 05:17:14 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2004-06-11 21:53:54 +02:00
|
|
|
post-patch:
|
2006-10-14 10:35:50 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|root:root|root:wheel|g' \
|
2009-01-10 06:22:13 +01:00
|
|
|
${WRKSRC}/data/Makefile.in
|
2009-06-02 00:52:09 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2009-01-10 06:22:13 +01:00
|
|
|
${WRKSRC}/daemon/gdm-session-worker.c \
|
|
|
|
${WRKSRC}/data/gconf.path
|
|
|
|
@${REINPLACE_CMD} -e 's|/bin/true|/usr/bin/true|g' \
|
|
|
|
${WRKSRC}/data/session-setup.entries
|
2007-06-13 18:19:24 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
2009-01-10 06:22:13 +01:00
|
|
|
${WRKSRC}/configure ${WRKSRC}/daemon/*.c ${WRKSRC}/po/*.po
|
2004-06-11 21:53:54 +02:00
|
|
|
|
2002-01-14 18:37:30 +01:00
|
|
|
post-install:
|
2009-01-10 06:22:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/gconf.path \
|
|
|
|
${PREFIX}/share/gdm/gconf.path
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/session-setup.entries \
|
|
|
|
${PREFIX}/share/gdm/session-setup.entries
|
2003-01-21 17:16:02 +01:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2001-10-02 14:18:33 +02:00
|
|
|
.endif
|
2009-01-10 06:22:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/gdm.conf-custom \
|
2006-04-30 02:47:21 +02:00
|
|
|
${PREFIX}/etc/gdm/custom.conf.default
|
2009-01-10 06:22:13 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/xsessions
|
2008-07-27 22:18:54 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/gdm.pam ${PREFIX}/etc/pam.d/gdm
|
2004-07-29 17:22:10 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/gdm/Sessions
|
2004-04-05 05:11:39 +02:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${PKGDIR}/pkg-message \
|
|
|
|
| /usr/bin/fmt 75 79 > ${PKGMESSAGE}
|
2001-08-16 14:12:16 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2002-09-08 21:25:54 +02:00
|
|
|
.include <bsd.port.post.mk>
|