aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/gentium-basic/Makefile
blob: 6f36916866d06255b2463be69b177064d3bb4ca5 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
# New ports collection makefile for:    Gentium Font Family
# Date created:     March 31 2004
# Whom:         Matthew Seaman <m.seaman@infracaninophile.co.uk>
#
# $FreeBSD$
#
# This port is shamelessly copied from Joe Marcus Clarke's bitstream-vera
# port.

PORTNAME=   gentium
PORTVERSION=    1.0.2
PORTREVISION=   3
CATEGORIES= x11-fonts
MASTER_SITES=   http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Gentium_102_L_tar&_sc=1&filename=/
DISTNAME=   ttf-sil-${PORTNAME}_${PORTVERSION}

MAINTAINER= m.seaman@infracaninophile.co.uk
COMMENT=    Gentium TrueType font collection

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

NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/ttf-sil-${PORTNAME}-${PORTVERSION:C@\.([[:digit:]]+)$@\1@}

PLIST_SUB=  FONTSDIR="${FONTSDIR}" \
        FONTNAME="${FONTNAME}"

SUB_LIST=   "FONTSDIR=${FONTSDIR}"
SUB_FILES=  pkg-message

#
# Local variables
#

FONTNAME=   ${PORTNAME}
FONTSDIR?=  lib/X11/fonts/${FONTNAME}
FONTSTGT=   ${PREFIX}/${FONTSDIR}

DOCSLIST=   FONTLOG GENTIUM-FAQ Gentium-Greek-Specimen.pdf \
        Gentium-RU-A3Proofs.pdf Gentium-RU-Specimen.pdf \
        OFL-FAQ QUOTES README

.SILENT:

#
# Install
#

do-install: install-fonts install-conf install-docs

install-fonts:
    ${MKDIR} ${FONTSTGT}
    ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSTGT}
    ${INSTALL_DATA} ${FILESDIR}/fonts.dir ${FONTSTGT}
    ${INSTALL_DATA} ${WRKSRC}/OFL ${FONTSTGT}

install-conf:
    ${MKDIR} ${PREFIX}/etc/fonts/conf.d
    ${INSTALL_DATA} ${WRKSRC}/local.conf \
        ${PREFIX}/etc/fonts/conf.d/${FONTNAME}.conf

install-docs:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    @for doc in ${DOCSLIST} ; do \
      ${INSTALL_DATA} ${WRKSRC}/$$doc ${DOCSDIR} ; \
    done
.endif

post-install:
    ${ECHO_MSG} "===> Running fc-cache"
    -${X11BASE}/bin/fc-cache -f -v ${FONTSTGT}
    ${ECHO_MSG}
    ${CAT} ${PKGMESSAGE}
    ${ECHO_MSG}

.include <bsd.port.mk>