openbsd-ports/korean/hanterm-fonts/Makefile
2002-03-21 20:57:06 +00:00

38 lines
980 B
Makefile

# $OpenBSD: Makefile,v 1.2 2002/03/21 20:57:09 espie Exp $
COMMENT= "extra Korean fonts"
PKGNAME= hanterm-fonts-3.1
DISTNAME= hanterm-font-3.1
CATEGORIES= korean x11
NEED_VERSION= 1.515
MASTER_SITES= http://hanterm.org/download/font/
HOMEPAGE= http://hanterm.org/
MAINTAINER= Dug Song <dugsong@monkey.org>
PERMIT_PACKAGE_CDROM= yes
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= yes
PERMIT_DISTFILES_FTP= yes
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
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>