View | Details | Raw Unified | Return to bug 110069
Collapse All | Expand All

(-)chinese/opendesktop-fonts/Makefile (-31 / +18 lines)
Lines 1-36 Link Here
1
# New ports collection makefile for:	firefly TrueType Font
1
# New ports collection makefile for:	OpenDesktop.Org.tw Font
2
# Date created:		2 Sep 2004
2
# Date created:		2 Sep 2004
3
# Whom:			Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
3
# Whom:			Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
4
#
4
#
5
# $FreeBSD: ports/chinese/fireflyttf/Makefile,v 1.7 2006/10/31 03:31:46 vanilla Exp $
5
# $FreeBSD: ports/chinese/fireflyttf/Makefile,v 1.7 2006/10/31 03:31:46 vanilla Exp $
6
#
6
#
7
7
8
PORTNAME=	fireflyttf
8
PORTNAME=	opendesktop-fonts
9
PORTVERSION=	1.3.0
9
PORTVERSION=	1.4.2
10
PORTREVISION=	1
11
CATEGORIES=	chinese x11-fonts
10
CATEGORIES=	chinese x11-fonts
12
MASTER_SITES?=	http://firefly.idv.tw/apt/firefly-font/ \
11
MASTER_SITES?=	ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/ \
13
		http://www.study-area.org/apt/firefly-font/
12
		LOCAL/chinsan
14
DISTNAME?=	fireflysung-${PORTVERSION}
15
13
16
MAINTAINER=	chinsan@FreeBSD.org
14
MAINTAINER=	chinsan@FreeBSD.org
17
COMMENT=	Firefly TrueType Font is combine of two arphic sung fonts
15
COMMENT=	Ming and Kai Face(including Simplified, Traditional Chinese, and Japanese)
18
16
17
DIST_SUBDIR=	OpenFonts
19
NO_BUILD=	yes
18
NO_BUILD=	yes
20
WRKSRC=		${WRKDIR}/${DISTNAME}
21
OPTIONS=	LGJ_FONT "Patch for Taiwan horn" on
22
19
23
TTF=		fireflysung.ttf
20
TTF=		odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc
24
21
25
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
26
23
27
.if defined(WITHOUT_LGJ_FONT)
28
.else
29
PKGNAMESUFFIX+=	-LGJ
30
MASTER_SITES=	http://edt1023.sayya.org/fonts/
31
DISTNAME=	fireflysung-1.3.0p1
32
.endif
33
34
.if !defined(WITHOUT_X11)
24
.if !defined(WITHOUT_X11)
35
PLIST_SUB+=	X11=""
25
PLIST_SUB+=	X11=""
36
.else
26
.else
Lines 38-59 Link Here
38
.endif
28
.endif
39
29
40
post-extract:
30
post-extract:
41
.if defined(WITHOUT_LGJ_FONT)
31
	@${CHMOD} 0755 ${WRKSRC}/license
42
	@${DO_NADA}
32
43
.else
33
post-patch:
44
	@${TAR} -C ${WRKSRC} -zxf ${DISTDIR}/fireflysung-1.3.0p1.tar.gz \
34
	@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},; s,opendesktop,,g' \
45
		fireflysung-1.3.0p1/fireflysung.ttf
35
		${WRKSRC}/FAPIcidfmap.zh_CN ${WRKSRC}/FAPIcidfmap.zh_TW \
46
	@${MV} ${WRKSRC}/fireflysung-1.3.0p1/fireflysung.ttf  ${WRKSRC}
36
		${WRKSRC}/cidfmap.zh_CN ${WRKSRC}/cidfmap.zh_TW
47
	@${RM} -rf ${WRKSRC}/fireflysung-1.3.0p1
37
	@${FIND} ${WRKSRC} -name "*.bak" -delete
48
.endif
49
38
50
do-install:
39
do-install:
51
	${MKDIR} ${FONTSDIR}
40
	${MKDIR} ${FONTSDIR}
52
	${INSTALL_DATA} ${WRKSRC}/${TTF} ${FONTSDIR}
