summaryrefslogtreecommitdiffstats
path: root/editors/mule/Makefile
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2001-08-27 01:20:24 +0000
committertaoka <taoka@FreeBSD.org>2001-08-27 01:20:24 +0000
commita8812106e82c348a3457f05ec2906a8fc02f4c6b (patch)
treee93366b476c917511b4da48bd60b8584d2e74af9 /editors/mule/Makefile
parent4b6230e5d5822e6aa62c3ede6633a8bf77ad46ec (diff)
downloadFreeBSD-ports-a8812106e82c348a3457f05ec2906a8fc02f4c6b.zip
FreeBSD-ports-a8812106e82c348a3457f05ec2906a8fc02f4c6b.tar.gz
* Add Wnn7's clients (jvim, jvim3, kinput2, mule) and a library for
Wnn7 clients (Wnn7-lib). Notice the latter is modified from Wnn6-lib by me and is not released from the Product company of Wnn7 (Omron Software Co., Ltd). * Modify master ports of the above ports according to adding these. * [ports/editors/mule/pkg-descr] My English in pkg-descr was corrected Submitted by: imp
Diffstat (limited to 'editors/mule/Makefile')
-rw-r--r--editors/mule/Makefile31
1 files changed, 26 insertions, 5 deletions
diff --git a/editors/mule/Makefile b/editors/mule/Makefile
index 525f9d0..a2bc624 100644
--- a/editors/mule/Makefile
+++ b/editors/mule/Makefile
@@ -7,6 +7,8 @@
PORTNAME= mule
PORTVERSION= ${MULE_VERSION}
+PKGNAMESUFFIX= ${INPUT_METHOD}
+PORTREVISION= 1
CATEGORIES+= editors
MASTER_SITES= ftp://etlport.etl.go.jp/pub/mule/ \
ftp://ftp.mei.co.jp/archive/free/gnu/emacs/Mule/ \
@@ -57,33 +59,52 @@ STRIP=
INSTALL_TARGET= install-arch-dep
.if defined(CANNA)
+INPUT_METHOD+= canna
LIB_INPUT_METHOD+= canna.1:${PORTSDIR}/japanese/Canna
WITH_INPUT_METHOD+= --with-canna --with-canna-libraries=${PREFIX}/lib \
--with-canna-includes=${PREFIX}/include
.endif
-.if defined(SJ3)
-BUILD_INPUT_METHOD+= sj3serv:${PORTSDIR}/japanese/sj3
-WITH_INPUT_METHOD+= --with-sj3
-.endif
.if defined(FREEWNN)
+INPUT_METHOD+= freewnn
LIB_INPUT_METHOD+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
WITH_INPUT_METHOD+= --with-wnn4 --with-wnn-libraries=${LOCALBASE}/lib \
--with-wnn-includes=${LOCALBASE}/include/wnn
.elif defined(CFREEWNN)
+INPUT_METHOD+= freewnn
LIB_INPUT_METHOD+= cwnn.0:${PORTSDIR}/chinese/FreeWnn-lib
WITH_INPUT_METHOD+= --with-wnn4 --with-cwnn4 --with-wnn-libraries=${LOCALBASE}/lib \
--with-wnn-includes=${LOCALBASE}/include/cwnn
.elif defined(KFREEWNN)
+INPUT_METHOD+= freewnn
LIB_INPUT_METHOD+= kwnn.0:${PORTSDIR}/korean/FreeWnn-lib
WITH_INPUT_METHOD+= --with-wnn4 --with-kwnn4 --with-wnn-libraries=${LOCALBASE}/lib \
--with-wnn-includes=${LOCALBASE}/include/kwnn
-.elif defined(WNN6)
+.endif
+.if defined(SJ3)
+INPUT_METHOD+= sj3
+BUILD_INPUT_METHOD+= sj3serv:${PORTSDIR}/japanese/sj3
+WITH_INPUT_METHOD+= --with-sj3
+.endif
+.if !defined(FREEWNN) && !defined(CFREEWNN) && !defined(KFREEWNN)
+.if defined(WNN6)
+INPUT_METHOD+= wnn6
LIB_INPUT_METHOD+= wnn6.1:${PORTSDIR}/japanese/Wnn6-lib
WITH_INPUT_METHOD+= --with-wnn6 --with-wnn-libraries=${LOCALBASE}/lib \
--with-wnn-includes=${LOCALBASE}/include/wnn6/wnn
+.elif defined(WNN7)
+INPUT_METHOD+= wnn7
+LIB_INPUT_METHOD+= wnn6_for_wnn7.1:${PORTSDIR}/japanese/Wnn7-lib
+WITH_INPUT_METHOD+= --with-wnn6=-lwnn6_for_wnn7 --with-wnn-libraries=${LOCALBASE}/lib \
+ --with-wnn-includes=${LOCALBASE}/include/wnn7/wnn
+.endif
.endif
COMP_ELC= egg.elc wnn-egg.elc sj3-client.elc sj3-egg.elc canna.elc
ELC_DIR= ../lisp
+# Make a value of INPUT_METHOD
+.if defined(INPUT_METHOD)
+INPUT_METHOD!= ${ECHO} ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
+.endif
+
WITH_DIALOGS= --with-x-toolkit
OpenPOWER on IntegriCloud