mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add ntuttf 1.0, seven Chinese Big5 TrueType fonts made by NTU.
PR: 50820 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
This commit is contained in:
parent
36b51565fd
commit
72a1165afd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80867
@ -72,6 +72,7 @@
|
||||
SUBDIR += mule-freewnn
|
||||
SUBDIR += muni
|
||||
SUBDIR += mutt
|
||||
SUBDIR += ntuttf
|
||||
SUBDIR += nvi-big5
|
||||
SUBDIR += nvi-euc-cn
|
||||
SUBDIR += nvi-euc-tw
|
||||
|
71
chinese/ntuttf/Makefile
Normal file
71
chinese/ntuttf/Makefile
Normal file
@ -0,0 +1,71 @@
|
||||
# New ports collection makefile for: NTU Chinese TrueType fonts
|
||||
# Date created: 11 April 2003
|
||||
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ntuttf
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= chinese x11-fonts
|
||||
MASTER_SITES= ftp://cle.linux.org.tw/pub/fonts/ttf/unicode/ntu/ \
|
||||
ftp://freebsd.sinica.edu.tw/pub/statue/ntuttf/
|
||||
DISTFILES= NTU_FS_M.TTF NTU_KAI.TTF NTU_LI_M.TTF NTU_MB.TTF \
|
||||
NTU_MM.TTF NTU_MR.TTF NTU_TW.TTF
|
||||
EXTRACT_ONLY= # empty
|
||||
|
||||
MAINTAINER= statue@freebsd.sinica.edu.tw
|
||||
COMMENT= Seven Chinese Big5 TrueType fonts made by NTU
|
||||
|
||||
RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm
|
||||
|
||||
NO_BUILD= yes
|
||||
SHAREMODE= 644
|
||||
USE_XLIB= yes
|
||||
FONTDIR= ${PREFIX}/share/fonts/TrueType
|
||||
XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
|
||||
INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \
|
||||
WANT_CJK=${WANT_CJK} WANT_GS=${WANT_GS} \
|
||||
WITHOUT_X=${WITHOUT_X}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WANT_CJK)
|
||||
RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK
|
||||
.endif
|
||||
.if defined(WANT_GS)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
|
||||
.endif
|
||||
.if ${XFREE86_VERSION} == 3 && !defined(WITHOUT_X)
|
||||
RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common
|
||||
.endif
|
||||
|
||||
pre-fetch:
|
||||
.if defined(WANT_CJK)
|
||||
@${ECHO} "CJK support will be added."
|
||||
.endif
|
||||
.if defined(WANT_GS)
|
||||
@${ECHO} "Ghostscript support will be added."
|
||||
.endif
|
||||
.if defined(WITHOUT_X)
|
||||
@${ECHO} "X Window support will NOT be added."
|
||||
.endif
|
||||
.if !defined(WANT_CJK) && !defined(WANT_GS) && !defined(WITHOUT_X)
|
||||
@${ECHO} --
|
||||
@${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support."
|
||||
@${ECHO} "Type \"make WANT_GS=yes\" if you want Ghostscript support."
|
||||
@${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support."
|
||||
@${ECHO} "You can use them in combinations."
|
||||
@${ECHO} --
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.if !exists(${FONTDIR})
|
||||
@${MKDIR} ${FONTDIR}
|
||||
.endif
|
||||
.for i in ${DISTFILES}
|
||||
@${INSTALL_DATA} ${DISTDIR}/${i} ${FONTDIR}
|
||||
.endfor
|
||||
@${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.post.mk>
|
7
chinese/ntuttf/distinfo
Normal file
7
chinese/ntuttf/distinfo
Normal file
@ -0,0 +1,7 @@
|
||||
MD5 (NTU_FS_M.TTF) = dc2a25c8825423a37f36da1c158a32fd
|
||||
MD5 (NTU_KAI.TTF) = d208682e5c0a6f347d8e1e14962a4887
|
||||
MD5 (NTU_LI_M.TTF) = 8dc43f6b02e22a7b4f3d083c16c92e80
|
||||
MD5 (NTU_MB.TTF) = e82abcb9de37bbf39a7faa32368d09e3
|
||||
MD5 (NTU_MM.TTF) = a2f7fe50c75b222cc16a8f766b787317
|
||||
MD5 (NTU_MR.TTF) = b772aea4bc3c340604a0ad98696c766a
|
||||
MD5 (NTU_TW.TTF) = 68f21e60a8eac47089b612a93e14a04c
|
24
chinese/ntuttf/pkg-deinstall
Normal file
24
chinese/ntuttf/pkg-deinstall
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$2" != "DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PKGNAME=$1
|
||||
PREFIX=${PKG_PREFIX}
|
||||
TTFM=${PKG_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 [ -r $FONTDIR/$PKGNAME ]; then
|
||||
for i in `cat $FONTDIR/$PKGNAME`; do
|
||||
for f in $FONTS; do
|
||||
$TTFM --remove $i $f
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
rm -f $FONTDIR/$PKGNAME
|
||||
|
||||
exit 0
|
20
chinese/ntuttf/pkg-descr
Normal file
20
chinese/ntuttf/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
Date: Thu, 17 Mar 94 14:18:18 CST
|
||||
From: Lin YawJen <f1506015@csman.csie.ntu.edu.tw>
|
||||
|
||||
HISTORY======
|
||||
I had written a program to convert fonts from large bitmap into TrueTypefor
|
||||
MS-Windows. For Mac, see ifcss.org:/software/fonts/mac/ the bitmaps came
|
||||
from DYNAFONT (Hua2 Kang1) and ETen..
|
||||
This is the critical point of this product.
|
||||
|
||||
|
||||
COPYRIGHT=========
|
||||
These fonts are created by Mr. Lin Yaw-JenAll Right reserved.
|
||||
These fonts must not be used for any commercial activities.
|
||||
|
||||
Lab of OA Network
|
||||
Home: 4F, No. 12-2 Alley 2 Lane 250 Sec 5 Nanking East Rd.
|
||||
Department of Computer Science and Information Engineering
|
||||
Taipei Taiwan R.O.C National Taiwan University
|
||||
Tel: 886-2-7641236 Taipei Taiwan R.O.C
|
||||
Fax: 886-2-760184 Email: f1506015@csman.csie.ntu.edu.tw
|
39
chinese/ntuttf/pkg-install
Normal file
39
chinese/ntuttf/pkg-install
Normal file
@ -0,0 +1,39 @@
|
||||
#!/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
|
9
chinese/ntuttf/pkg-plist
Normal file
9
chinese/ntuttf/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
share/fonts/TrueType/NTU_FS_M.TTF
|
||||
share/fonts/TrueType/NTU_KAI.TTF
|
||||
share/fonts/TrueType/NTU_LI_M.TTF
|
||||
share/fonts/TrueType/NTU_MB.TTF
|
||||
share/fonts/TrueType/NTU_MM.TTF
|
||||
share/fonts/TrueType/NTU_MR.TTF
|
||||
share/fonts/TrueType/NTU_TW.TTF
|
||||
@unexec rmdir %D/share/fonts/TrueType 2>/dev/null || true
|
||||
@unexec rmdir %D/share/fonts 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user