1998-11-20 04:15:15 +00:00
|
|
|
# New ports collection makefile for: kon2 with 16dot font
|
1997-07-10 13:15:00 +00:00
|
|
|
# Version required: 0.3
|
|
|
|
# Date created: 11 Apr 1997
|
|
|
|
# Whom: Makoto Matsushita <matusita@jp.freebsd.org>
|
1995-06-24 09:25:17 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1995-06-24 09:25:17 +00:00
|
|
|
#
|
|
|
|
|
1997-07-10 13:15:00 +00:00
|
|
|
DISTNAME= kon2-0.3
|
1998-11-07 14:30:29 +00:00
|
|
|
PKGNAME= ja-kon2-${KONFONT}-0.3
|
1996-11-11 10:13:07 +00:00
|
|
|
CATEGORIES= japanese
|
1995-10-11 00:53:49 +00:00
|
|
|
# note kon is only in first directory and fonts are only in second directory
|
1997-07-10 13:15:00 +00:00
|
|
|
MASTER_SITES= ftp://ftp.tut.ac.jp/Linux/Packages/Utils/ \
|
2000-03-08 15:21:35 +00:00
|
|
|
ftp://ftp.xfree86.org/pub/XFree86/3.3.3/untarred/xc/fonts/bdf/misc/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/X/XFree86/3.3.3/untarred/xc/fonts/bdf/misc/
|
1998-09-26 15:41:21 +00:00
|
|
|
DISTFILES= kon2-0.3.tar.gz \
|
|
|
|
k14.bdf 7x14rk.bdf \
|
|
|
|
jiskan16.bdf 8x16rk.bdf
|
1995-06-24 09:25:17 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= shige@FreeBSD.org
|
1995-06-24 09:25:17 +00:00
|
|
|
|
1999-01-06 05:00:26 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
1996-11-13 12:41:39 +00:00
|
|
|
MAN1= kon.1
|
1998-05-24 03:09:11 +00:00
|
|
|
MANLANG= ja
|
1997-07-10 13:15:00 +00:00
|
|
|
EXTRACT_ONLY= kon2-0.3.tar.gz
|
1995-06-24 09:25:17 +00:00
|
|
|
|
1997-07-10 13:15:00 +00:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/kon2
|
|
|
|
|
1998-09-26 15:41:21 +00:00
|
|
|
.if !defined(KONFONT)
|
1998-11-07 14:30:29 +00:00
|
|
|
KONFONT=16dot
|
1998-09-26 15:41:21 +00:00
|
|
|
KON16FONT=Startup
|
1998-11-20 04:15:15 +00:00
|
|
|
.elif (${KONFONT} == "14dot")
|
|
|
|
KON14FONT=Startup
|
|
|
|
.elif (${KONFONT} != "16dot")
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: \$${KONFONT} (\"${KONFONT}\") should be either \"14dot\" or \"16dot\"."
|
|
|
|
@${FALSE}
|
1998-09-26 15:41:21 +00:00
|
|
|
.endif
|
|
|
|
|
1997-07-10 13:15:00 +00:00
|
|
|
pre-build:
|
1997-07-21 19:21:06 +00:00
|
|
|
${SED} -e 's,%%PREFIX%%,${PREFIX},' \
|
1997-07-10 13:15:00 +00:00
|
|
|
-e 's,%%DISTDIR%%,${DISTDIR},' \
|
1997-07-21 19:21:06 +00:00
|
|
|
${FILESDIR}/dotconfig > ${WRKSRC}/.config
|
1997-07-10 13:15:00 +00:00
|
|
|
@(cd ${WRKSRC}; ${MAKE} -f Makefile.FreeBSD config)
|
1998-09-26 15:41:21 +00:00
|
|
|
@for i in kon.cfg.FreeBSD doc/kon.1; do\
|
|
|
|
${MV} -f ${WRKSRC}/$${i} ${WRKSRC}/$${i}.in ;\
|
|
|
|
${SED} -e "s;@@PREFIX@@;${PREFIX};g" -e "s;@@KON16FONT@@;${KON16FONT};g" -e "s;@@KON14FONT@@;${KON14FONT};g" ${WRKSRC}/$${i}.in > ${WRKSRC}/$${i} ;\
|
|
|
|
done
|
1997-07-10 13:15:00 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-05-24 03:09:11 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja/man1
|
1997-07-10 13:15:00 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README ${WRKSRC}/doc/README.FreeBSD \
|
|
|
|
${DOCDIR}
|
|
|
|
.endif
|
1995-06-24 09:25:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|