1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/x11/xdm/Makefile
Bartek Rutkowski 85d75a0df3 x11/xdm: add CPE information
PR:		197971
Submitted by:	Shun <shun.fbsd.pr@dropcut.net>
Approved by:	kwm (blanket)
2015-03-28 17:47:11 +00:00

51 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= xdm
PORTVERSION= 1.1.11
PORTREVISION= 3
CATEGORIES= x11
MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org X display manager
LICENSE= MIT
XORG_CAT= app
USE_XORG= xmu x11 xau xinerama xpm xdmcp xt xext xaw
CONFIGURE_ARGS+= --with-xdmconfigdir=${PREFIX}/lib/X11/xdm \
--with-xdmscriptdir=${PREFIX}/lib/X11/xdm
USES= cpe libtool
CPE_PRODUCT= x_display_manager
CPE_VENDOR= x
CFFILES= GiveConsole TakeConsole Xaccess Xreset Xresources \
Xservers Xsession Xsetup_0 Xstartup Xwilling xdm-config
OPTIONS_SUB= yes
OPTIONS_DEFINE= XDMSHELL
XDMSHELL_DESC= Install xdmshell
XDMSHELL_CONFIGURE_ENABLE= xdmshell
INSTALL_TARGET= install-strip
post-patch:
@${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|XDMCONFIGDIR/|${PREFIX}/lib/X11/xdm/|" \
-e "s|XDMSCRIPTDIR/|${PREFIX}/lib/X11/xdm/|" \
${WRKSRC}/config/xdm-config.cpp \
${WRKSRC}/config/Xstartup.cpp \
${WRKSRC}/config/Xreset.cpp
@${REINPLACE_CMD} -e "s|@DESTDIR@||" ${WRKSRC}/Makefile.in
post-install:
.for f in ${CFFILES}
@${MV} ${STAGEDIR}${PREFIX}/lib/X11/xdm/${f} ${STAGEDIR}${PREFIX}/lib/X11/xdm/${f}.sample
.endfor
@${MKDIR} ${STAGEDIR}/var/lib/xdm/authdir
@${LN} -sf /var/lib/xdm/authdir ${STAGEDIR}${PREFIX}/lib/X11/xdm/authdir
.include <bsd.port.mk>