2013-02-17 12:49:50 +01:00
|
|
|
# Created by: Makoto Matsushita <matusita@jp.freebsd.org>
|
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
|
2013-02-17 12:49:50 +01:00
|
|
|
PORTREVISION= 7
|
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
|
|
|
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
|
2012-08-07 14:31:04 +02:00
|
|
|
MAINTAINER?= turutani@scphys.kyoto-u.ac.jp
|
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
|
|
|
|
2012-05-09 21:28:24 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
1999-01-06 06:00:26 +01:00
|
|
|
|
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
|
2012-06-05 08:35:31 +02:00
|
|
|
SUB_LIST= KON16FONT=${KON16FONT} \
|
|
|
|
KON14FONT=${KON14FONT}
|
1997-07-10 15:15:00 +02:00
|
|
|
|
2010-03-20 16:45:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
|
2013-02-17 12:49:50 +01:00
|
|
|
post-patch:
|
2012-06-05 08:35:31 +02:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_MAN} doc/kon.1 src/kon.1.in && \
|
|
|
|
${INSTALL_DATA} kon.cfg.FreeBSD kon.cfg.FreeBSD.in
|
|
|
|
|
|
|
|
${WRKSRC}/.config::
|
|
|
|
(${ECHO_CMD} "DISTDIR = ${DISTDIR}"; \
|
|
|
|
${ECHO_CMD} "TOPDIR = ${PREFIX}"; \
|
|
|
|
${CAT} ${FILESDIR}/dotconfig; \
|
|
|
|
) > ${WRKSRC}/.config
|
|
|
|
|
|
|
|
pre-configure: ${WRKSRC}/.config
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.FreeBSD config
|
2004-12-24 04:11:00 +01:00
|
|
|
|
2012-06-05 08:35:31 +02:00
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
for F in kon.cfg.FreeBSD src/kon.1; do \
|
|
|
|
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
< $${F}.in > $${F}; \
|
|
|
|
done
|
1997-07-10 15:15:00 +02:00
|
|
|
|
|
|
|
post-install:
|
2012-06-05 08:35:31 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${MANPREFIX}/man/ja/man1
|
2013-02-17 12:49:50 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-06-05 08:35:31 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
1997-07-10 15:15:00 +02:00
|
|
|
.endif
|
1995-06-24 11:25:17 +02:00
|
|
|
|
2010-03-20 16:45:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|