[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / fonts / jisx0212fonts

File: [cvs.NetBSD.org] / pkgsrc / fonts / jisx0212fonts / Makefile (download)

Revision 1.19, Wed Oct 3 18:28:25 2012 UTC (11 years, 4 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.18: +1 -3 lines

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.19 2012/10/03 18:28:25 asau Exp $

DISTNAME=	jisx0212fonts-0.0
PKGREVISION=	2
CATEGORIES=	fonts x11 japanese
MASTER_SITES=	ftp://ftp.jp.NetBSD.org/pub/NetBSD-jp/tut-jp/fonts/ \
		http://www.freebsd.org/~itojun/distfiles/
DISTFILES=	jisksp14.bdf.gz jisksp16-1990.bdf.Z min-1-24.bdf.gz \
		jisksp40.bdf.Z

MAINTAINER=	uebayasi@NetBSD.org
COMMENT=	X11 bitmap fonts for JIS X 0212

USE_X11BASE=	yes

WRKSRC=		${WRKDIR}
EXTRACT_ONLY=	${DISTFILES}

FONTS=		${DISTFILES:C/\.bdf.*$//}
FONTDIR=	${PREFIX}/lib/X11/fonts/local
FONTS_DIRS.x11=	${FONTDIR}

USE_TOOLS+=	gzip gunzip

# XXX Can we assume that ${GUNZIP_CMD} can extract .Z files?
do-extract:
	for f in ${DISTFILES}; do \
		gunzip -c ${DISTDIR}/$${f} >${WRKSRC}/$${f%.*}; \
	done

do-build:
	set -e; \
	cd ${WRKSRC}; \
	for f in ${FONTS}; do \
		${X11BASE}/bin/bdftopcf $${f}.bdf | \
		gzip -c >$${f}.pcf.gz; \
	done

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${FONTDIR}
	set -e; \
	for f in ${FONTS}; do \
		${INSTALL_DATA} ${WRKSRC}/$${f}.pcf.gz ${DESTDIR}${FONTDIR}; \
	done

.include "../../mk/bsd.pkg.mk"