# New ports collection makefile for:	big5fonts
# Version required:	1.0
# Date created:		1 Oct 1997
# Whom:			itojun@itojun.org
#
# $Id: Makefile,v 1.5 1998/08/07 22:43:12 asami Exp $
#

DISTNAME=	zh-big5fonts-1.0
CATEGORIES=	chinese x11-fonts
MASTER_SITES=	ftp://ftp.etl.go.jp/pub/mule/fonts/chinese/
DISTFILES?=	taipei16.bdf.gz taipei24.bdf.gz

MAINTAINER=	itojun@itojun.org

USE_X_PREFIX=	yes
USE_GMAKE=	yes
NO_WRKSUBDIR=	yes
DIST_SUBDIR=	zh-fonts
EXTRACT_ONLY=	${DISTFILES}
MAKE_ENV+=	DISTDIR=${DISTDIR} DISTFILES="${DISTFILES}"

do-extract:
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKDIR}
	@for file in ${EXTRACT_ONLY}; do \
		if ! (cd ${WRKDIR} && \
			${GUNZIP_CMD} -c < ${_DISTDIR}/$$file > `echo $$file | ${SED} -e 's/\.Z//' -e 's/\.gz//'`); then \
			exit 1; \
		fi; \
	done

.include <bsd.port.mk>
