mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
72a1165afd
PR: 50820 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
40 lines
708 B
Bash
40 lines
708 B
Bash
#!/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="NTU_FS_M.TTF NTU_KAI.TTF NTU_LI_M.TTF NTU_MB.TTF NTU_MM.TTF NTU_MR.TTF NTU_TW.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
|