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$
|
|
|
|
#
|
|
|
|
|
2002-05-21 08:36:29 +02:00
|
|
|
PORTNAME= gdm2
|
2002-11-20 23:46:04 +01:00
|
|
|
PORTVERSION= 2.4.0.12
|
2000-09-13 17:12:29 +02:00
|
|
|
CATEGORIES= x11 gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2002-09-20 19:07:51 +02:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.4
|
2002-05-21 20:14:44 +02:00
|
|
|
DISTNAME= gdm-${PORTVERSION}
|
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
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2002-05-21 08:36:29 +02:00
|
|
|
LIB_DEPENDS= gnomeui-2.0:${PORTSDIR}/x11-toolkits/libgnomeui \
|
2002-09-08 21:25:54 +02:00
|
|
|
rsvg-2.2:${PORTSDIR}/graphics/librsvg2
|
2002-05-21 08:36:29 +02:00
|
|
|
|
2002-03-14 01:07:41 +01:00
|
|
|
USE_BZIP2= yes
|
2000-09-13 17:12:29 +02:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2002-07-31 05:14:55 +02:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= gnomeprefix gnomehack gnomehier
|
2002-05-21 08:36:29 +02:00
|
|
|
USE_LIBTOOL= yes
|
2002-07-10 07:47:02 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-05-21 08:36:29 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
2000-09-13 17:12:29 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2001-11-26 17:22:25 +01:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2000-09-13 17:12:29 +02:00
|
|
|
|
2001-10-02 14:18:33 +02:00
|
|
|
GDMDIR?= ${PREFIX}/etc/gdm
|
|
|
|
|
2002-09-08 21:25:54 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(/usr/include/security/pam_misc.h)
|
|
|
|
PLIST_SUB= PAM_MISC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= PAM_MISC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-09-13 18:36:15 +02:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
2002-03-06 11:03:46 +01:00
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
pre-fetch:
|
2000-10-08 11:23:53 +02:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-09-13 18:36:15 +02:00
|
|
|
.endif
|
|
|
|
|
2002-08-10 00:13:43 +02:00
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" \
|
|
|
|
${FILESDIR}/gdm.sh.sample > ${WRKSRC}/gdm.sh.sample
|
|
|
|
|
2002-07-31 05:14:55 +02:00
|
|
|
post-patch:
|
2002-07-10 07:47:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-09-13 17:12:29 +02:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
|
|
|
2002-01-14 18:37:30 +01:00
|
|
|
post-install:
|
2001-10-02 14:18:33 +02:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
2002-01-14 18:37:30 +01:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2001-10-02 14:18:33 +02:00
|
|
|
.endif
|
2002-08-10 00:13:43 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/gdm.sh.sample ${PREFIX}/etc/rc.d
|
2002-01-24 20:47:15 +01:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
2002-01-23 17:24:11 +01:00
|
|
|
@${CHOWN} -R gdm:gdm ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm
|
2002-01-24 20:47:15 +01:00
|
|
|
.else
|
2002-08-10 00:13:43 +02:00
|
|
|
@${CHOWN} -R 92:92 ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm
|
2002-01-24 20:47:15 +01:00
|
|
|
.endif
|
2002-01-14 19:07:43 +01:00
|
|
|
@${CHMOD} 0750 ${PREFIX}/share/gnome/gdm
|
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>
|