2008-03-03 21:17:11 +01:00
|
|
|
# $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
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2000-05-27 16:28:17 +02:00
|
|
|
CATEGORIES= fonts x11 japanese
|
2007-11-12 00:49:14 +01:00
|
|
|
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/
|
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
|
|
|
|
2008-03-03 21:17:11 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2000-04-09 17:19:30 +02:00
|
|
|
USE_X11BASE= yes
|
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.*$//}
|
|
|
|
FONTDIR= ${PREFIX}/lib/X11/fonts/local
|
2005-12-29 08:04:27 +01:00
|
|
|
FONTS_DIRS.x11= ${FONTDIR}
|
2000-04-09 17:19:30 +02:00
|
|
|
|
2005-07-15 20:27:48 +02:00
|
|
|
USE_TOOLS+= gzip gunzip
|
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 \
|
|
|
|
${X11BASE}/bin/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"
|