blob: 0c7e6d4b7b63f4cc82b1bf4de924a946bc1ed869 (
plain)
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
|
# New ports collection makefile for: STIX fonts
# Date created: 28 February 2009
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= stixfonts
PORTVERSION= 1.1.0
CATEGORIES= x11-fonts
MASTER_SITES= SF/${PORTNAME}/
DISTNAME= STIXv${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= A comprehensive set of fonts for scientific and engineering purposes
LICENSE= OFL
LICENSE_NAME= Open Font License
LICENSE_FILE= ${WRKSRC}/License/STIX\ Font\ License\ 2010.pdf
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
NO_WRKSUBDIR= yes
USE_ZIP= yes
USE_XORG= x11
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}" \
FCCACHE='${FCCACHE}'
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= stix
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
FCCACHE= ${LOCALBASE}/bin/fc-cache -f -v
.if !defined(NOPORTDOCS)
PORTDOCS= STIXv${PORTVERSION}.pdf
.endif
do-build:
${MKDIR} ${WRKDIR}/build
.for group in STIX-General STIX-Word
${CP} ${WRKSRC}/Fonts/${group}/*.otf ${WRKDIR}/build
.endfor
cd ${WRKDIR}/build && ${MKFONTSCL_CMD}
${REINPLACE_CMD} -e 's|-misc-|-stix-|' ${WRKDIR}/build/fonts.scale
cd ${WRKDIR}/build && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${FONTDIR}
cd ${WRKDIR}/build && ${INSTALL_DATA} fonts.dir fonts.scale *.otf ${FONTDIR}
cd ${FONTDIR} && ${MKFONTDIR_CMD}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
@${ECHO_MSG} "===> Running fc-cache"
-${FCCACHE} ${FONTDIR}
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|