2017-08-01 16:58:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.24 2017/08/01 14:58:58 wiz Exp $
|
2000-04-09 17:19:30 +02:00
|
|
|
|
|
|
|
DISTNAME= jisx0212fonts-0.0
|
2014-06-01 18:35:31 +02:00
|
|
|
PKGREVISION= 3
|
2000-05-27 16:28:17 +02:00
|
|
|
CATEGORIES= fonts x11 japanese
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= ftp://ftp.jp.NetBSD.org/pub/NetBSD-jp/tut-jp/fonts/
|
2017-08-01 16:58:51 +02:00
|
|
|
MASTER_SITES+= https://www.freebsd.org/~itojun/distfiles/
|
2004-02-26 09:15:27 +01:00
|
|
|
DISTFILES= jisksp14.bdf.gz jisksp16-1990.bdf.Z min-1-24.bdf.gz \
|
|
|
|
jisksp40.bdf.Z
|
2000-04-09 17:19:30 +02:00
|
|
|
|
2007-11-12 01:10:09 +01:00
|
|
|
MAINTAINER= uebayasi@NetBSD.org
|
2004-02-26 09:15:27 +01:00
|
|
|
COMMENT= X11 bitmap fonts for JIS X 0212
|
2000-04-09 17:19:30 +02:00
|
|
|
|
2004-02-26 09:15:27 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-04-09 17:19:30 +02:00
|
|
|
EXTRACT_ONLY= ${DISTFILES}
|
|
|
|
|
2004-02-26 09:15:27 +01:00
|
|
|
FONTS= ${DISTFILES:C/\.bdf.*$//}
|
2014-06-01 18:35:31 +02:00
|
|
|
FONTDIR= ${PREFIX}/share/fonts/X11/local
|
2005-12-29 08:04:27 +01:00
|
|
|
FONTS_DIRS.x11= ${FONTDIR}
|
2000-04-09 17:19:30 +02:00
|
|
|
|
2013-06-05 15:47:51 +02:00
|
|
|
USE_TOOLS+= gzip gunzip bdftopcf
|
2005-05-16 00:02:26 +02:00
|
|
|
|
2004-02-26 09:15:27 +01:00
|
|
|
# XXX Can we assume that ${GUNZIP_CMD} can extract .Z files?
|
2000-04-09 17:19:30 +02:00
|
|
|
do-extract:
|
2006-09-06 11:50:25 +02:00
|
|
|
for f in ${DISTFILES}; do \
|
|
|
|
gunzip -c ${DISTDIR}/$${f} >${WRKSRC}/$${f%.*}; \
|
2004-02-26 09:15:27 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
do-build:
|
2006-09-06 11:50:25 +02:00
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC}; \
|
2004-02-26 09:15:27 +01:00
|
|
|
for f in ${FONTS}; do \
|
2013-06-05 15:47:51 +02:00
|
|
|
bdftopcf $${f}.bdf | \
|
2006-09-06 11:50:25 +02:00
|
|
|
gzip -c >$${f}.pcf.gz; \
|
2004-02-26 09:15:27 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
2008-03-03 21:17:11 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${FONTDIR}
|
2006-09-06 11:50:25 +02:00
|
|
|
set -e; \
|
|
|
|
for f in ${FONTS}; do \
|
2008-03-03 21:17:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${f}.pcf.gz ${DESTDIR}${FONTDIR}; \
|
2000-04-09 17:19:30 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|