openbsd-ports/japanese/onew-wnn4/Makefile

83 lines
2.4 KiB
Makefile
Raw Normal View History

2000-03-05 13:30:21 -05:00
# $OpenBSD: Makefile,v 1.6 2000/03/05 18:30:30 espie Exp $
1998-07-28 21:31:02 -04:00
#
DISTNAME= jvim2.0r+onew2.2.10
PKGNAME?= ja-onew-wnn4-2.2.10
CATEGORIES= japanese
2000-03-05 13:30:21 -05:00
NEED_VERSION= 1.223
1998-07-28 21:31:02 -04:00
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
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
LIB_DEPENDS= ${LIB_INPUT_METHOD}
PATCHDIR= ${.CURDIR}/../onew-wnn4/patches
FILESDIR= ${.CURDIR}/../onew-wnn4/files
2000-02-10 19:37:15 -05:00
WRKDIST= ${WRKDIR}/onew
1998-07-28 21:31:02 -04:00
# A value 'all' must not be set to TARGET.
ALL_TARGET=
.if !defined(CANNA) && !defined(WNN4) && !defined(WNN6)
# For this port
WNN4= yes
.endif
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
# LIB_DEPENDS, etc.
.if defined(CANNA)
INPUT_METHOD+= canna
2000-03-05 13:30:21 -05:00
LIB_INPUT_METHOD+= canna\\.1\\.:japanese/Canna
1998-07-28 21:31:02 -04:00
JPLIB+= -lcanna
.endif
.if defined(WNN4)
INPUT_METHOD+= wnn4
2000-03-05 13:30:21 -05:00
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:japanese/Wnn
1998-07-28 21:31:02 -04:00
JPDEF+= -DWNN_ISDIR
1998-11-21 19:13:44 -05:00
JPLIB+= -ljd
1998-07-28 21:31:02 -04:00
.elif defined(WNN6)
INPUT_METHOD+= wnn6
2000-03-05 13:30:21 -05:00
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:japanese/Wnn
1998-07-28 21:31:02 -04:00
JPDEF+= -DWNN_ISDIR
1998-11-21 19:13:44 -05:00
JPLIB+= -ljd
1998-07-28 21:31:02 -04: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' \
1998-07-28 21:31:02 -04:00
-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 -p ${PORT_DOCDIR}
1998-07-28 21:31:02 -04:00
${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PORT_DOCDIR}
.endif
.endif
.if defined(WNN6)
mkdir -p ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6
1998-07-28 21:31:02 -04:00
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 "############################################################"
1998-07-28 21:31:02 -04:00
.endif
.include <bsd.port.mk>