# New ports collection makefile for:	terminus-font
# Date Created:                         04 Nov 2002
# Whom:                                 Michael Hsin <mhsin@mhsin.org>
#
# $FreeBSD: ports/x11-fonts/terminus-font/Makefile,v 1.4 2003/03/11 00:40:06 keichii Exp $
#

PORTNAME=	terminus-font
PORTVERSION=	4.00
PORTREVISION=	1
CATEGORIES=	x11-fonts
MASTER_SITES=	http://www.is-vn.bg/hamster/

MAINTAINER=	gugod@gugod.org
COMMENT=	Terminus Font - a clean fixed width font

BUILD_DEPENDS=	mkitalic:${PORTSDIR}/x11-fonts/mkitalic

USE_X_PREFIX=	yes
ALL_TARGET=	pcf
SHAREMODE=	644
XFONTDIR=	${PREFIX}/lib/X11/fonts/local

.include <bsd.port.pre.mk>

.if ${XFREE86_VERSION} == 4
BUILD_DEPENDS+=	bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
RUN_DEPENDS=	mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
.endif

post-build:
	@gzip ${WRKSRC}/*.pcf

do-install:
	@${MKDIR} ${XFONTDIR}
	@${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${XFONTDIR}
	@cd ${XFONTDIR}; mkfontdir

.include <bsd.port.post.mk>
