head	1.10;
access;
symbols
	RELEASE_4_11_0:1.9
	RELEASE_5_3_0:1.9
	RELEASE_4_10_0:1.9
	RELEASE_5_2_1:1.9
	RELEASE_5_2_0:1.9
	RELEASE_4_9_0:1.8
	RELEASE_5_1_0:1.8
	RELEASE_4_8_0:1.7
	RELEASE_5_0_0:1.7
	RELEASE_4_7_0:1.6
	RELEASE_4_6_2:1.6
	RELEASE_4_6_1:1.6
	RELEASE_4_6_0:1.6
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.6
	RELEASE_4_4_0:1.6
	RELEASE_4_3_0:1.6
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.2
	RELEASE_3_4_0:1.2
	v1_0:1.1.1.1
	JTJANG:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2005.02.19.13.51.48;	author leeym;	state dead;
branches;
next	1.9;

1.9
date	2003.10.29.13.37.36;	author leeym;	state Exp;
branches;
next	1.8;

1.8
date	2003.04.01.01.47.09;	author leeym;	state Exp;
branches;
next	1.7;

1.7
date	2002.12.21.18.48.37;	author ijliao;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.10.07.12.06;	author keith;	state Exp;
branches;
next	1.5;

1.5
date	2000.12.08.09.01.33;	author keith;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.04.12.59.39;	author keith;	state Exp;
branches;
next	1.3;

1.3
date	2000.10.04.14.43.07;	author kevlo;	state Exp;
branches;
next	1.2;

1.2
date	99.11.01.17.53.45;	author foxfair;	state Exp;
branches;
next	1.1;

1.1
date	99.10.19.08.07.46;	author foxfair;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.10.19.08.07.46;	author foxfair;	state Exp;
branches;
next	;


desc
@@


1.10
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

FONTDIR=${PREFIX}/share/fonts/TrueType
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"

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

rm -f $FONTDIR/$PKGNAME

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.9
log
@remove unused code.
assign maintainership.

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


1.8
log
@remove not-yet-supported CJK module and prevent it from loopback dependence.

PR:             35833
Submitted by:   Chia-Hsing Yu <b7506061@@csie.ntu.edu.tw>
Approved by:    maintainer timeout
@
text
@a12 2
DEFAULTMING="bsmi00lp.ttf gbsn00lp.ttf"
DEFAULTKAI="bkai00mp.ttf gkai00mp.ttf"
a24 6
    for f in $DEFAULTMING; do
        $TTFM --setdefault gscjk $FONTDIR/$f
    done
    for f in $DEFAULTKAI; do
        $TTFM --setdefault_kai gscjk $FONTDIR/$f
    done
a30 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.7
log
@due to ttfm module ghostscript6 change to gscjk

PR:		42330
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@a22 4
if [ "X$WANT_CJK" != "X" ]; then
    # There's no CJK module now.
fi

@


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

Tested under:	current+XFree86-4 & stable+XFree86-3
@
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.5
log
@CJK -> WANT_CJK
GS6 -> WANT_GS6
XTT -> WANT_X

According to bsd.gnome.mk's logic.
@
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
@


1.4
log
@Remove the old brute-force script that generates thousands of XLFD.
Many of them are unnecessary, and most of the task are handled by
ttfm now.

It's also aware of chinese/{CJK, ghostscript6}.  It supports XFree86
3.x or 4.x by default.  Users only need to define GS6=yes or CJK=yes
when installing, then it'll do most of the work.  CJK and ghostscript6
ports should specify their respective variables via DEPENDS_ARGS.

chinese/{moettf,moefonts-cid,wangttf} will have similar changes.
@
text
@d16 1
a16 1
[ "X$XTT" = "X" ] && XTT=YES
d25 1
a25 1
if [ "$CJK" = "YES" -o "$CJK" = "yes" ]; then
d29 1
a29 1
if [ "$GS6" = "YES" -o "$GS6" = "yes" ]; then
d42 1
a42 1
if [ "$XTT" = "YES" -o "$XTT" = "yes" ]; then
@


1.3
log
@Typos. bkai00mp.ttf -> gkai00mp.ttf

PR: 21732
Submitted by: MAINTAINER
@
text
@d2 1
a2 1
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
a3 1
  echo "Please add ${FONTDIR} to your /etc/XF86Config file"
a5 1
cd ${FONTDIR}
d7 20
a26 11
echo "Updating fonts.dir & fonts.alias. This may take a while..."
# Update fonts.dir
touch fonts.dir
sed -e '/ -ar-/d' -e '/ -arphic-/d' fonts.dir > fonts.dir.tmp
# Add 16 new fonts
numfonts=$(echo $(cat fonts.dir.tmp |wc -l) - 1 + 16 |bc)
if [ ${numfonts} -le 16 ]; then # fonts.dir.tmp is empty
  echo 16 > fonts.dir
else
  echo ${numfonts} > fonts.dir
  sed -e 1d fonts.dir.tmp >> fonts.dir
