openbsd-ports/japanese/kanjips/Makefile

61 lines
1.8 KiB
Makefile
Raw Normal View History

2013-03-11 07:10:51 -04:00
# $OpenBSD: Makefile,v 1.15 2013/03/11 11:12:33 espie Exp $
COMMENT= converts Japanese fonts in PostScript documents
2011-07-19 05:28:36 -04:00
CATEGORIES=japanese print fonts
DISTNAME=kanjips
2001-04-19 06:41:14 -04:00
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
2010-07-25 01:58:31 -04:00
2005-02-22 08:52:25 -05:00
WANTLIB= c m
2000-10-09 20:40:20 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
MAKE_FLAGS= CFLAGS='${CFLAGS} -I..'
ALL_TARGET= kanjips
WRKSRC= ${WRKDIST}/kanjips
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
post-extract:
zcat ${FULLDISTDIR}/jis32.Z >${WRKDIST}/jis32
zcat ${FULLDISTDIR}/jis48.Z >${WRKDIST}/jis48
2000-06-10 21:53:45 -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,,'`
2013-03-11 07:10:51 -04:00
NO_TEST= Yes
2002-10-26 20:52:43 -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
${INSTALL_MAN} ${FILESDIR}/jenscript.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${FILESDIR}/kanjips.1 ${PREFIX}/man/man1
.include <bsd.port.mk>