head	1.5;
access;
symbols
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.4
	RELEASE_5_2_0:1.4
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2;
locks; strict;
comment	@# @;


1.5
date	2005.02.19.13.51.50;	author leeym;	state dead;
branches;
next	1.4;

1.4
date	2003.09.26.00.34.09;	author leeym;	state Exp;
branches;
next	1.3;

1.3
date	2002.12.21.18.48.37;	author ijliao;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.10.07.57.18;	author keith;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.08.16.23.16;	author keith;	state Exp;
branches;
next	;


desc
@@


1.5
log
@- add chinese/Makefile.ttf to control install/deinstall process of all
  TrueType fonts in chinese/*ttf
- update related Makefile(s) and remove pkg-{install,pkg-deinstall,pkg-plist}
- relocate non-font files to DATADIR or DOCSDIR
- fix "unable to reomve fonts from gscjk" problem in ttfm.sh and gscjk.ttfm
- update chinese/zh-fireflyttf to 1.2.6 [1]

PR:		[1] 77438
Submitted by:	leeym
Approved by:	statue at freebsd.sinica.edu.tw
@
text
@#!/bin/sh

if [ "$2" = "PRE-INSTALL" ]; then
  exit 0
fi

PKGNAME=$1
PREFIX=${PKG_PREFIX}
TTFM=${PREFIX}/bin/ttfm.sh

# No default kai & ming for wangttf.
FONTDIR=${PREFIX}/share/fonts/TrueType
FONTS="wcl-01.ttf wcl-02.ttf wcl-03.ttf wcl-04.ttf wcl-05.ttf \
       wcl-06.ttf wcl-07.ttf wcl-08.ttf wcl-09.ttf wcl-10.ttf"

if [ ! -x $TTFM ]; then
    echo "$TTFM not found!"
    exit 1
fi

rm -f $FONTDIR/$PKGNAME

if [ "X$WANT_CJK" != "X" ]; then
    # There's no CJK module now.
fi

if [ "X$WANT_GS" != "X" ]; then
    for f in $FONTS; do
        $TTFM --add gscjk $FONTDIR/$f
    done
    echo "gscjk" >> $FONTDIR/$PKGNAME
fi

if [ "X$WITHOUT_X" = "X" ]; then
    for f in $FONTS; do
        $TTFM --add xttfm $FONTDIR/$f
    done
    echo "xttfm" >> $FONTDIR/$PKGNAME
fi

exit 0
@


1.4
log
@remove unused code. no default ming & kai

PR:		57182
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@@


1.3
log
@due to ttfm module ghostscript6 change to gscjk

PR:		42330
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@a30 6
    for f in $DEFAULTMING; do
        $TTFM --setdefault gscjk $FONTDIR/$f
    done
    for f in $DEFAULTKAI; do
        $TTFM --setdefault_kai gscjk $FONTDIR/$f
    done
a36 6
    done
    for f in $DEFAULTMING; do
        $TTFM --setdefault xttfm $FONTDIR/$f
    done
    for f in $DEFAULTKAI; do
        $TTFM --setdefault_kai xttfm $FONTDIR/$f
@


1.2
log
@Displays verbose message when install, and also adds
the WITHOUT_X option.

Tested under:	current+XFree86-4
@
text
@d27 1
a27 1
if [ "X$WANT_GS6" != "X" ]; then
d29 1
a29 1
        $TTFM --add ghostscript6 $FONTDIR/$f
d32 1
a32 1
        $TTFM --setdefault ghostscript6 $FONTDIR/$f
d35 1
a35 1
        $TTFM --setdefault_kai ghostscript6 $FONTDIR/$f
d37 1
a37 1
    echo "ghostscript6" >> $FONTDIR/$PKGNAME
@


1.1
log
@Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.

Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf.  The rest are displayed correctly.

Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
@
text
@a15 2
[ "X$WANT_X" = "X" ] && WANT_X=YES

d23 1
a23 1
if [ "$WANT_CJK" = "YES" -o "$WANT_CJK" = "yes" ]; then
d27 1
a27 1
if [ "$WANT_GS6" = "YES" -o "$WANT_GS6" = "yes" ]; then
d40 1
a40 1
if [ "$WANT_X" = "YES" -o "$WANT_X" = "yes" ]; then
@

