freebsd-ports/x11/xorg-clients/Makefile
Dejan Lesjak 2098e5e621 Since fontconfig by default generates font cache files in directories where
this port installs charmaps, try to remove them upon uninstallation, so
removing of directories has a chance to succeed. Just in case some user
has for some reason put fonts under these directories, be nice and try to
regenerate cache file and remove it again only if it is empty.

Pointed out by:	pointyhat via kris
Approved by:	portmgr (kris)
2006-03-01 13:36:46 +00:00

100 lines
3.1 KiB
Makefile

# New ports collection makefile for: xorg-clients
# Date created: 30 May 2004
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xorg-clients
PORTVERSION= 6.9.0
PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src
DISTFILES= X11R${PORTVERSION}-src1.tar.gz \
X11R${PORTVERSION}-src2.tar.gz \
X11R${PORTVERSION}-src3.tar.gz
MAINTAINER= x11@FreeBSD.org
COMMENT= X client programs and related files from X.Org
RUN_DEPENDS= xterm>0:${PORTSDIR}/x11/xterm
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
Xft.2:${PORTSDIR}/x11-fonts/libXft
CONFLICTS= XFree86-clients-*
EXTRA_PATCHES= ${CF_PATCHES}
XINCLUDE_DIRS= lib/xtrans
XBUILD_DIRS= programs fonts/util
XMAN_DIRS= programs
USE_XLIB= yes
XDMCONFDATA= Xaccess Xresources Xservers xdm-config
XDMCONFSCRIPTS= GiveConsole TakeConsole Xsession Xsetup_0 Xwilling
.if !defined(WITH_SETUID_LUIT)
pre-everything::
@${ECHO_MSG} "If you want to use xterm with locales in a secure manner, luit must be"
@${ECHO_MSG} "installed setuid. If you want to do this, define WITH_SETUID_LUIT when"
@${ECHO_MSG} "installing this port (either in /etc/make.conf or on command line with"
@${ECHO_MSG} "install target)."
.endif
post-install:
if [ ! -e ${X11BASE}/bin/resize ]; then \
${LN} -sf ${X11BASE}/bin/resize-static ${X11BASE}/bin/resize; \
fi
if [ ! -e ${X11BASE}/bin/xterm ]; then \
${LN} -sf ${X11BASE}/bin/xterm-static ${X11BASE}/bin/xterm; \
fi
if [ ! -e ${X11BASE}/bin/uxterm ]; then \
${LN} -sf ${X11BASE}/bin/uxterm-static ${X11BASE}/bin/uxterm; \
fi
if [ ! -e ${X11BASE}/lib/X11/app-defaults/UXTerm ]; then \
${LN} -sf ${X11BASE}/lib/X11/app-defaults/UXTerm-static \
${X11BASE}/lib/X11/app-defaults/UXTerm; \
fi
if [ ! -e ${X11BASE}/lib/X11/app-defaults/XTerm ]; then \
${LN} -sf ${X11BASE}/lib/X11/app-defaults/XTerm-static \
${X11BASE}/lib/X11/app-defaults/XTerm; \
fi
if [ ! -e ${X11BASE}/lib/X11/app-defaults/XTerm-color ]; then \
${LN} -sf ${X11BASE}/lib/X11/app-defaults/XTerm-color-static \
${X11BASE}/lib/X11/app-defaults/XTerm-color; \
fi
.if defined(WITH_SETUID_LUIT)
${CHOWN} root:wheel ${PREFIX}/bin/luit
${CHMOD} 04711 ${PREFIX}/bin/luit
.endif
${MKDIR} ${PREFIX}/lib/X11/xinit
${INSTALL_DATA} ${WRKSRC}/programs/xinit/xinitrc \
${PREFIX}/lib/X11/xinit/xinitrc.default
.for i in ${XDMCONFDATA}
${INSTALL_DATA} ${WRKSRC}/programs/xdm/config/${i} \
${PREFIX}/lib/X11/xdm/${i}.default
.endfor
.for i in ${XDMCONFSCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/programs/xdm/config/${i} \
${PREFIX}/lib/X11/xdm/${i}.default
.endfor
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include "${.CURDIR}/../../x11-servers/xorg-server/Makefile.inc"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502123
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-4x
.endif
.if ${X_WINDOW_SYSTEM:L} != xorg
IGNORE= is part of X.Org and you have ${X_WINDOW_SYSTEM} set for X11\
distribution. See The X Window System and Virtual Consoles chapter\
of FAQ for more information
.endif
.include "${FILESDIR}/manpages"
.include <bsd.port.post.mk>