2007-09-15 20:33:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2007/09/16 00:33:57 merdely Exp $
|
2001-05-05 21:11:37 -04:00
|
|
|
|
2007-09-15 20:33:56 -04:00
|
|
|
COMMENT= converts Japanese fonts in PostScript documents
|
2000-04-22 19:42:40 -04:00
|
|
|
|
|
|
|
CATEGORIES=japanese print
|
|
|
|
|
|
|
|
DISTNAME=kanjips
|
2001-04-19 06:41:14 -04:00
|
|
|
PKGNAME=${DISTNAME}-19900310
|
2000-04-22 19:42:40 -04:00
|
|
|
|
|
|
|
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
|
2005-02-22 08:52:25 -05:00
|
|
|
WANTLIB= c m
|
2000-04-22 19:42:40 -04:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
2000-04-22 19:42:40 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS= CFLAGS='${CFLAGS} -I..'
|
|
|
|
ALL_TARGET= kanjips
|
|
|
|
WRKSRC= ${WRKDIST}/kanjips
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
zcat ${FULLDISTDIR}/jis32.Z >${WRKDIST}/jis32
|
|
|
|
zcat ${FULLDISTDIR}/jis48.Z >${WRKDIST}/jis48
|
2000-06-10 21:53:45 -04:00
|
|
|
|
2000-04-22 19:42:40 -04:00
|
|
|
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 <todo -e 's,.SH,,'`
|
|
|
|
|
2002-10-26 20:52:43 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2000-04-22 19:42:40 -04:00
|
|
|
FONTDIR=${PREFIX}/share/kanjips_font
|
|
|
|
DOCDIR=${PREFIX}/share/doc/kanjips
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kanjips ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${FONTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/jis24 ${FONTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/jis32 ${FONTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/jis48 ${FONTDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/jenscript/jenscript ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/mp/mp ${PREFIX}/bin/mp-j
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}/kanjips.readme
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/jenscript/README ${DOCDIR}/jenscript.readme
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/mp/README ${DOCDIR}/mp-j.readme
|
2000-04-23 11:43:17 -04:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/jenscript.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/kanjips.1 ${PREFIX}/man/man1
|
2000-04-22 19:42:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|