pkgsrc/fonts/jisx0212fonts/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.18 2008/03/03 20:17:12 jlam Exp $
2000-04-09 17:19:30 +02:00
DISTNAME= jisx0212fonts-0.0
PKGREVISION= 2
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/ \
2000-04-09 17:19:30 +02:00
http://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
PKG_DESTDIR_SUPPORT= user-destdir
2000-04-09 17:19:30 +02:00
USE_X11BASE= yes
WRKSRC= ${WRKDIR}
2000-04-09 17:19:30 +02:00
EXTRACT_ONLY= ${DISTFILES}
FONTS= ${DISTFILES:C/\.bdf.*$//}
FONTDIR= ${PREFIX}/lib/X11/fonts/local
FONTS_DIRS.x11= ${FONTDIR}
2000-04-09 17:19:30 +02:00
USE_TOOLS+= gzip gunzip
# 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 \
${X11BASE}/bin/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"