blob: 49fd9d7a8d7a7910ff32eae671cde81bf5dc4f0f (
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
|
# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
# $FreeBSD$
PORTNAME= sourcecodepro-ttf
PORTVERSION= 1.017
CATEGORIES= x11-fonts
MASTER_SITES= SF/sourcecodepro.adobe
DISTNAME= SourceCodePro_FontsOnly-${PORTVERSION}
MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= A set of fonts by Adobe designed for coders
LICENSE= OFL
LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LICENSE_PERMS= auto-accept
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
USE_ZIP= yes
USE_XORG= x11
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= SourceCodePro
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
INSTDAT= fonts.dir fonts.scale
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
NO_STAGE= yes
do-build:
cd ${WRKSRC}/TTF/ && ${MKFONTSCL_CMD}
cd ${WRKSRC}/TTF/ && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${FONTDIR}
cd ${WRKSRC}/TTF/ && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|