mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
e1bfdfbe56
Also various fixes related to said option. PR: 230864 Submitted by: mat exp-runs by: antoine
71 lines
1.7 KiB
Makefile
71 lines
1.7 KiB
Makefile
# Created by: Makoto Matsushita <matusita@jp.freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kon2
|
|
PORTVERSION= 0.3
|
|
PORTREVISION= 7
|
|
# '+=' is for slave ports
|
|
CATEGORIES+= japanese
|
|
MASTER_SITES= PORTS_JP
|
|
PKGNAMESUFFIX= -${KONFONT}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
k14.bdf 7x14rk.bdf \
|
|
jiskan16.bdf 8x16rk.bdf
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
# '+=' is for slave ports
|
|
MAINTAINER= TsurutaniNaoki@gmail.com
|
|
COMMENT= Kanji On Console -- Display kanji characters on your own console
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
PORTDOCS= README README.FreeBSD
|
|
SUB_LIST= KON16FONT=${KON16FONT} \
|
|
KON14FONT=${KON14FONT}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(KONFONT)
|
|
KONFONT=16dot
|
|
KON16FONT=Startup
|
|
.elif (${KONFONT} == "14dot")
|
|
KON14FONT=Startup
|
|
.elif (${KONFONT} != "16dot")
|
|
.BEGIN:
|
|
@${ECHO} "Error: \$${KONFONT} (\"${KONFONT}\") should be either \"14dot\" or \"16dot\"."
|
|
@${FALSE}
|
|
.endif
|
|
|
|
post-patch:
|
|
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}"; \
|
|
${ECHO_CMD} "S_TOPDIR = ${STAGEDIR}${PREFIX}"; \
|
|
${CAT} ${FILESDIR}/dotconfig; \
|
|
) > ${WRKSRC}/.config
|
|
|
|
pre-configure: ${WRKSRC}/.config
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.FreeBSD config
|
|
|
|
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
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${STAGEDIR}${MANPREFIX}/man/ja/man1
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|