aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/dina/Makefile
blob: 9c4e24997b06dfb18b3671f481d0221e76c18eb5 (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
# $FreeBSD$

PORTNAME=   dina
PORTVERSION=    2.92
CATEGORIES= x11-fonts
MASTER_SITES=   LOCAL/rakuco

MAINTAINER= rakuco@FreeBSD.org
COMMENT=    Monospace bitmap font, primarily aimed at programmers

LICENSE=    MIT

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

FONTDIR=    lib/X11/fonts/${PORTNAME}
PLIST_SUB=  FONTDIR=${FONTDIR}

BDFLIST=    Dina_i400-10.bdf Dina_i400-8.bdf Dina_i400-9.bdf \
        Dina_i700-10.bdf Dina_i700-8.bdf Dina_i700-9.bdf \
        Dina_r400-10.bdf Dina_r400-6.bdf Dina_r400-8.bdf \
        Dina_r400-9.bdf Dina_r700-10.bdf Dina_r700-8.bdf \
        Dina_r700-9.bdf

do-build:
.for BDF in ${BDFLIST}
    cd ${WRKSRC}/BDF && bdftopcf -t -o ${BDF:S/.bdf/.pcf/} ${BDF}
.endfor
    ${GZIP_CMD} ${WRKSRC}/BDF/*.pcf

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
    ${INSTALL_DATA} ${WRKSRC}/BDF/*.pcf.gz ${STAGEDIR}${PREFIX}/${FONTDIR}

.include <bsd.port.mk>