1998-07-08 14:29:30 +00:00
|
|
|
# New ports collection makefile for: ONEW for Wnn4
|
|
|
|
# Version required: jvim2.0r+onew2.2.10
|
|
|
|
# Date created: 5 Sep 1997
|
|
|
|
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
|
|
|
|
#
|
1999-03-06 13:03:36 +00:00
|
|
|
# $Id: Makefile,v 1.3 1998/12/02 05:09:13 asami Exp $
|
1998-07-08 14:29:30 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= jvim2.0r+onew2.2.10
|
|
|
|
PKGNAME?= ja-onew-wnn4-2.2.10
|
|
|
|
CATEGORIES= japanese
|
|
|
|
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
|
|
|
|
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
|
|
|
|
|
|
|
|
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/onew
|
|
|
|
# A value 'all' must not be set to TARGET.
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
.if !defined(CANNA) && !defined(WNN4) && !defined(WNN6)
|
|
|
|
# For this port
|
1999-03-06 13:03:36 +00:00
|
|
|
WNN4= yes
|
1998-07-08 14:29:30 +00:00
|
|
|
.endif
|
|
|
|
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
|
|
|
|
# LIB_DEPENDS, etc.
|
|
|
|
.if defined(CANNA)
|
1999-03-06 13:03:36 +00:00
|
|
|
INPUT_METHOD+= canna
|
|
|
|
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
|
|
|
|
JPLIB+= -lcanna
|
1998-07-08 14:29:30 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WNN4)
|
1999-03-06 13:03:36 +00:00
|
|
|
INPUT_METHOD+= wnn4
|
|
|
|
BUILD_DEPENDS+= ${X11BASE}/lib/libjd.a:${PORTSDIR}/japanese/Wnn
|
|
|
|
JPLIB+= -ljd -lcrypt
|
|
|
|
JPDEF+= -DWNN_ISDIR
|
1998-07-08 14:29:30 +00:00
|
|
|
.elif defined(WNN6)
|
1999-03-06 13:03:36 +00:00
|
|
|
INPUT_METHOD+= wnn6
|
|
|
|
BUILD_DEPENDS+= ${X11BASE}/lib/libjd.a:${PORTSDIR}/japanese/Wnn
|
|
|
|
JPLIB+= -ljd -lcrypt
|
|
|
|
JPDEF+= -DWNN_ISDIR
|
1998-07-08 14:29:30 +00:00
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Make a value of INPUT_METHOD
|
|
|
|
.if defined(INPUT_METHOD)
|
|
|
|
INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
ONEW_CONF= ${FILESDIR}/ONEW_CONF-for${INPUT_METHOD}
|
|
|
|
LIB_NAME= libonew${INPUT_METHOD}.a
|
|
|
|
PORT_DOCDIR= ${LOCALBASE}/share/doc/ja-onew${INPUT_METHOD}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${SED} -e 's,%LOCALBASE%,${LOCALBASE},g' \
|
|
|
|
-e 's,%X11BASE%,${X11BASE},g' \
|
|
|
|
${ONEW_CONF} > ${WRKSRC}/ONEW_CONF
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libonew.a ${LOCALBASE}/lib/${LIB_NAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.if defined(PORT_DOCDIR)
|
|
|
|
${MKDIR} ${PORT_DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PORT_DOCDIR}
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(WNN6)
|
|
|
|
${MKDIR} ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6
|
|
|
|
for file in 1B_TOUPPER 1B_ZENHIRA 1B_ZENKATA 1B_newTOUPPER \
|
|
|
|
2A_CTRL 2B_DAKUTEN 2B_JIS 2B_ROMKANA 2_TCODE \
|
|
|
|
3B_HANKATA 3B_KATAKANA 3B_ZENKAKU autork \
|
|
|
|
mode mode.hankata mode.nohankata; do \
|
|
|
|
${INSTALL_DATA} ${LOCALBASE}/lib/wnn/ja_JP/rk/$${file} \
|
|
|
|
${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6; \
|
|
|
|
done
|
|
|
|
@${ECHO} "############################################################"
|
|
|
|
@${ECHO} "We install all files in ${LOCALBASE}/lib/wnn/ja_JP/rk/"
|
|
|
|
@${ECHO} " into new directory ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6/"
|
|
|
|
@${ECHO} "############################################################"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|