1998-11-20 05:15:15 +01:00
|
|
|
# New ports collection makefile for: kon2 with 16dot font
|
1997-07-10 15:15:00 +02:00
|
|
|
# Date created: 11 Apr 1997
|
|
|
|
# Whom: Makoto Matsushita <matusita@jp.freebsd.org>
|
1995-06-24 11:25:17 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-06-24 11:25:17 +02:00
|
|
|
#
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
PORTNAME= kon2
|
|
|
|
PORTVERSION= 0.3
|
2004-12-24 04:11:00 +01:00
|
|
|
PORTREVISION= 3
|
2005-03-05 19:30:20 +01:00
|
|
|
# '+=' is for slave ports
|
|
|
|
CATEGORIES+= japanese
|
2005-09-11 21:58:46 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
|
2005-03-05 19:30:20 +01:00
|
|
|
PKGNAMESUFFIX= -${KONFONT}
|
2000-04-11 16:15:53 +02:00
|
|
|
DISTNAME= kon2-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
1998-09-26 17:41:21 +02:00
|
|
|
k14.bdf 7x14rk.bdf \
|
|
|
|
jiskan16.bdf 8x16rk.bdf
|
2005-03-05 19:30:20 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1995-06-24 11:25:17 +02:00
|
|
|
|
2005-03-05 19:30:20 +01:00
|
|
|
# '+=' is for slave ports
|
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Kanji On Console -- Display kanji characters on your own console
|
1995-06-24 11:25:17 +02:00
|
|
|
|
1999-01-06 06:00:26 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
1996-11-13 13:41:39 +01:00
|
|
|
MAN1= kon.1
|
1998-05-24 05:09:11 +02:00
|
|
|
MANLANG= ja
|
1995-06-24 11:25:17 +02:00
|
|
|
|
2005-03-05 19:30:20 +01:00
|
|
|
PORTDOCS= README README.FreeBSD
|
1997-07-10 15:15:00 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/kon2
|
|
|
|
|
1998-09-26 17:41:21 +02:00
|
|
|
.if !defined(KONFONT)
|
1998-11-07 15:30:29 +01:00
|
|
|
KONFONT=16dot
|
1998-09-26 17:41:21 +02:00
|
|
|
KON16FONT=Startup
|
1998-11-20 05:15:15 +01:00
|
|
|
.elif (${KONFONT} == "14dot")
|
|
|
|
KON14FONT=Startup
|
|
|
|
.elif (${KONFONT} != "16dot")
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: \$${KONFONT} (\"${KONFONT}\") should be either \"14dot\" or \"16dot\"."
|
|
|
|
@${FALSE}
|
1998-09-26 17:41:21 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-24 04:11:00 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${WRKSRC}/doc/kon.1 ${WRKSRC}/src/
|
|
|
|
|
1997-07-10 15:15:00 +02:00
|
|
|
pre-build:
|
1997-07-21 21:21:06 +02:00
|
|
|
${SED} -e 's,%%PREFIX%%,${PREFIX},' \
|
1997-07-10 15:15:00 +02:00
|
|
|
-e 's,%%DISTDIR%%,${DISTDIR},' \
|
1997-07-21 21:21:06 +02:00
|
|
|
${FILESDIR}/dotconfig > ${WRKSRC}/.config
|
1997-07-10 15:15:00 +02:00
|
|
|
@(cd ${WRKSRC}; ${MAKE} -f Makefile.FreeBSD config)
|
1998-09-26 17:41:21 +02: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 15:15:00 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-03-05 19:30:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja/man1
|
1997-07-10 15:15:00 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCDIR}
|
2005-03-05 19:30:20 +01:00
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCDIR}
|
1997-07-10 15:15:00 +02:00
|
|
|
.endif
|
1995-06-24 11:25:17 +02:00
|
|
|
|
2004-09-19 06:43:03 +02:00
|
|
|
.include <bsd.port.mk>
|