aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/jvim/Makefile
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>1998-07-10 22:05:19 +0800
committerkuriyama <kuriyama@FreeBSD.org>1998-07-10 22:05:19 +0800
commit0928cd05ebe7a2482365c35b2cb7d4db2402566a (patch)
treec51a880eb3d8afc6618516d95742d6685e6176f8 /japanese/jvim/Makefile
parent9d35e6e9ec91d9d8035c3e06676a48bd72395ee9 (diff)
downloadfreebsd-ports-gnome-0928cd05ebe7a2482365c35b2cb7d4db2402566a.tar.gz
freebsd-ports-gnome-0928cd05ebe7a2482365c35b2cb7d4db2402566a.tar.zst
freebsd-ports-gnome-0928cd05ebe7a2482365c35b2cb7d4db2402566a.zip
Japanized Vim
PR: ports/6029 (part of) Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'japanese/jvim/Makefile')
-rw-r--r--japanese/jvim/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/japanese/jvim/Makefile b/japanese/jvim/Makefile
new file mode 100644
index 000000000000..96525b9994dc
--- /dev/null
+++ b/japanese/jvim/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: jvim
+# Version required: jvim2.0r+onew2.2.10
+# Date created: 5 Sep 1997
+# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= jvim2.0r+onew2.2.10
+PKGNAME?= ja-jvim-2.0r
+CATEGORIES= japanese editors
+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
+
+LIB_DEPENDS= ${LIB_INPUT_METHOD}
+BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
+
+PATCHDIR= ${.CURDIR}/../jvim/patches
+FILESDIR= ${.CURDIR}/../jvim/files
+PLIST= ${.CURDIR}/../jvim/pkg/PLIST
+MANLANG= ja
+MAN1= jcat.1 jfold.1 jgrep.1 jvim.1
+WRKSRC= ${WRKDIR}/jvim2.0r
+
+# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
+# LIB_DEPENDS, etc.
+.if defined(CANNA)
+INPUT_METHOD+= canna
+LIB_INPUT_METHOD+= canna\\.1\\.:${PORTSDIR}/japanese/Canna
+JPLIB+= -lcanna
+.endif
+.if defined(WNN4)
+INPUT_METHOD+= wnn4
+BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
+JPDEF+= -DWNN_ISDIR
+JPLIB+= -ljd -lcrypt
+.elif defined(WNN6)
+INPUT_METHOD+= wnn6
+BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
+JPDEF+= -DWNN_ISDIR
+JPLIB+= -ljd -lcrypt
+.endif
+#
+# Make a value of INPUT_METHOD
+.if defined(INPUT_METHOD)
+INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
+.endif
+#
+# For ONEW library
+.if defined(INPUT_METHOD)
+BUILD_INPUT_METHOD+= ${LOCALBASE}/lib/libonew${INPUT_METHOD}.a:${PORTSDIR}/japanese/onew${INPUT_METHOD}
+JPDEF+= -DONEW
+# If we use ONEW libray, then -lonew*.a should appear
+# before the other libraries.
+JPLIB!= echo ${JPLIB} | sed 's%^%-lonew${INPUT_METHOD} %'
+.endif
+
+pre-build:
+ cd ${WRKSRC}/src; \
+ ${SED} -e 's,%LOCALBASE%,${LOCALBASE},g' \
+ -e 's,%X11BASE%,${X11BASE},g' \
+ ./makefile.junx > Makefile; \
+
+do-build:
+ cd ${WRKSRC}/src; make FreeBSD 'JPDEF=${JPDEF}' 'JPLIB=${JPLIB}'
+
+do-install:
+ cd ${WRKSRC}/src; make install
+
+post-install:
+ for file in jcat jgrep jfold jvim; do \
+ strip ${LOCALBASE}/bin/$$file; \
+ done
+
+.include <bsd.port.mk>