mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
a77a3c279b
(a) Its name was changed from Wnn to FreeWnn because Wnn6 which is a commercial software exits (b) Its license was changed to GPL. (c) The method to configure was changed from imake to GNU configure. (d) Relatively to the original Wnn, the Wnn in the ports tree were modified by me a lot. Most of the modifications were adopted into FreeWnn. (c) Header and library files are installed into ${LOCALBASE}/{lib,include} instead of ${X11BASE}/{lib,include}. (2) FreeWnn is divided into two ports FreeWnn-lib and FreeWnn-server in chinese, korean and japanese categories. The former is for libwnn and header files to compile client commands, and the files used in client commands. The latter is for a server to convert KANA to KANJI (Chinese character), and dictionaries and files used by the server.
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# New ports collection makefile for: ONEW for FreeWnn
|
|
# Date created: 5 Sep 1997
|
|
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= onew
|
|
PORTVERSION?= 2.2.10
|
|
PKGNAMESUFFIX= ${INPUT_METHOD}
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
|
|
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
|
|
DISTNAME= jvim2.0r+${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
# A value 'all' must not be set to TARGET.
|
|
ALL_TARGET=
|
|
|
|
.if !defined(CANNA) && !defined(FREEWNN) && !defined(WNN6)
|
|
# For this port
|
|
FREEWNN= yes
|
|
.endif
|
|
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
|
|
# LIB_DEPENDS, etc.
|
|
.if defined(CANNA)
|
|
INPUT_METHOD+= canna
|
|
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
|
|
JPLIB+= -lcanna
|
|
.endif
|
|
.if defined(FREEWNN)
|
|
INPUT_METHOD+= freewnn
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libjd.a:${PORTSDIR}/japanese/FreeWnn-lib
|
|
JPLIB+= -ljd -lcrypt
|
|
JPDEF+= -DWNN_ISDIR
|
|
.elif defined(WNN6)
|
|
INPUT_METHOD+= wnn6
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libjd.a:${PORTSDIR}/japanese/FreeWnn-lib
|
|
JPLIB+= -ljd -lcrypt
|
|
JPDEF+= -DWNN_ISDIR
|
|
.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>
|