blob: b8c9fbce3f48ba827c8bf78f2342656deea75cb7 (
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
|
# New ports collection makefile for: Code2000
# Date created: 6 Dec 2003
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= code2000
PORTVERSION= 1.16
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://code2000.net/
DISTFILES= ${PORTNAME:U}${EXTRACT_SUFX:U}
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}_${PORTREVISION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Shareware demo Unicode TrueType font
BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
RESTRICTED= Only unmodified original package can be distributed
USE_X_PREFIX= yes
USE_ZIP= yes
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR}
FONTNAME= ${PORTNAME}
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
TTFONTSDIR?= ${X11BASE}/lib/X11/fonts/TrueType
TTMKFDIR_CMD?= ${X11BASE}/bin/ttmkfdir
post-extract: move-fonts rename-license
move-fonts:
${MKDIR} ${WRKSRC}
${MV} ${WRKDIR}/CODE2000.TTF ${WRKSRC}/${FONTNAME}.ttf
rename-license:
${MV} ${WRKDIR}/CODE2000.HTM ${WRKSRC}/${FONTNAME}.html
do-build: make-fonts.scale make-fonts.dir
make-fonts.scale:
cd ${WRKSRC} && ${TTMKFDIR_CMD} -c -f JJK -d .
${CAT} -n ${WRKSRC}/fonts.scale | ${SED} -e ' \
s,^ 1,100000,; \
s,JJK,${FONTNAME},; \
' | ${SORT} -r | ${CUT} -c 8- > ${WRKSRC}/fonts.scale.new
${MV} ${WRKSRC}/fonts.scale.new ${WRKSRC}/fonts.scale
make-fonts.dir:
${CP} ${WRKSRC}/fonts.scale ${WRKSRC}/fonts.dir
do-install:
${MKDIR} ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/* ${FONTSDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|