1999-09-03 16:03:03 +00:00
|
|
|
# New ports collection makefile for: baekmuk fonts(x11)
|
|
|
|
# Date created: 23 Jul 1999
|
|
|
|
# Whom: CHOI Junho <cjh@kr.freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 09:17:26 +00:00
|
|
|
PORTNAME= baekmukfonts
|
|
|
|
PORTVERSION= 2.0
|
2000-09-25 12:52:56 +00:00
|
|
|
PORTREVISION= 1
|
1999-09-03 16:03:03 +00:00
|
|
|
CATEGORIES= korean x11-fonts
|
2000-09-03 13:05:40 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mizi.com/pub/baekmuk/ \
|
2000-09-25 12:52:56 +00:00
|
|
|
http://zinc.skku.ac.kr/~wkpark/baekmuk/
|
2000-04-13 09:17:26 +00:00
|
|
|
PKGNAMESUFFIX= -bdf
|
|
|
|
DISTNAME= baekmuk-${PORTVERSION}
|
2000-09-03 13:05:40 +00:00
|
|
|
DISTFILES= baekmuk-${PORTVERSION}${EXTRACT_SUFX} \
|
2000-09-25 12:52:56 +00:00
|
|
|
gulim10.bdf.gz gulim10b.bdf.gz
|
2000-09-03 13:05:40 +00:00
|
|
|
EXTRACT_ONLY= baekmuk-${PORTVERSION}${EXTRACT_SUFX}
|
1999-09-03 16:03:03 +00:00
|
|
|
|
2000-09-03 13:05:40 +00:00
|
|
|
MAINTAINER= cjh@freebsd.org
|
1999-09-03 16:03:03 +00:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
2000-09-12 11:08:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${XFREE86_VERSION} == 4
|
2000-09-14 19:22:08 +00:00
|
|
|
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
|
2000-09-12 11:08:05 +00:00
|
|
|
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
|
|
|
|
.endif
|
|
|
|
|
1999-09-03 16:03:03 +00:00
|
|
|
FONTLIST= batang10 batang10b batang12 batang12b batang14 batang14b \
|
|
|
|
batang16 batang16b batang18 batang18b batang20 batang20b \
|
|
|
|
batang24 batang24b \
|
|
|
|
dotum10 dotum12 dotum14 dotum16 dotum18 dotum20 dotum24 \
|
|
|
|
gulim10 gulim10b gulim12 gulim12b gulim14 gulim14b gulim16 \
|
|
|
|
gulim16b gulim18 gulim18b gulim20 gulim20b gulim24 gulim24b \
|
|
|
|
hline10 hline12 hline14 hline16 hline18 hline20 hline24
|
|
|
|
|
2000-09-03 13:05:40 +00:00
|
|
|
FONTLIST_MANUAL = gulim10 gulim10b
|
|
|
|
|
1999-09-03 16:03:03 +00:00
|
|
|
BDFTOPCF= ${PREFIX}/bin/bdftopcf
|
|
|
|
MKFONTDIR= ${PREFIX}/bin/mkfontdir
|
2000-01-29 21:58:54 +00:00
|
|
|
CHARSETSUB= s/ksx1001.1997/ksc5601.1987/g
|
|
|
|
FONTSDIR= lib/X11/fonts/local
|
|
|
|
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
|
|
|
PLIST_SUB= FONTSDIR=${FONTSDIR}
|
1999-09-03 16:03:03 +00:00
|
|
|
|
2000-09-25 12:52:56 +00:00
|
|
|
# manually install hinted fonts
|
|
|
|
do-configure:
|
|
|
|
.for FONTNAME in ${FONTLIST_MANUAL}
|
|
|
|
${GZIP_CMD} -cd ${_DISTDIR}/${FONTNAME}.bdf.gz \
|
|
|
|
> ${WRKDIR}/${FONTNAME}.bdf
|
|
|
|
.endfor
|
|
|
|
|
2000-01-29 21:58:54 +00:00
|
|
|
# change charset to ksc5601.1987...
|
1999-09-03 16:03:03 +00:00
|
|
|
do-build:
|
|
|
|
.for FONTNAME in ${FONTLIST}
|
2000-09-03 13:05:40 +00:00
|
|
|
${PERL} -pi -e ${CHARSETSUB} ${WRKDIR}/${FONTNAME}.bdf
|
1999-09-03 16:03:03 +00:00
|
|
|
${BDFTOPCF} ${WRKDIR}/${FONTNAME}.bdf | ${GZIP_CMD} -c \
|
|
|
|
> ${WRKDIR}/${FONTNAME}.pcf.gz
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2000-01-29 21:58:54 +00:00
|
|
|
-mkdir -p ${PREFIX}/${FONTSDIR}
|
1999-09-03 16:03:03 +00:00
|
|
|
.for FONTNAME in ${FONTLIST}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${FONTNAME}.pcf.gz \
|
2000-01-29 21:58:54 +00:00
|
|
|
${PREFIX}/${FONTSDIR}
|
1999-09-03 16:03:03 +00:00
|
|
|
.endfor
|
2000-01-29 21:58:54 +00:00
|
|
|
@(cd ${PREFIX}/${FONTSDIR} && mkfontdir .)
|
1999-09-03 16:03:03 +00:00
|
|
|
|
2000-09-12 11:08:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|