aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/tv-fonts
diff options
context:
space:
mode:
authorDejan Lesjak <lesi@FreeBSD.org>2005-03-17 23:22:13 +0000
committerDejan Lesjak <lesi@FreeBSD.org>2005-03-17 23:22:13 +0000
commitac39221672c3c391a6c127d2fcc67a1fe3d4512e (patch)
treede7ec01912bcb217296d86bd4fad9fd5b211f0cf /x11-fonts/tv-fonts
parent7534bc4462725b61b62a62d09f6b0c18686624b9 (diff)
downloadports-ac39221672c3c391a6c127d2fcc67a1fe3d4512e.tar.gz
ports-ac39221672c3c391a6c127d2fcc67a1fe3d4512e.zip
Notes
Diffstat (limited to 'x11-fonts/tv-fonts')
-rw-r--r--x11-fonts/tv-fonts/Makefile10
-rw-r--r--x11-fonts/tv-fonts/pkg-plist4
2 files changed, 13 insertions, 1 deletions
diff --git a/x11-fonts/tv-fonts/Makefile b/x11-fonts/tv-fonts/Makefile
index c7ac1e4967b5..c139c7fbe115 100644
--- a/x11-fonts/tv-fonts/Makefile
+++ b/x11-fonts/tv-fonts/Makefile
@@ -38,4 +38,12 @@ do-install:
post-install:
@-${X11BASE}/bin/fc-cache -f -v ${FONTSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${X_WINDOW_SYSTEM:L} == xorg
+PLIST_SUB+= NEWMTREE=""
+.else
+PLIST_SUB+= NEWMTREE="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-fonts/tv-fonts/pkg-plist b/x11-fonts/tv-fonts/pkg-plist
index 3569af4ac13f..0f12e178b894 100644
--- a/x11-fonts/tv-fonts/pkg-plist
+++ b/x11-fonts/tv-fonts/pkg-plist
@@ -20,3 +20,7 @@ lib/X11/fonts/misc/teletext2.pcf.gz
lib/X11/fonts/misc/teletext2i.pcf.gz
lib/X11/fonts/misc/teletext4.pcf.gz
lib/X11/fonts/misc/teletext4i.pcf.gz
+@unexec rm %D/lib/X11/fonts/misc/fonts.cache-1 || true
+@unexec fc-cache -f -v %D/lib/X11/fonts/misc || true
+@unexec if [ ! -s %D/lib/X11/fonts/misc/fonts.cache-1 ]; then rm %D/lib/X11/fonts/misc/fonts.cache-1; fi
+%%NEWMTREE%%@unexec rmdir %D/lib/X11/fonts/misc 2>/dev/null || true