2007-05-19 20:36:56 +00:00
|
|
|
# New ports collection makefile for: xdm
|
|
|
|
# Date Created: 17 Feb 2006
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xdm
|
2011-11-29 03:02:44 +00:00
|
|
|
PORTVERSION= 1.1.11
|
2007-05-19 20:36:56 +00:00
|
|
|
CATEGORIES= x11
|
|
|
|
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
|
|
COMMENT= X.Org X display manager
|
|
|
|
|
2011-09-22 13:51:54 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2007-05-19 20:36:56 +00:00
|
|
|
XORG_CAT= app
|
|
|
|
USE_XORG= xmu x11 xau xinerama xpm xdmcp xt xext xaw
|
2007-09-13 19:45:08 +00:00
|
|
|
CONFIGURE_ARGS+= --with-xdmconfigdir=${EXAMPLESDIR} \
|
|
|
|
--with-xdmscriptdir=${EXAMPLESDIR}
|
2007-05-19 20:36:56 +00:00
|
|
|
|
|
|
|
MAN1= xdm.1
|
|
|
|
|
2007-07-02 17:35:13 +00:00
|
|
|
CFFILES= GiveConsole TakeConsole Xaccess Xreset Xresources \
|
|
|
|
Xservers Xsession Xsetup_0 Xstartup Xwilling xdm-config
|
|
|
|
|
2011-11-29 03:02:44 +00:00
|
|
|
OPTIONS= XDMSHELL "Install xdmshell" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_XDMSHELL)
|
|
|
|
CONFIGURE_ARGS+=--enable-xdmshell
|
|
|
|
MAN1+= xdmshell.1
|
|
|
|
PLIST_SUB+= XDMSHELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xdmshell
|
|
|
|
PLIST_SUB+= XDMSHELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-09 19:26:51 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|XDMCONFIGDIR/|${PREFIX}/lib/X11/xdm/|" \
|
|
|
|
-e "s|XDMSCRIPTDIR/|${PREFIX}/lib/X11/xdm/|" \
|
2008-01-02 14:16:54 +00:00
|
|
|
${WRKSRC}/config/xdm-config.cpp \
|
|
|
|
${WRKSRC}/config/Xstartup.cpp \
|
|
|
|
${WRKSRC}/config/Xreset.cpp
|
2009-01-23 16:28:36 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|@DESTDIR@||" ${WRKSRC}/Makefile.in
|
2007-10-09 19:26:51 +00:00
|
|
|
|
2007-10-29 15:04:44 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e "s|${EXAMPLESDIR}|${PREFIX}/lib/X11/xdm|" \
|
2008-01-02 14:16:54 +00:00
|
|
|
${WRKSRC}/config.h
|
2007-10-29 15:04:44 +00:00
|
|
|
|
2007-07-02 17:35:13 +00:00
|
|
|
post-install:
|
|
|
|
.for f in ${CFFILES}
|
|
|
|
${CP} -n ${EXAMPLESDIR}/$f ${PREFIX}/lib/X11/xdm/$f
|
|
|
|
.endfor
|
2011-02-25 16:52:50 +00:00
|
|
|
${MKDIR} /var/lib/xdm/authdir
|
|
|
|
${LN} -sf /var/lib/xdm/authdir ${PREFIX}/lib/X11/xdm/authdir
|
2007-07-02 17:35:13 +00:00
|
|
|
|
2007-05-19 20:36:56 +00:00
|
|
|
.include <bsd.port.mk>
|