summaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-07-06 23:35:18 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-07-06 23:35:18 +0000
commitb287f1341fc5e2ad45c2b89e9bfa03cb3f4a86ee (patch)
tree79feab1964e7b2f046f463fa03bb4bee81ca498a /korean
parentUpdate to 5.4.7-1 (diff)
Add mplayer-fonts 1.0,
Korean font pack for the mplayer OSD, SUB and SMI. PR: 39321 Submitted by: me
Notes
Notes: svn path=/head/; revision=62535
Diffstat (limited to 'korean')
-rw-r--r--korean/Makefile1
-rw-r--r--korean/mplayer-fonts/Makefile86
-rw-r--r--korean/mplayer-fonts/distinfo4
-rw-r--r--korean/mplayer-fonts/pkg-comment1
-rw-r--r--korean/mplayer-fonts/pkg-descr7
-rw-r--r--korean/mplayer-fonts/pkg-message8
-rw-r--r--korean/mplayer-fonts/pkg-plist123
7 files changed, 230 insertions, 0 deletions
diff --git a/korean/Makefile b/korean/Makefile
index 08c9baee1966..594b2ab03d9b 100644
--- a/korean/Makefile
+++ b/korean/Makefile
@@ -54,6 +54,7 @@
SUBDIR += mizifont
SUBDIR += mkisofs
SUBDIR += mozilla-klp
+ SUBDIR += mplayer-fonts
SUBDIR += msdosfs
SUBDIR += mule-freewnn
SUBDIR += munhwafonts-cid
diff --git a/korean/mplayer-fonts/Makefile b/korean/mplayer-fonts/Makefile
new file mode 100644
index 000000000000..985e3c57cb3d
--- /dev/null
+++ b/korean/mplayer-fonts/Makefile
@@ -0,0 +1,86 @@
+# New ports collection makefile for: ko-mplayer-fonts
+# Date created: 17 June 2002
+# Whom: Hye-Shik Chang
+#
+# $FreeBSD$
+
+PORTNAME= mplayer-fonts
+PORTVERSION= 1.0
+CATEGORIES= korean graphics
+MASTER_SITES= http://ftp.mplayerhq.hu/MPlayer/releases/ \
+ http://www.mplayerhq.hu/MPlayer/releases/ \
+ http://www2.mplayerhq.hu/MPlayer/releases/ \
+ http://fallin.lv/distfiles/:fontmap \
+ http://www.yonsei.ac.kr/yu/intro/symbol/:yonsei
+DISTFILES= ${MPLAYER_DISTNAME}.tar.bz2 \
+ mplayer-fontmap-euc-kr.tar.bz2:fontmap \
+ ${YONSEI_TITLE_DISTNAME}:yonsei \
+ ${YONSEI_TEXT_DISTNAME}:yonsei
+EXTRACT_ONLY= ${MPLAYER_DISTNAME}.tar.bz2 mplayer-fontmap-euc-kr.tar.bz2
+
+MAINTAINER= perky@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/converters/libiconv \
+ ${FREETYPE_CONFIG}:${PORTSDIR}/print/freetype2 \
+ ${BAEKMUK_FONTDIR}/gulim.ttf:${PORTSDIR}/korean/baekmukfonts-ttf
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/${MPLAYER_DISTNAME}/TOOLS/subfont-c
+PLIST_SUB+= MF=${MPLAYER_FONTDIR:S,${LOCALBASE}/,,g}
+
+MPLAYER_DISTNAME= MPlayer-0.90pre5
+MPLAYER_FONTDIR= ${LOCALBASE}/share/mplayer/fonts/korean
+FREETYPE_CONFIG= ${LOCALBASE}/bin/freetype-config
+
+BAEKMUK_FONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
+BAEKMUK_FONTS= gulim dotum batang
+YONSEI_TITLE_DISTNAME= %BF%AC%BC%BC%C1%A6%B8%F1.TTF
+YONSEI_TEXT_DISTNAME= %BF%AC%BC%BC%BA%BB%B9%AE.TTF
+YONSEI_TITLE_FONTNAME= YonseiTitle
+YONSEI_TEXT_FONTNAME= YonseiText
+ALL_FONTS= ${BAEKMUK_FONTS} ${YONSEI_TITLE_FONTNAME} \
+ ${YONSEI_TEXT_FONTNAME}
+FONT_SIZES= 12 16 20 24
+
+post-extract:
+ @${LN} -sf ${DISTDIR}/${YONSEI_TITLE_DISTNAME} \
+ ${WRKSRC}/${YONSEI_TITLE_FONTNAME}.ttf
+ @${LN} -sf ${DISTDIR}/${YONSEI_TEXT_DISTNAME} \
+ ${WRKSRC}/${YONSEI_TEXT_FONTNAME}.ttf
+.for fn in ${BAEKMUK_FONTS}
+ @${LN} -sf ${BAEKMUK_FONTDIR}/${fn}.ttf ${WRKSRC}/
+.endfor
+ @${LN} -sf ${WRKDIR}/euc-kr ${WRKSRC}/
+
+post-patch:
+ @${ECHO_CMD} -e 'LDFLAGS=-lm `${FREETYPE_CONFIG} --libs` -liconv \
+ -L${LOCALBASE}/lib\nCFLAGS=`${FREETYPE_CONFIG} --cflags` \
+ -I${LOCALBASE}/include\nPROG=subfont\nNOMAN=yes\
+ \n.include <bsd.prog.mk>' > ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's,^encoding.*,encoding=euc-kr,;\
+ s,^fontsize.*,fontsize=\$$3,;\
+ s,^symbolssize.*,symbolssize=\$$((\$$fontsize-2)),' \
+ ${WRKSRC}/fontgen
+
+post-build:
+.for font in ${ALL_FONTS}
+.for size in ${FONT_SIZES}
+ cd ${WRKSRC} && ${SH} fontgen ${font}.ttf ${font}-${size} ${size} \
+ 2> /dev/null
+.endfor
+.endfor
+
+do-install:
+ @${MKDIR} ${MPLAYER_FONTDIR}
+.for font in ${ALL_FONTS}
+.for size in ${FONT_SIZES}
+ @${TAR} -C ${WRKSRC} -cpf - ${font}-${size} | \
+ ${TAR} -C ${MPLAYER_FONTDIR} -xpf -
+.endfor
+.endfor
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/korean/mplayer-fonts/distinfo b/korean/mplayer-fonts/distinfo
new file mode 100644
index 000000000000..cf1d85c5003a
--- /dev/null
+++ b/korean/mplayer-fonts/distinfo
@@ -0,0 +1,4 @@
+MD5 (MPlayer-0.90pre5.tar.bz2) = e5655c304af41b23701653eb7a810d3f
+MD5 (mplayer-fontmap-euc-kr.tar.bz2) = bf9621e693150ab8990f2645458d53cc
+MD5 (%BF%AC%BC%BC%C1%A6%B8%F1.TTF) = ec9abb1a75776ed728c69d3d660d93cd
+MD5 (%BF%AC%BC%BC%BA%BB%B9%AE.TTF) = ac5390c120bdd9591153244ac773b0f4
diff --git a/korean/mplayer-fonts/pkg-comment b/korean/mplayer-fonts/pkg-comment
new file mode 100644
index 000000000000..c60de359d720
--- /dev/null
+++ b/korean/mplayer-fonts/pkg-comment
@@ -0,0 +1 @@
+Korean font pack for the mplayer OSD, SUB and SMI
diff --git a/korean/mplayer-fonts/pkg-descr b/korean/mplayer-fonts/pkg-descr
new file mode 100644
index 000000000000..db6684653b44
--- /dev/null
+++ b/korean/mplayer-fonts/pkg-descr
@@ -0,0 +1,7 @@
+This is the port which contains a korean set of the fonts for
+the mplayer on-screen display and the sub title.
+
+In this stage it contains the following fonts:
+
+Baekmuk : gulim, batang, dotum
+Yonsei : YonseiTitle, YonseiText
diff --git a/korean/mplayer-fonts/pkg-message b/korean/mplayer-fonts/pkg-message
new file mode 100644
index 000000000000..ee3370a0e0b1
--- /dev/null
+++ b/korean/mplayer-fonts/pkg-message
@@ -0,0 +1,8 @@
+===========================================================================
+ To use these fonts, add the following line into $HOME/.mplayer/config
+
+ unicode=1
+
+ and make a symbolic link of $PREFIX/share/mplayer/fonts/korean/${FONT}
+ as $HOME/.mplayer/font
+===========================================================================
diff --git a/korean/mplayer-fonts/pkg-plist b/korean/mplayer-fonts/pkg-plist
new file mode 100644
index 000000000000..3640f23da396
--- /dev/null
+++ b/korean/mplayer-fonts/pkg-plist
@@ -0,0 +1,123 @@
+%%MF%%/YonseiText-12/euc-kr-a.raw
+%%MF%%/YonseiText-12/euc-kr-b.raw
+%%MF%%/YonseiText-12/font.desc
+%%MF%%/YonseiText-12/osd-mplayer-a.raw
+%%MF%%/YonseiText-12/osd-mplayer-b.raw
+%%MF%%/YonseiText-16/euc-kr-a.raw
+%%MF%%/YonseiText-16/euc-kr-b.raw
+%%MF%%/YonseiText-16/font.desc
+%%MF%%/YonseiText-16/osd-mplayer-a.raw
+%%MF%%/YonseiText-16/osd-mplayer-b.raw
+%%MF%%/YonseiText-20/euc-kr-a.raw
+%%MF%%/YonseiText-20/euc-kr-b.raw
+%%MF%%/YonseiText-20/font.desc
+%%MF%%/YonseiText-20/osd-mplayer-a.raw
+%%MF%%/YonseiText-20/osd-mplayer-b.raw
+%%MF%%/YonseiText-24/euc-kr-a.raw
+%%MF%%/YonseiText-24/euc-kr-b.raw
+%%MF%%/YonseiText-24/font.desc
+%%MF%%/YonseiText-24/osd-mplayer-a.raw
+%%MF%%/YonseiText-24/osd-mplayer-b.raw
+%%MF%%/YonseiTitle-12/euc-kr-a.raw
+%%MF%%/YonseiTitle-12/euc-kr-b.raw
+%%MF%%/YonseiTitle-12/font.desc
+%%MF%%/YonseiTitle-12/osd-mplayer-a.raw
+%%MF%%/YonseiTitle-12/osd-mplayer-b.raw
+%%MF%%/YonseiTitle-16/euc-kr-a.raw
+%%MF%%/YonseiTitle-16/euc-kr-b.raw
+%%MF%%/YonseiTitle-16/font.desc
+%%MF%%/YonseiTitle-16/osd-mplayer-a.raw
+%%MF%%/YonseiTitle-16/osd-mplayer-b.raw
+%%MF%%/YonseiTitle-20/euc-kr-a.raw
+%%MF%%/YonseiTitle-20/euc-kr-b.raw
+%%MF%%/YonseiTitle-20/font.desc
+%%MF%%/YonseiTitle-20/osd-mplayer-a.raw
+%%MF%%/YonseiTitle-20/osd-mplayer-b.raw
+%%MF%%/YonseiTitle-24/euc-kr-a.raw
+%%MF%%/YonseiTitle-24/euc-kr-b.raw
+%%MF%%/YonseiTitle-24/font.desc
+%%MF%%/YonseiTitle-24/osd-mplayer-a.raw
+%%MF%%/YonseiTitle-24/osd-mplayer-b.raw
+%%MF%%/batang-12/euc-kr-a.raw
+%%MF%%/batang-12/euc-kr-b.raw
+%%MF%%/batang-12/font.desc
+%%MF%%/batang-12/osd-mplayer-a.raw
+%%MF%%/batang-12/osd-mplayer-b.raw
+%%MF%%/batang-16/euc-kr-a.raw
+%%MF%%/batang-16/euc-kr-b.raw
+%%MF%%/batang-16/font.desc
+%%MF%%/batang-16/osd-mplayer-a.raw
+%%MF%%/batang-16/osd-mplayer-b.raw
+%%MF%%/batang-20/euc-kr-a.raw
+%%MF%%/batang-20/euc-kr-b.raw
+%%MF%%/batang-20/font.desc
+%%MF%%/batang-20/osd-mplayer-a.raw
+%%MF%%/batang-20/osd-mplayer-b.raw
+%%MF%%/batang-24/euc-kr-a.raw
+%%MF%%/batang-24/euc-kr-b.raw
+%%MF%%/batang-24/font.desc
+%%MF%%/batang-24/osd-mplayer-a.raw
+%%MF%%/batang-24/osd-mplayer-b.raw
+%%MF%%/dotum-12/euc-kr-a.raw
+%%MF%%/dotum-12/euc-kr-b.raw
+%%MF%%/dotum-12/font.desc
+%%MF%%/dotum-12/osd-mplayer-a.raw
+%%MF%%/dotum-12/osd-mplayer-b.raw
+%%MF%%/dotum-16/euc-kr-a.raw
+%%MF%%/dotum-16/euc-kr-b.raw
+%%MF%%/dotum-16/font.desc
+%%MF%%/dotum-16/osd-mplayer-a.raw
+%%MF%%/dotum-16/osd-mplayer-b.raw
+%%MF%%/dotum-20/euc-kr-a.raw
+%%MF%%/dotum-20/euc-kr-b.raw
+%%MF%%/dotum-20/font.desc
+%%MF%%/dotum-20/osd-mplayer-a.raw
+%%MF%%/dotum-20/osd-mplayer-b.raw
+%%MF%%/dotum-24/euc-kr-a.raw
+%%MF%%/dotum-24/euc-kr-b.raw
+%%MF%%/dotum-24/font.desc
+%%MF%%/dotum-24/osd-mplayer-a.raw
+%%MF%%/dotum-24/osd-mplayer-b.raw
+%%MF%%/gulim-12/euc-kr-a.raw
+%%MF%%/gulim-12/euc-kr-b.raw
+%%MF%%/gulim-12/font.desc
+%%MF%%/gulim-12/osd-mplayer-a.raw
+%%MF%%/gulim-12/osd-mplayer-b.raw
+%%MF%%/gulim-16/euc-kr-a.raw
+%%MF%%/gulim-16/euc-kr-b.raw
+%%MF%%/gulim-16/font.desc
+%%MF%%/gulim-16/osd-mplayer-a.raw
+%%MF%%/gulim-16/osd-mplayer-b.raw
+%%MF%%/gulim-20/euc-kr-a.raw
+%%MF%%/gulim-20/euc-kr-b.raw
+%%MF%%/gulim-20/font.desc
+%%MF%%/gulim-20/osd-mplayer-a.raw
+%%MF%%/gulim-20/osd-mplayer-b.raw
+%%MF%%/gulim-24/euc-kr-a.raw
+%%MF%%/gulim-24/euc-kr-b.raw
+%%MF%%/gulim-24/font.desc
+%%MF%%/gulim-24/osd-mplayer-a.raw
+%%MF%%/gulim-24/osd-mplayer-b.raw
+@dirrm %%MF%%/gulim-24
+@dirrm %%MF%%/gulim-20
+@dirrm %%MF%%/gulim-16
+@dirrm %%MF%%/gulim-12
+@dirrm %%MF%%/dotum-24
+@dirrm %%MF%%/dotum-20
+@dirrm %%MF%%/dotum-16
+@dirrm %%MF%%/dotum-12
+@dirrm %%MF%%/batang-24
+@dirrm %%MF%%/batang-20
+@dirrm %%MF%%/batang-16
+@dirrm %%MF%%/batang-12
+@dirrm %%MF%%/YonseiTitle-24
+@dirrm %%MF%%/YonseiTitle-20
+@dirrm %%MF%%/YonseiTitle-16
+@dirrm %%MF%%/YonseiTitle-12
+@dirrm %%MF%%/YonseiText-24
+@dirrm %%MF%%/YonseiText-20
+@dirrm %%MF%%/YonseiText-16
+@dirrm %%MF%%/YonseiText-12
+@dirrm %%MF%%
+@unexec rmdir %D/share/mplayer/fonts 2>/dev/null || true
+@unexec rmdir %D/share/mplayer 2>/dev/null || true