mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +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.
77 lines
2.0 KiB
Makefile
77 lines
2.0 KiB
Makefile
# New ports collection makefile for: jvim
|
|
# Date created: 5 Sep 1997
|
|
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jvim
|
|
PORTVERSION= 2.0r
|
|
CATEGORIES= japanese editors
|
|
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
|
|
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}+onew2.2.10
|
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
|
|
|
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}/${PORTNAME}${PORTVERSION}
|
|
|
|
# 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
|
|
LIB_DEPENDS+= jd.0:${PORTSDIR}/japanese/FreeWnn-lib
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/wnn/ja_JP/rk/2B_ROMKANA:${PORTSDIR}/japanese/FreeWnn-lib
|
|
JPDEF+= -DWNN_ISDIR
|
|
JPLIB+= -ljd -lcrypt
|
|
.elif defined(WNN6)
|
|
INPUT_METHOD+= wnn6
|
|
LIB_DEPENDS+= jd.0:${PORTSDIR}/japanese/FreeWnn-lib
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6/2B_ROMKANA:${PORTSDIR}/japanese/onew${INPUT_METHOD}
|
|
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_DEPENDS+= ${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>
|