aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/terminus-font/Makefile
blob: 28e0da00f1480675e98f8db2976e15a0e16e6445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:   terminus-font
# Date Created:                         04 Nov 2002
# Whom:                                 Michael Hsin <mhsin@mhsin.org>
#
# $FreeBSD$
#

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

MAINTAINER= vlad@vlad.uz.ua
COMMENT=    Terminus Font - a clean fixed width font

BUILD_DEPENDS=  mkitalic:${PORTSDIR}/x11-fonts/mkbold-mkitalic \
        bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
        mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
RUN_DEPENDS=    mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir

USE_PERL5=  yes
ALL_TARGET= pcf
SHAREMODE=  644
FONTDIR=    lib/X11/fonts/${PORTNAME}
PLIST_SUB+= FONTDIR=${FONTDIR}

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

do-install:
    @${MKDIR} ${X11BASE}/${FONTDIR}
    @${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${X11BASE}/${FONTDIR}

post-install:
    @cd ${X11BASE}/${FONTDIR}; mkfontdir
    @${CP} ${X11BASE}/${FONTDIR}/fonts.dir ${X11BASE}/${FONTDIR}/fonts.scale || true
    @command fc-cache -f -v ${X11BASE}/${FONTDIR} || true

.include <bsd.port.mk>