pkgsrc/fonts/jisx0212fonts/Makefile

45 lines
1 KiB
Makefile
Raw Normal View History

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
PKGREVISION= 3
2000-05-27 16:28:17 +02:00
CATEGORIES= fonts x11 japanese
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/
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
COMMENT= X11 bitmap fonts for JIS X 0212
2000-04-09 17:19:30 +02:00
WRKSRC= ${WRKDIR}
2000-04-09 17:19:30 +02:00
EXTRACT_ONLY= ${DISTFILES}
FONTS= ${DISTFILES:C/\.bdf.*$//}
FONTDIR= ${PREFIX}/share/fonts/X11/local
FONTS_DIRS.x11= ${FONTDIR}
2000-04-09 17:19:30 +02:00
USE_TOOLS+= gzip gunzip bdftopcf
# 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%.*}; \
done
do-build:
2006-09-06 11:50:25 +02:00
set -e; \
cd ${WRKSRC}; \
for f in ${FONTS}; do \
bdftopcf $${f}.bdf | \
2006-09-06 11:50:25 +02:00
gzip -c >$${f}.pcf.gz; \
done
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${FONTDIR}
2006-09-06 11:50:25 +02:00
set -e; \
for f in ${FONTS}; do \
${INSTALL_DATA} ${WRKSRC}/$${f}.pcf.gz ${DESTDIR}${FONTDIR}; \
2000-04-09 17:19:30 +02:00
done
.include "../../mk/bsd.pkg.mk"