openbsd-ports/fonts/ko-hanterm-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

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/07/19 09:13:19 jasper Exp $
COMMENT= extra Korean fonts
PKGNAME= ko-hanterm-fonts-3.1
DISTNAME= hanterm-font-3.1
REVISION= 0
CATEGORIES= fonts korean x11
MASTER_SITES= http://download.kldp.net/hanterm/hanterm-font/3.1/ \
http://hanterm.org/download/font/
HOMEPAGE= http://hanterm.org/
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}/hanterm-font
do-build:
cd ${WRKSRC}; \
for file in 10-6-6/*.bdf 8-4-4/*.bdf; do \
font=`basename $$file .bdf`; \
${X11BASE}/bin/bdftopcf -t $$file | gzip > $$font.pcf.gz; \
done
${X11BASE}/bin/mkfontdir ${WRKSRC}
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} ${WRKBUILD}/*.pcf.gz ${FONTDIR}
${INSTALL_DATA} ${WRKBUILD}/fonts.alias ${FONTDIR}/fonts.alias-hanterm
.include <bsd.port.mk>