a27 1
rm -f fonts.dir.tmp
d29 25
a53 2
# The TTF filenames are so diverse that we can only iterate one
# by one, instead of a generic for loop.
d55 1
a55 88
# bkai00mp.ttf (Big5)
echo bkai00mp.ttf -ar-kai-medium-r-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ab=y:bkai00mp.ttf -ar-kai-bold-r-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ai=0.3:bkai00mp.ttf -ar-kai-medium-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ab=y:ai=0.3:bkai00mp.ttf -ar-kai-bold-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir

# bsmi00lp.ttf (Big5)
echo bsmi00lp.ttf -ar-ming-medium-r-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ab=y:bsmi00lp.ttf -ar-ming-bold-r-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ai=0.3:bsmi00lp.ttf -ar-ming-medium-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir
echo ab=y:ai=0.3:bsmi00lp.ttf -ar-ming-bold-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir

# gbsn00lp.ttf (GB)
echo gbsn00lp.ttf -ar-sung-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:gbsn00lp.ttf -ar-sung-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ai=0.3:gbsn00lp.ttf -ar-sung-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:ai=0.3:gbsn00lp.ttf -ar-sung-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir

# gkai00mp.ttf (GB)
echo gkai00mp.ttf -ar-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:gkai00mp.ttf -ar-kai-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ai=0.3:gkai00mp.ttf -ar-kai-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:ai=0.3:gkai00mp.ttf -ar-kai-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir


# Update fonts.alias, font size ranges from 8 to 128.
# Medium/Bold & Roman/Italic variations are also added.
touch fonts.alias
sed -e '/^-ar-/d' -e '/^-arphic-/d' fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias

# Iterate four fonts, same as in fonts.dir.

# bkai00mp.ttf (Big5)
SIZE=8
for WEIGHT in medium bold
do
  (for SLANT in r i
   do
     (while [ ${SIZE} -le 128 ]
      do
        echo -arphic-kai-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -ar-kai-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
        SIZE=`expr ${SIZE} + 1`;
      done)   # SIZE
   done)   # SLANT
done   # WEIGHT

# bsmi00lp.ttf (Big5)
SIZE=8
for WEIGHT in medium bold
do
  (for SLANT in r i
   do
     (while [ ${SIZE} -le 128 ]
      do
        echo -arphic-ming-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -ar-ming-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
      SIZE=`expr ${SIZE} + 1`;
      done)   # SIZE
   done)   # SLANT
done   # WEIGHT

# gbsn00lp.ttf (GB)
SIZE=8
for WEIGHT in medium bold
do
  (for SLANT in r i
   do
     (while [ ${SIZE} -le 128 ]
      do
        echo -arphic-sung-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 -ar-sung-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 >> fonts.alias;
        SIZE=`expr ${SIZE} + 1`;
      done)   # SIZE
   done)   # SLANT
done   # WEIGHT

# gkai00mp.ttf (GB)
SIZE=8
for WEIGHT in medium bold
do
  (for SLANT in r i
   do
     (while [ ${SIZE} -le 128 ]
      do
        echo -arphic-kai-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 -ar-kai-${WEIGHT}-${SLANT}-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 >> fonts.alias;
        SIZE=`expr ${SIZE} + 1`;
      done)   # SIZE
   done)   # SLANT
done   # WEIGHT
@


1.2
log
@PR:		14641
Submitted by:	clive@@CirX.org
Reviewed by:	the maintainer
Add *-bold-i-* to fonts.alias by default.
@
text
@d45 4
a48 4
echo bkai00mp.ttf -ar-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:bkai00mp.ttf -ar-kai-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ai=0.3:bkai00mp.ttf -ar-kai-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
echo ab=y:ai=0.3:bkai00mp.ttf -ar-kai-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 >> fonts.dir
@


1.1
log
@Initial revision
@
text
@d52 1
d61 1
a61 1
while [ ${SIZE} -le 128 ]
d63 9
a71 3
  echo -arphic-kai-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -ar-kai-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
  SIZE=`expr ${SIZE} + 1`;
done
d75 1
a75 1
while [ ${SIZE} -le 128 ]
d77 9
a85 3
  echo -arphic-ming-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 -ar-ming-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-big5-0 >> fonts.alias;
  SIZE=`expr ${SIZE} + 1`;
done
d89 1
a89 1
while [ ${SIZE} -le 128 ]
d91 9
a99 3
  echo -arphic-sung-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 -ar-sung-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 >> fonts.alias;
  SIZE=`expr ${SIZE} + 1`;
done
d103 1
a103 1
while [ ${SIZE} -le 128 ]
d105 9
a113 3
  echo -arphic-kai-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 -ar-kai-medium-r-normal--${SIZE}-`expr ${SIZE} \* 10`-0-0-c-`expr ${SIZE} \* 10`-gb2312.1980-0 >> fonts.alias;
  SIZE=`expr ${SIZE} + 1`;
done
@


1.1.1.1
log
@PR:			14393
Submitted by:		Keith Jang <jtjang@@gcn.net.tw>
Import new port: Free-distributable Chinese Big5/GB TTFs.

This port installs four Chinese Big5/GB TrueType fonts, includes
Kaiti/Mingti(Big5) and Kaiti/Sungti(GB). It then can be used along
with X Window System or typesetting software like CJK. Thanks to
Arphic Technology, you may freely distribute these high-quality
fonts under a GPL-based license. See ARPHIC_*.TXT for details.
@
text
@@
