aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/charis-compact/Makefile
blob: 0419e5b5c007fe6d78244bd682aaf79c98c89065 (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
# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$

PORTNAME=   CharisSILCompact
PORTVERSION=    4.114
CATEGORIES= x11-fonts
#unfortunately, the SIL server embeds timestamps in the distfile, so we use a static local copy
.if defined(MAINTAINER_MODE)
MASTER_SITES=   http://scripts.sil.org/ttw/fonts2go.cgi?family=CharisSIL&pkg=Compact&ver=${PORTVERSION}&filename=/
.else
MASTER_SITES=   LOCAL/bf
.endif
MASTER_SITE_SUBDIR= #prevent bsd.xorg.mk from setting a default subdirectory

MAINTAINER= bf@FreeBSD.org
COMMENT=    Charis SIL TrueType font collection, compact variant

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

USE_ZIP=    yes
XORG_CAT=   font

FONTROOTDIR=    ${PREFIX}/lib/X11/fonts
INSTALLS_TTF=   yes
NO_BUILD=   yes
USE_TGZ=    yes #prevent bsd.xorg.mk from setting USE_BZIP

.for type in B BI I R
PLIST_FILES+=   ${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}/${PORTNAME}-${type}.ttf
.endfor

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
PORTDOCS=   FONTLOG.txt OFL-FAQ.txt OFL.txt README.txt feat_set_tuned.xml
.endif

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

do-configure:
    @${DO_NADA}

do-install:
    @${MKDIR} ${FONTROOTDIR}/${FONTDIR}
    @(cd ${WRKSRC} ; ${INSTALL_DATA} *.ttf ${FONTROOTDIR}/${FONTDIR})
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    @(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}

.include <bsd.port.mk>