blob: 59948813aa31c8f3462274e53d21a13ddf49399c (
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
|
# Created by: cpm
# $FreeBSD$
PORTNAME= alef
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://alef.hagilda.com/
PKGNAMESUFFIX= -webfont
DISTNAME= Alef
MAINTAINER= ports@FreeBSD.org
COMMENT= Free multi-lingual font designed for screens
LICENSE= OFL11
LICENSE_FILE= ${WRKDIR}/OFL-license.txt
BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:x11-fonts/mkfontscale
USES= zip
NO_BUILD= yes
NO_ARCH= yes
FONTSDIR= ${PREFIX}/lib/x11/fonts/${PORTNAME}${PKGNAMESUFFIX}
INSTDAT= fonts.dir fonts.scale
PLIST_SUB= FONTSDIR="${FONTSDIR}" WWWDIR_REL="${WWWDIR_REL}${PKGNAMESUFFIX}"
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
OPTIONS_DEFINE= DOCS
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= COMING-SOON.txt readme.txt
post-extract:
${MKDIR} ${WRKSRC}
cd ${WRKDIR} && ${MV} TTF ${WRKSRC}
${MV} ${WRKDIR}/--COMING-SOON--.txt ${WRKDIR}/COMING-SOON.txt
pre-install:
${MKFONTSCL_CMD} ${WRKDIR}/Alef-Webfont
${MKFONTDIR_CMD} ${WRKDIR}/Alef-Webfont
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
.for f in Alef-bold.html Alef-regular.html stylesheet.css
${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/${f} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
.endfor
.for i in eot svg ttf woff
${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i}
${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/*.${i} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i}
.endfor
cd ${WRKDIR}/Alef-Webfont && ${INSTALL_DATA} ${INSTDAT} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/ttf
${CP} -pr ${WRKDIR}/Alef-Webfont/specimen_files ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|