aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/gentium-basic/Makefile
blob: 9d0c71b59d4392e12461af07de3592eaaaeaf632 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: Matthew Seaman
# $FreeBSD$

PORTNAME=   GentiumBasic
PORTVERSION=    110
CATEGORIES= x11-fonts
MASTER_SITES=   http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=${MEDIA_ID}&filename=/
DISTNAME=   ttf-sil-gentium-basic_1.1.orig

MAINTAINER= matthew@FreeBSD.org
COMMENT=    Gentium Basic and Gentium Book Basic TrueType fonts

LICENSE=    OFL
LICENSE_NAME=   SIL Open Font License (OFL)
LICENSE_FILE=   ${WRKSRC}/OFL.txt
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USE_TGZ=    yes
XORG_CAT=   font

FONTLIBPATH=    lib/X11/fonts
FONTROOTDIR=    ${PREFIX}/${FONTLIBPATH}
INSTALLS_TTF=   yes
MEDIA_ID=   ${PORTNAME}_${PORTVERSION}_tar
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME:S,.orig,,:S,_,-,}

PLIST_FILES=    ${FONTLIBPATH}/${FONTDIR}/GenBasB.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBasBI.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBasI.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBasR.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBkBasB.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBkBasBI.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBkBasI.ttf \
        ${FONTLIBPATH}/${FONTDIR}/GenBkBasR.ttf

SUB_LIST=   "FONTPATH=${FONTROOTDIR}/${FONTDIR}"
SUB_FILES=  pkg-message

DOCSLIST=   FONTLOG.txt GENTIUM-FAQ.txt OFL-FAQ.txt
PORTDOCS=   ${DOCSLIST:C,^.*/,,}

.include <bsd.port.options.mk>

.SILENT:

do-configure:
    @${DO_NADA}

do-install: install-fonts install-docs
    ${ECHO_MSG}
    ${CAT} ${PKGMESSAGE}
    ${ECHO_MSG}

install-fonts:
    ${MKDIR} ${FONTROOTDIR}/${FONTDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTROOTDIR}/${FONTDIR}

install-docs:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DOCSLIST:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>