freebsd-ports/x11-fonts/xorg-fonts-miscbitmaps/Makefile
Dejan Lesjak d1c6026404 Take care of font cache files on installation and uninstallation of port:
On installation try running fc-cache for directory where fonts from this
port are installed and don't complain if fc-cache (from fontconfig) is
missing. Do a bit more dancing on uninstall, just in case users have their
own fonts installed in same directory:
- first remove fonts.cache-1 if it is there since it won't be accurate
  after fonts from this port are gone anyway,
- next try to regenerate cache with fc-cache for this directory
- if previous step generates empty cache file, remove it
If directory contained only fonts from this port, it should get properly
removed at the end. If there were other fonts there and fontconfig is
installed, this will leave proper cache file for remaining fonts behind
after uninstall of this port.
2006-02-06 03:38:29 +00:00

40 lines
1.1 KiB
Makefile

# New ports collection makefile for: xorg-fonts-miscbitmaps
# Date created: 30 May 2004
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xorg-fonts-miscbitmaps
PORTVERSION= 6.9.0
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src
DISTNAME= X11R${PORTVERSION}-src1
MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org miscellaneous bitmap fonts
BUILD_DEPENDS= ucs2any:${PORTSDIR}/x11/xorg-clients
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/encodings/encodings.dir:${PORTSDIR}/x11-fonts/xorg-fonts-encodings
CONFLICTS= XFree86-fontDefaultBitmaps-*
EXTRA_PATCHES= ${CF_PATCHES}
XBUILD_DIRS= fonts/encodings fonts/bdf/misc
XINSTALL_DIRS= fonts/bdf/misc
post-install:
@command fc-cache -v ${PREFIX}/lib/X11/fonts/misc
.include "${.CURDIR}/../../x11-servers/xorg-server/Makefile.inc"
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>