diff --git a/x11/mplayer-fonts/Makefile b/x11/mplayer-fonts/Makefile new file mode 100644 index 00000000000..cef113597d4 --- /dev/null +++ b/x11/mplayer-fonts/Makefile @@ -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 diff --git a/x11/mplayer-fonts/pkg/DESCR b/x11/mplayer-fonts/pkg/DESCR new file mode 100644 index 00000000000..964de3ee886 --- /dev/null +++ b/x11/mplayer-fonts/pkg/DESCR @@ -0,0 +1 @@ +Font needed for mplayer subtitle handling diff --git a/x11/mplayer-fonts/pkg/PLIST b/x11/mplayer-fonts/pkg/PLIST new file mode 100644 index 00000000000..b8959346d6e --- /dev/null +++ b/x11/mplayer-fonts/pkg/PLIST @@ -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}