1998-07-10 14:05:19 +00:00
|
|
|
# New ports collection makefile for: jvim
|
|
|
|
# Version required: jvim2.0r+onew2.2.10
|
|
|
|
# Date created: 5 Sep 1997
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
|
1998-07-10 14:05:19 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-07-10 14:05:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
1999-05-01 04:03:48 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1998-07-10 14:05:19 +00:00
|
|
|
|
|
|
|
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)
|
1999-03-06 13:03:36 +00:00
|
|
|
INPUT_METHOD+= canna
|
|
|
|
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
|
|
|
|
JPLIB+= -lcanna
|
1998-07-10 14:05:19 +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
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/wnn/ja_JP/rk/2B_ROMKANA:${PORTSDIR}/japanese/Wnn
|
|
|
|
JPDEF+= -DWNN_ISDIR
|
|
|
|
JPLIB+= -ljd -lcrypt
|
1998-07-10 14:05:19 +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
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6/2B_ROMKANA:${PORTSDIR}/japanese/onew${INPUT_METHOD}
|
|
|
|
JPDEF+= -DWNN_ISDIR
|
|
|
|
JPLIB+= -ljd -lcrypt
|
1998-07-10 14:05:19 +00:00
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Make a value of INPUT_METHOD
|
|
|
|
.if defined(INPUT_METHOD)
|
1998-09-09 16:07:12 +00:00
|
|
|
INPUT_METHOD!= ${ECHO} ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
|
1998-07-10 14:05:19 +00:00
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# For ONEW library
|
|
|
|
.if defined(INPUT_METHOD)
|
1999-03-06 13:03:36 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libonew${INPUT_METHOD}.a:${PORTSDIR}/japanese/onew${INPUT_METHOD}
|
1998-07-10 14:05:19 +00:00
|
|
|
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>
|