openbsd-ports/fonts/ko-baekmuk-fonts/Makefile
jasper 8fcc52ea43 Start moving korean and japanese fonts to fonts/, with package names adjusted to
their lang prefix.

this and other fonts/ commits eyeballed by and feedback from aja@ and sthen@
2011-07-19 09:13:19 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/07/19 09:13:19 jasper Exp $
COMMENT= extra Korean fonts
V= 2.0
DISTNAME= baekmuk-${V}
PKGNAME= ko-baekmuk-fonts-${V}
REVISION= 1
CATEGORIES= fonts korean x11
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/FreeBSD/distfiles/ \
ftp://ftp.mizi.com/pub/baekmuk/
HOMEPAGE= http://www.mizi.co.kr
MAINTAINER= Jung <moorang@gmail.com>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# bdftopcf, mkfontdir
FONTDIR=${PREFIX}/lib/X11/fonts/korean
WRKDIST=${WRKDIR}
do-build:
cd ${WRKDIR}; \
for file in *.bdf; do \
font=`basename $$file .bdf`; \
${X11BASE}/bin/bdftopcf -t $$file | gzip > $$font.pcf.gz; \
done
${X11BASE}/bin/mkfontdir ${WRKDIR}
egrep '\.pcf\.gz' ${WRKSRC}/fonts.dir | \
sed 's/\.pcf\.gz//g' > ${WRKSRC}/fonts.alias
NO_REGRESS= Yes
do-install:
${INSTALL_DATA_DIR} ${FONTDIR}
${INSTALL_DATA} ${WRKDIR}/*.pcf.gz ${FONTDIR}
${INSTALL_DATA} ${WRKDIR}/fonts.alias ${FONTDIR}/fonts.alias-baekmuk
.include <bsd.port.mk>