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

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

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

# IANAL, but the license looks close enough to a standard BSD license that
# auto-accept and all the other permissions look like reasonable defaults here.
LICENSE=    custom
LICENSE_NAME=   Custom License
LICENSE_FILE=   ${WRKSRC}/LICENSE
LICENSE_PERMS=  auto-accept dist-mirror dist-sell pkg-mirror pkg-sell

BUILD_DEPENDS=  fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
        mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir

FONTDIR=    lib/X11/fonts/${PORTNAME}
NO_BUILD=   yes
PLIST_SUB+= FONTDIR=${FONTDIR}

NO_STAGE=   yes
do-install:
    @${MKDIR} ${PREFIX}/${FONTDIR}
    @${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${PREFIX}/${FONTDIR}

post-install:
    @cd ${PREFIX}/${FONTDIR} && mkfontdir
    @${CP} ${PREFIX}/${FONTDIR}/fonts.dir ${PREFIX}/${FONTDIR}/fonts.scale
    @command fc-cache -f -v ${PREFIX}/${FONTDIR}

.include <bsd.port.mk>