freebsd-ports/japanese/jvim3/Makefile
2012-06-29 12:42:04 +00:00

123 lines
3.4 KiB
Makefile

# New ports collection makefile for: jvim3
# Date created: 98/11/17
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jvim
PORTVERSION= 3.0.j2.1a
PORTREVISION= 4
CATEGORIES= japanese editors
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
http://hp.vector.co.jp/authors/VA003457/vim/vim3/2.1a/
DISTFILES= vim-3.0.tar.gz jvim.2.1a.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanized Vim-3.0
EXTRA_PATCHES= ${WRKDIR}/${PORTNAME}.diff
WRKSRC= ${WRKDIR}/vim
BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src
MAKEFILE= makjunix.mak
ALL_TARGET= # empty
PLIST_SUB= VERSION=${PORTVERSION}
MAKE_ARGS= FEPOPT='${FEPOPT}' \
FEPLIBS="${FEPLIBS}" \
FEPOBJS="${FEPOBJS}" \
MACHINE="${MACHINE}" \
CC="${CC}" \
LIBS="${LIBS}"
MAN1= jvim3.1
OPTIONS_DEFINE= X11 CANNA DIRECT_CANNA WNN6 WNN7 FREEWNN
OPTIONS_DEFAULT= CANNA FREEWNN X11
CANNA_DESC= Canna support (via ONEW library)
DIRECT_CANNA_DESC= Canna support (direct)
FREEWNN_DESC= FreeWnn support (via ONEW library)
WNN6_DESC= Wnn6 support
WNN7_DESC= Wnn7 support
PORTDOCS= cygwin.txt differen.doc fepctrl.doc readme.doc \
termcap.dos uganda.jp vim-jp.htm vim32.ini tutor.j
# -DUSE_X11 is the cause of a problem treating Japanese
MACHINE= -DBSD_UNIX -DUSE_LOCALE
LIBS= -ltermlib -L${PREFIX}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11
MACHINE+= -DUSE_X11
CC+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lX11
.endif
# Direct connection to Canna
.if ${PORT_OPTIONS:MDIRECT_CANNA}
INPUT_METHOD+= direct_canna
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib
FEPOPT+= -DJP_DEF=\"EEE\" -DCANNA -DFEPCTRL
FEPLIBS= -lcanna
FEPOBJS= fepcanna.o
JVIM3RC= "set fepctrl"
.else
# Connection by using ONEW library
.if ${PORT_OPTIONS:MCANNA}
INPUT_METHOD+= canna
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib
FEPLIBS+= -L${LOCALBASE}/lib -lonew-canna -lcanna
FEPOPT+= -DJP_DEF=\"EEE\" -DONEW -DFEPCTRL
FEPOBJS= feponew.o
JVIM3RC= "set fepctrl onewredraw"
.endif
.if ${PORT_OPTIONS:MFREEWNN}
LIB_DEPENDS+= jd.0:${PORTSDIR}/japanese/FreeWnn-lib
BUILD_DEPENDS+= ${LOCALBASE}/lib/libonew-freewnn.a:${PORTSDIR}/japanese/onew
FEPLIBS+= -L${LOCALBASE}/lib -lonew-freewnn -ljd -lcrypt
FEPOPT+= -DJP_DEF=\"EEE\" -DONEW -DFEPCTRL
FEPOBJS= feponew.o
JVIM3RC= "set fepctrl onewredraw"
.endif
.if ${PORT_OPTIONS:MWNN6}
LIB_DEPENDS+= jd.0:${PORTSDIR}/japanese/FreeWnn-lib
BUILD_DEPENDS+= ${LOCALBASE}/lib/libonew-wnn6.a:${PORTSDIR}/japanese/onew
FEPLIBS+= -L${LOCALBASE}/lib -lonew-wnn6 -ljd -lcrypt
FEPOPT+= -DJP_DEF=\"EEE\" -DONEW -DFEPCTRL
FEPOBJS= feponew.o
JVIM3RC= "set fepctrl onewredraw"
.endif
.if ${PORT_OPTIONS:MWNN7}
LIB_DEPENDS+= jd.0:${PORTSDIR}/japanese/FreeWnn-lib
BUILD_DEPENDS+= ${LOCALBASE}/lib/libonew-wnn7.a:${PORTSDIR}/japanese/onew
FEPLIBS+= -L${LOCALBASE}/lib -lonew-wnn7 -ljd -lcrypt
FEPOPT+= -DJP_DEF=\"EEE\" -DONEW -DFEPCTRL
FEPOBJS= feponew.o
JVIM3RC= "set fepctrl onewredraw"
.endif
.endif
post-build:
${CP} ${WRKSRC}/doc.j/tutor/tutor.j ${WRKSRC}/doc.j
post-install:
${LN} -sf ${PREFIX}/bin/jvim3 ${PREFIX}/bin/jvim
${INSTALL_PROGRAM} ${WRKSRC}/src/grep/grep ${PREFIX}/bin/jgrep
${ECHO_CMD} "${JVIM3RC}" > ${WRKSRC}/jvim3rc.dist
${INSTALL_DATA} ${WRKSRC}/jvim3rc.dist ${PREFIX}/etc/
.if !exists(${PREFIX}/etc/jvim3rc)
${INSTALL_DATA} ${PREFIX}/etc/jvim3rc.dist ${PREFIX}/etc/jvim3rc
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc.j && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>