41
.for i in ${TTF}
53
	${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${FONTSDIR}
42
	${INSTALL_DATA} ${WRKSRC}/${i} ${FONTSDIR}
54
.if !defined(WITHOUT_X11)
43
.endfor
55
	${INSTALL_DATA} ${FILESDIR}/local.conf-sung ${X11BASE}/etc/fonts/local.conf
56
.endif
57
44
58
.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"
45
.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"
59
.include <bsd.port.post.mk>
46
.include <bsd.port.post.mk>
(-)chinese/opendesktop-fonts/distinfo (-6 / +3 lines)
Lines 1-6 Link Here
1
MD5 (fireflysung-1.3.0.tar.gz) = 99721b834ed2e84400325815deead878
1
MD5 (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = c33e83d27ac3401bc51a2b8a88705c78
2
SHA256 (fireflysung-1.3.0.tar.gz) = 46e1cb4a5a7710463b2451bffb83521d94886071e817074f7b56aeaf62a660da
2
SHA256 (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = 0a629afe54a3a365ea0270ae0c0db0a76840cdd97f1d6837063f06602ca3a316
3
SIZE (fireflysung-1.3.0.tar.gz) = 7116218
3
SIZE (OpenFonts/opendesktop-fonts-1.4.2.tar.gz) = 22242516
4
MD5 (fireflysung-1.3.0p1.tar.gz) = 231870e411d5df7e3badda0005c489e8
5
SHA256 (fireflysung-1.3.0p1.tar.gz) = 93404a373d535e990385119cf2e207215525153907b52e2c1d4ca8e9b92be96c
6
SIZE (fireflysung-1.3.0p1.tar.gz) = 7072268
(-)chinese/opendesktop-fonts/files/local.conf-sung (-47 lines)
Lines 1-47 Link Here
1
<?xml version="1.0"?>
2
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
<fontconfig>
4
	<!-- Firefly Truetype Font -->
5
        <match target="font">
6
                <test name="family"><string>AR PL New Sung</string></test>
7
                <edit name="antialias"><bool>true</bool></edit>
8
                <edit name="hinting"><bool>true</bool></edit>
9
                <edit name="autohint"><bool>false</bool></edit>
10
        </match>
11
12
        <match target="font">
13
                <test name="family"><string>AR PL New Sung</string></test>
14
                <test name="size" compare="less_eq"><int>16</int></test>
15
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
16
                <edit name="hinting" mode="assign"><bool>true</bool></edit>
17
        </match>
18
19
	<match target="font">
20
		<test name="family"><string>AR PL New Sung</string></test>
21
		<edit name="globaladvance"><bool>false</bool></edit>
22
	</match>
23
	<!-- end Firefly Truetype Font -->
24
25
	<!-- x11-fonts/bitstream-vera -->
26
        <alias>
27
                <family>serif</family>
28
                <prefer>
29
                        <family>Bitstream Vera Serif</family>
30
			<family>AR PL New Sung</family>
31
                </prefer>
32
        </alias>
33
        <alias>
34
                <family>sans-serif</family>
35
                <prefer>
36
                        <family>Bitstream Vera Sans</family>
37
			<family>AR PL New Sung</family>
38
                </prefer>
39
        </alias>
40
        <alias>
41
                <family>monospace</family>
42
                <prefer>
43
                        <family>Bitstream Vera Sans Mono</family>
44
			<family>AR PL New Sung</family>
45
                </prefer>
46
        </alias>
47
</fontconfig>
(-)chinese/opendesktop-fonts/pkg-descr (-3 / +12 lines)
Lines 1-4 Link Here
1
Firefly Truetype Font is combine of two arphic sung font and is embed
1
OpenDesktop Font is combine of two arphic Ming and Kai font with 12-pixel(9-point), 
2
9pt, 10pt, 11pt bitmaps.
2
13-pixel(10-point), 14-pixel(10.5-point), 15-pixel(11-point), 16-pixel(12-point) 
3
embedded bitmap fonts
3
4
4
WWW: http://www.study-area.org/apt/firefly-font/
5
NOTICE: This Truetype font contains embedded bitmap fonts made
6
        by firefly and is released as a whole
7
        under the ARPHIC PUBLIC LICENSE.
8
        There are also seperate bitmap fonts made by Firefly and
9
        released under the GENERAL PUBLIC LICENSE (GPL):
10
        ftp://ftp.opendesktop.org.tw/odp/ODOFonts/Bitmaps/
11
12
13
WWW: http://opendesktop.org.tw
(-)chinese/opendesktop-fonts/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
%%X11%%@unexec if cmp -s %%X11BASE%%/etc/fonts/local.conf %D/%%FONTSDIR%%/local.conf-sung; then rm -f %%X11BASE%%/etc/fonts/local.conf; fi
2
%%FONTSDIR%%/local.conf-sung
3
%%X11%%@exec cp %D/%%FONTSDIR%%/local.conf-sung %%X11BASE%%/etc/fonts/local.conf

Return to bug 110069