freebsd-ports/x11/wdm/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

82 lines
2.6 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= wdm
PORTVERSION= 1.28
PORTREVISION= 14
CATEGORIES= x11 windowmaker
MASTER_SITES= http://voins.program.ru/wdm/:wdm \
http://wolfram.schneider.org/bsd/gif/bsd/:pic_large \
${MASTER_SITE_LOCAL:S/$/:pic_small/}
MASTER_SITE_SUBDIR= tg/:pic_small
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:wdm \
beastie.xpm:pic_small \
daemon1-HQ-1280x960.jpg:pic_large
DIST_SUBDIR= wdm
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= xride@FreeBSD.org
COMMENT= WINGs Display Manager; an xdm replacement
LIB_DEPENDS= libWINGs.so:${PORTSDIR}/x11-wm/windowmaker
NOT_FOR_ARCHS= sparc64
OPTIONS_DEFINE= PAM
OPTIONS_DEFAULT= PAM
OPTIONS_SUB= yes
USES= gettext tar:bzip2
USE_XORG= x11 xmu
GNU_CONFIGURE= yes
CONFIGURE_ENV= DEF_SERVER="${DEF_SERVER}" XRDB_PATH="${XRDB_PATH}"
CONFIGURE_ARGS= --with-logdir=/var/log \
--with-runlockdir=/var/run \
--with-wdmdir=${WDMDIR} \
--with-gfxdir=${WDMDIR}/pixmaps \
--with-nlsdir=${PREFIX}/share/locale \
--with-Logo=beastie.xpm \
--with-gfx-incs=${LOCALBASE}/include \
--with-gfx-libs=${LOCALBASE}/lib \
--with-defuserpath=/bin:/usr/bin:/sbin:/usr/sbin:${LOCALBASE}/bin \
--with-defsystempath=/bin:/usr/bin:/sbin:/usr/sbin:${LOCALBASE}/bin \
--with-wmlist=wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm
CPPFLAGS+= -I${LOCALBASE}/include -DCSRG_BASED -DHAS_SETUSERCONTEXT
LIBS+= -L${LOCALBASE}/lib
DEF_SERVER?= ${LOCALBASE}/bin/X
XRDB_PATH?= ${LOCALBASE}/bin/xrdb
WDMDIR= ${PREFIX}/lib/X11/wdm
PAM_CONFIGURE_OFF= --disable-pam
PAM_CONFIGURE_ON= --with-pamdir=${LOCALBASE}/etc/pam.d/
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/KillConsole
@${REINPLACE_CMD} -e \
's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/Xclients.in
@${REINPLACE_CMD} -e \
's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/Xsession.in
@${REINPLACE_CMD} -e \
's|$$(DESTDIR)$$(PAMDIR)/wdm||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-ldl||g ; \
s|/authdir||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@FAILSAFE@|@FAILSAFE_PATH@|g' ${WRKSRC}/configs/Xsession.in
@${REINPLACE_CMD} -e \
's|#configdir#|${WDMDIR}|g' ${WRKSRC}/doc/wdm.man.in
@${REINPLACE_CMD} -e \
's|/etc/X11/wdm|${WDMDIR}|g' ${WRKSRC}/doc/wdmLogin.man
post-install:
@${MV} ${STAGEDIR}${WDMDIR}/wdm-config ${STAGEDIR}${WDMDIR}/wdm-config.sample
@${MV} ${STAGEDIR}${WDMDIR}/Xsetup_0 ${STAGEDIR}${WDMDIR}/Xsetup_0.sample
.for file in beastie.xpm daemon1-HQ-1280x960.jpg
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${STAGEDIR}${WDMDIR}/pixmaps
.endfor
${INSTALL_DATA} ${FILESDIR}/wdm.pam ${STAGEDIR}${LOCALBASE}/etc/pam.d/wdm
.include <bsd.port.mk>