aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/tv-fonts/Makefile
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2008-03-07 23:36:00 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2008-03-07 23:36:00 +0000
commitc233424f3314fb2f481ba2a608ff657359a5d9f1 (patch)
tree45da0a6ff7c6620626c04766c7109580213d7ac1 /x11-fonts/tv-fonts/Makefile
parent3fb0e0b00634cc84842c9aee7e2ddd499489cc0b (diff)
downloadports-c233424f3314fb2f481ba2a608ff657359a5d9f1.tar.gz
ports-c233424f3314fb2f481ba2a608ff657359a5d9f1.zip
Notes
Diffstat (limited to 'x11-fonts/tv-fonts/Makefile')
-rw-r--r--x11-fonts/tv-fonts/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/x11-fonts/tv-fonts/Makefile b/x11-fonts/tv-fonts/Makefile
index 35cd6be6173e..d3c084124da0 100644
--- a/x11-fonts/tv-fonts/Makefile
+++ b/x11-fonts/tv-fonts/Makefile
@@ -14,9 +14,6 @@ MASTER_SITES= http://dl.bytesex.org/releases/${PORTNAME}/
MAINTAINER= oliver@FreeBSD.org
COMMENT= A number of fonts which are useful for TV applications
-BUILD_DEPENDS= bdftopcf:${X_CLIENTS_PORT}
-
-USE_XLIB= yes
USE_GMAKE= yes
USE_BZIP2= yes
@@ -30,6 +27,18 @@ FONTS= caption.pcf.gz captioni.pcf.gz led-iso10646-1.pcf.gz \
teletext2.pcf.gz teletext2i.pcf.gz teletext4.pcf.gz \
teletext4i.pcf.gz
+.include <bsd.port.pre.mk>
+
+.if ${X_WINDOW_SYSTEM:L} != xorg
+BUILD_DEPENDS+= bdftopcf:${X_CLIENTS_PORT}
+.else
+BUILD_DEPENDS+= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+.endif
+
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
do-install:
@${MKDIR} ${FONTSDIR}
.for font in ${FONTS}
@@ -39,4 +48,5 @@ do-install:
post-install:
@-${X11BASE}/bin/fc-cache -f -v ${FONTSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
+