blob: 848189c9138fde1586f673bdd4c18bd7491b3f5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Created by: Satoshi TAOKA <taoka@FreeBSD.org>
# $FreeBSD$
PORTNAME= jvim
PORTVERSION= 3.0.j2.1b
PORTREVISION= 1
CATEGORIES= japanese editors
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
http://hp.vector.co.jp/authors/VA003457/vim/vim3/2.1b/
DISTFILES= vim-3.0.tar.gz jvim.2.1b.tar.gz
MAINTAINER= hrs@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}" \
LIBS="${LIBS}"
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11 FREEWNN_CANNA
OPTIONS_RADIO= FEP
OPTIONS_RADIO_FEP= FREEWNN_CANNA DIRECT_CANNA WNN6 WNN7
FEP_DESC= Japanese FrontEnd Processor
DIRECT_CANNA_DESC= Canna support (direct)
DIRECT_CANNA_LIB_DEPENDS= libcanna.so:japanese/canna-lib
FREEWNN_CANNA_DESC= Canna and FreeWnn support (via ONEW library)
FREEWNN_CANNA_LIB_DEPENDS= libjd.so:japanese/FreeWnn-lib \
libcanna.so:japanese/canna-lib
FREEWNN_CANNA_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-canna+freewnn.a:japanese/onew
WNN6_DESC= Wnn6 support
WNN6_LIB_DEPENDS= libjd.so:japanese/FreeWnn-lib
WNN6_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-wnn6.a:japanese/onew
WNN7_DESC= Wnn7 support
WNN7_LIB_DEPENDS= libjd.so:japanese/FreeWnn-lib
WNN7_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-wnn7.a:japanese/onew
PORTDOCS= cygwin.txt differen.doc fepctrl.doc readme.doc \
termcap.dos uganda.jp vim-jp.htm vim32.ini tutor.j
CPPFLAGS+= -DBSD_UNIX -DUSE_LOCALE
LIBS+= -ltermlib -L${LOCALBASE}/lib
X11_USE= XORG=x11
X11_CPPFLAGS= -DUSE_X11 -I${LOCALBASE}/include
X11_LIBS= -lX11 -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDIRECT_CANNA} || \
${PORT_OPTIONS:MFREEWNN_CANNA} || \
${PORT_OPTIONS:MWNN6} || \
${PORT_OPTIONS:MWNN7}
FEPOPT+= -DJP_DEF=\"EEE\" -DFEPCTRL
.endif
# Direct connection to Canna
.if ${PORT_OPTIONS:MDIRECT_CANNA}
FEPOPT+= -DCANNA
FEPLIBS= -lcanna -L${LOCALBASE}/lib
FEPOBJS= fepcanna.o
JVIM3RC= "set fepctrl"
.endif
.if ${PORT_OPTIONS:MFREEWNN_CANNA} || \
${PORT_OPTIONS:MWNN6} || \
${PORT_OPTIONS:MWNN7} || \
${PORT_OPTIONS:MCANNA}
FEPOPT+= -DONEW
FEPOBJS= feponew.o
JVIM3RC= "set fepctrl onewredraw"
.endif
# Connection by using ONEW library
.if ${PORT_OPTIONS:MFREEWNN_CANNA}
FEPLIBS+= -lonew-canna+freewnn -lcanna -ljd -lcrypt
.endif
.if ${PORT_OPTIONS:MWNN6}
FEPLIBS+= -lonew-wnn6 -ljd -lcrypt
.endif
.if ${PORT_OPTIONS:MWNN7}
FEPLIBS+= -lonew-wnn7 -ljd -lcrypt
.endif
post-build:
${INSTALL_DATA} ${WRKSRC}/doc.j/tutor/tutor.j ${WRKSRC}/doc.j
${ECHO_CMD} "${JVIM3RC}" > ${WRKSRC}/jvim3rc.dist
post-install:
${LN} -sf jvim3 ${STAGEDIR}${PREFIX}/bin/jvim
${INSTALL_PROGRAM} ${WRKSRC}/src/grep.bin ${STAGEDIR}${PREFIX}/bin/jgrep
${INSTALL_DATA} ${WRKSRC}/jvim3rc.dist ${STAGEDIR}${PREFIX}/etc/
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc.j && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|