# $OpenBSD: Makefile,v 1.14 2011/07/19 09:28:36 jasper Exp $ COMMENT= converts Japanese fonts in PostScript documents CATEGORIES=japanese print fonts DISTNAME=kanjips PKGNAME=${DISTNAME}-19900310 MASTER_SITES=ftp://ftp.funet.fi/pub/culture/japan/unix/ MASTER_SITES0=ftp://ftp.funet.fi/pub/culture/japan/fonts/ DISTFILES=kanjips.tar.Z jis32.Z:0 jis48.Z:0 # Freeware EXTRACT_ONLY=kanjips.tar.Z PERMIT_PACKAGE_CDROM= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= c m MAINTAINER= Marc Espie MAKE_FLAGS= CFLAGS='${CFLAGS} -I..' ALL_TARGET= kanjips WRKSRC= ${WRKDIST}/kanjips USE_GROFF = Yes post-extract: zcat ${FULLDISTDIR}/jis32.Z >${WRKDIST}/jis32 zcat ${FULLDISTDIR}/jis48.Z >${WRKDIST}/jis48 do-configure: cd ${WRKDIST} && awk '{print $$1}' < MANIFEST |grep '\.SH' >todo cd ${WRKDIST} && perl -pi.bak ${FILESDIR}/add-quotes `cat todo` cp ${FILESDIR}/config.sh ${WRKDIST} cd ${WRKDIST}; PATH=.:$$PATH; for i in `cat todo`; do /bin/sh $$i; done cd ${WRKDIST} && perl -pi.bak ${FILESDIR}/remove-quotes \ `sed