provide a few subtitle fonts, built from standard X11 TTF fonts.
This commit is contained in:
parent
6865e8b27d
commit
5433662652
45
x11/mplayer-fonts/Makefile
Normal file
45
x11/mplayer-fonts/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2002/05/28 11:51:02 espie Exp $
|
||||
|
||||
COMMENT='subtitle font for mplayer'
|
||||
CATEGORIES=x11
|
||||
BUILD_DEPENDS=::x11/mplayer-fontmaker
|
||||
RUN_DEPENDS=::x11/mplayer
|
||||
|
||||
FLAVORS=luxi-sans luxi-sans-bold luxi-sans-italic
|
||||
FLAVOR?=luxi-sans
|
||||
|
||||
DIR=${X11BASE}/lib/X11/fonts/TTF
|
||||
.if ${FLAVOR:L:Mluxi-sans}
|
||||
NAME=luxi-sans
|
||||
FONT=luxisr
|
||||
.elif ${FLAVOR:L:Mluxi-sans-bold}
|
||||
NAME=luxi-sans-bold
|
||||
FONT=luxisb
|
||||
.elif ${FLAVOR:L:Mluxi-sans-italic}
|
||||
NAME=luxi-sans-italic
|
||||
FONT=luxisri
|
||||
.endif
|
||||
|
||||
DISTFILES=
|
||||
EXTRACT_ONLY=
|
||||
DISTNAME=mplayer-font-0.90pre4
|
||||
FULLPKGNAME=mplayer-${NAME}-0.90pre4
|
||||
|
||||
do-build:
|
||||
cd ${WRKBUILD} && mksubfont ${DIR}/${FONT}.ttf
|
||||
|
||||
FILES=ISO-8859-1-a.raw ISO-8859-1-b.raw font.desc \
|
||||
osd-encoding-a.raw osd-encoding-b.raw
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/${FONT}
|
||||
cd ${WRKBUILD}/${FONT} && ${INSTALL_DATA} ${FILES} ${PREFIX}/share/mplayer/${FONT}
|
||||
|
||||
PERMIT_PACKAGE_CDROM=Yes
|
||||
PERMIT_PACKAGE_FTP=Yes
|
||||
PERMIT_DISTFILES_CDROM=Yes
|
||||
PERMIT_DISTFILES_FTP=Yes
|
||||
|
||||
SUBST_VARS+=FONT
|
||||
|
||||
.include <bsd.port.mk>
|
1
x11/mplayer-fonts/pkg/DESCR
Normal file
1
x11/mplayer-fonts/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
Font needed for mplayer subtitle handling
|
9
x11/mplayer-fonts/pkg/PLIST
Normal file
9
x11/mplayer-fonts/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/05/28 11:51:02 espie Exp $
|
||||
share/mplayer/${FONT}/ISO-8859-1-a.raw
|
||||
share/mplayer/${FONT}/ISO-8859-1-b.raw
|
||||
share/mplayer/${FONT}/font.desc
|
||||
share/mplayer/${FONT}/osd-encoding-a.raw
|
||||
share/mplayer/${FONT}/osd-encoding-b.raw
|
||||
@exec cd %B && cd .. && ln -sf ${FONT} font
|
||||
@unexec cd %B && cd .. && rm -f font
|
||||
@dirrm share/mplayer/${FONT}
|
Loading…
x
Reference in New Issue
Block a user