Add mplayer-fonts 1.0,
Korean font pack for the mplayer OSD, SUB and SMI. PR: 39321 Submitted by: me
This commit is contained in:
parent
f1460b6c2d
commit
b287f1341f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62535
@ -54,6 +54,7 @@
|
||||
SUBDIR += mizifont
|
||||
SUBDIR += mkisofs
|
||||
SUBDIR += mozilla-klp
|
||||
SUBDIR += mplayer-fonts
|
||||
SUBDIR += msdosfs
|
||||
SUBDIR += mule-freewnn
|
||||
SUBDIR += munhwafonts-cid
|
||||
|
86
korean/mplayer-fonts/Makefile
Normal file
86
korean/mplayer-fonts/Makefile
Normal file
@ -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>
|
4
korean/mplayer-fonts/distinfo
Normal file
4
korean/mplayer-fonts/distinfo
Normal file
@ -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
|
1
korean/mplayer-fonts/pkg-comment
Normal file
1
korean/mplayer-fonts/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Korean font pack for the mplayer OSD, SUB and SMI
|
7
korean/mplayer-fonts/pkg-descr
Normal file
7
korean/mplayer-fonts/pkg-descr
Normal file
@ -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
|
8
korean/mplayer-fonts/pkg-message
Normal file
8
korean/mplayer-fonts/pkg-message
Normal file
@ -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
|
||||
===========================================================================
|
123
korean/mplayer-fonts/pkg-plist
Normal file
123
korean/mplayer-fonts/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user