aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/fira/Makefile
blob: 17f996ab4a92100b03d5a30ec16869d2466677cf (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
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$

PORTNAME=   fira
PORTVERSION=    4.102
CATEGORIES= x11-fonts
MASTER_SITES=   http://www.carrois.com/downloads/%SUBDIR%/:sans,mono \
        SF/horia/${CATEGORIES}/${PORTNAME}/%SUBDIR%/:sans,mono
MASTER_SITE_SUBDIR= ${PORTNAME}_4_1/:sans ${PORTNAME}_mono_3_2/:mono
DISTNAME=   ${PORTNAME:S|f|F|}
DISTFILES=  ${DISTNAME}Fonts${PORTVERSION:S|.||}${EXTRACT_SUFX}:sans \
        ${DISTNAME}MonoFonts${MINOR_VERSION}${EXTRACT_SUFX}:mono
EXTRACT_ONLY=   ${DISTFILES:C|:[^:]+$||:M*${EXTRACT_SUFX}}

MAINTAINER= horia@racoviceanu.com
COMMENT=    Sans-serif and monospaced typeface for small screens

BROKEN_FreeBSD_9=   fails to extract

LICENSE=    OFL11

USES=       fonts zip
USE_XORG=   x11
NO_ARCH=    yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

SUB_FILES=  pkg-message

PORTDOCS=   *.pdf *.rtf
PORTEXAMPLES=   *

MINOR_VERSION=  3202

OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_DESC=  UFO source files

DOCS_DISTFILES= ${DISTNAME}_4_1_Version_Report.rtf:sans \
        ${DISTNAME}PDF${PORTVERSION:S|.||}${EXTRACT_SUFX}:sans \
        ${DISTNAME}MonoPDF${MINOR_VERSION}${EXTRACT_SUFX}:mono
EXAMPLES_DISTFILES= ${DISTNAME}UFO_beta${PORTVERSION:S|.||}${EXTRACT_SUFX}:sans \
            ${DISTNAME}MonoUFO_beta${MINOR_VERSION}${EXTRACT_SUFX}:mono

.include <bsd.port.options.mk>

do-install:
    @${MKDIR} ${STAGEDIR}${FONTSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}*Fonts*/OTF/*.otf \
        ${STAGEDIR}${FONTSDIR}
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${CP} ${DISTDIR}/${DISTNAME}_4_1_Version_Report.rtf ${WRKSRC}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|:M*.rtf} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/${DISTNAME}*PDF*/|:M*.pdf} \
        ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
. for e in ${EXAMPLES_DISTFILES:R:C|:[^:]+$||}
    (cd ${WRKDIR}/${e} && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
. endfor
.endif

.include <bsd.port.mk>