aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-05-04 02:57:53 +0800
committerhrs <hrs@FreeBSD.org>2013-05-04 02:57:53 +0800
commitdbc7ca7062e0f9d567e991f2a52d1198352a8437 (patch)
tree499495c6280525868da6161d7cff07957baf20f2 /japanese
parentca0a59a2af39e77b99676c8621f52b963b920015 (diff)
downloadfreebsd-ports-gnome-dbc7ca7062e0f9d567e991f2a52d1198352a8437.tar.gz
freebsd-ports-gnome-dbc7ca7062e0f9d567e991f2a52d1198352a8437.tar.zst
freebsd-ports-gnome-dbc7ca7062e0f9d567e991f2a52d1198352a8437.zip
- Update to 3.0.j2.1b.
- Use OPTIONS_RADIO for Japanese FEP selection. - Fix build when CC is defined. - Respect CFLAGS. - Rename MACHINE and TARGET in Makefile. - Mark MAKE_JOBS_SAFE=yes.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/jvim3/Makefile77
-rw-r--r--japanese/jvim3/distinfo4
-rw-r--r--japanese/jvim3/files/patch-aa73
-rw-r--r--japanese/jvim3/files/patch-src-makjunix.mak282
-rw-r--r--japanese/jvim3/files/patch-src-term.c (renamed from japanese/jvim3/files/patch-ab)0
5 files changed, 322 insertions, 114 deletions
diff --git a/japanese/jvim3/Makefile b/japanese/jvim3/Makefile
index efe3ccf06d06..7873f62d7dcf 100644
--- a/japanese/jvim3/Makefile
+++ b/japanese/jvim3/Makefile
@@ -1,19 +1,14 @@
-# New ports collection makefile for: jvim3
-# Date created: 98/11/17
-# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
-#
+# Created by: Satoshi TAOKA <taoka@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= jvim
-PORTVERSION= 3.0.j2.1a
-PORTREVISION= 4
+PORTVERSION= 3.0.j2.1b
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
+ http://hp.vector.co.jp/authors/VA003457/vim/vim3/2.1b/
+DISTFILES= vim-3.0.tar.gz jvim.2.1b.tar.gz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= hrs@FreeBSD.org
COMMENT= Japanized Vim-3.0
EXTRA_PATCHES= ${WRKDIR}/${PORTNAME}.diff
@@ -26,14 +21,16 @@ PLIST_SUB= VERSION=${PORTVERSION}
MAKE_ARGS= FEPOPT='${FEPOPT}' \
FEPLIBS="${FEPLIBS}" \
FEPOBJS="${FEPOBJS}" \
- MACHINE="${MACHINE}" \
- CC="${CC}" \
LIBS="${LIBS}"
+MAKE_JOBS_SAFE= yes
MAN1= jvim3.1
-OPTIONS_DEFINE= X11 CANNA DIRECT_CANNA WNN6 WNN7 FREEWNN
-OPTIONS_DEFAULT= CANNA FREEWNN X11
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11 FREEWNN
+OPTIONS_RADIO= FEP
+OPTIONS_RADIO_FEP= CANNA DIRECT_CANNA WNN6 WNN7 FREEWNN
+FEP_DESC= Japanese FrontEnd Processor
CANNA_DESC= Canna support (via ONEW library)
DIRECT_CANNA_DESC= Canna support (direct)
FREEWNN_DESC= FreeWnn support (via ONEW library)
@@ -44,64 +41,66 @@ 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
+CPPFLAGS+= -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
+CPPFLAGS+= -DUSE_X11 -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lX11
.endif
+.if ${PORT_OPTIONS:MDIRECT_CANNA} || \
+ ${PORT_OPTIONS:MCANNA} || \
+ ${PORT_OPTIONS:MFREEWNN} || \
+ ${PORT_OPTIONS:MWNN6} || \
+ ${PORT_OPTIONS:MWNN7}
+FEPOPT+= -DJP_DEF=\"EEE\" -DFEPCTRL
+.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
+FEPOPT+= -DCANNA
+FEPLIBS= -lcanna -L${LOCALBASE}/lib
FEPOBJS= fepcanna.o
JVIM3RC= "set fepctrl"
-.else
+.endif
+
+.if ${PORT_OPTIONS:MFREEWNN} || \
+ ${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: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"
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libonew-canna.a:${PORTSDIR}/japanese/onew
+FEPLIBS+= -lonew-canna -lcanna
.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"
+FEPLIBS+= -lonew-freewnn -ljd -lcrypt
.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"
+FEPLIBS+= -lonew-wnn6 -ljd -lcrypt
.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
+FEPLIBS+= -lonew-wnn7 -ljd -lcrypt
.endif
post-build:
diff --git a/japanese/jvim3/distinfo b/japanese/jvim3/distinfo
index 26869f32a606..8d73ed1e2b3c 100644
--- a/japanese/jvim3/distinfo
+++ b/japanese/jvim3/distinfo
@@ -1,4 +1,4 @@
SHA256 (vim-3.0.tar.gz) = cbeb6db48cad09c7ae3706fa9510669bee5b17d39033727e8453c4a9afce061f
SIZE (vim-3.0.tar.gz) = 468153
-SHA256 (jvim.2.1a.tar.gz) = 96bc2d9cf5b0a24aa5377af5829a9ff8cfb3176ea7170ec401d9f4af84e5993a
-SIZE (jvim.2.1a.tar.gz) = 668190
+SHA256 (jvim.2.1b.tar.gz) = ea8b63d0c7aa7516f1e28c58e22c92b9706b2052804c5c79e1f533b486faca60
+SIZE (jvim.2.1b.tar.gz) = 687277
diff --git a/japanese/jvim3/files/patch-aa b/japanese/jvim3/files/patch-aa
deleted file mode 100644
index 7f57da12a06c..000000000000
--- a/japanese/jvim3/files/patch-aa
+++ /dev/null
@@ -1,73 +0,0 @@
---- src/makjunix.mak.orig Sat Jun 30 18:14:16 2001
-+++ src/makjunix.mak Sat Jun 30 18:16:14 2001
-@@ -61,8 +61,8 @@
- #X11LIBDIR = /usr/lib/X11R5
- #X11INCDIR = /usr/include/X11R5
- ###
--#X11LIBDIR = /usr/X11R6/lib
--#X11INCDIR = /usr/X11R6/include
-+X11LIBDIR = /usr/X11R6/lib
-+X11INCDIR = /usr/X11R6/include
- ###
- #X11LIBDIR = /usr/X386/lib
- #X11INCDIR = /usr/X386/include
-@@ -72,13 +72,13 @@
-
-
- ### Prefix for location of files
--PREFIX = /usr/local
-+PREFIX?= /usr/local
-
- ### Location of binary
- BINLOC = $(PREFIX)/bin
-
- ### Name of target
--TARGET = vim
-+TARGET = jvim3
-
- ### Location of man page
- MANLOC = $(PREFIX)/man/man1
-@@ -100,7 +100,7 @@
-
- MANFILE = ../doc/vim.1
-
--HELPFILE = ../doc/vim.hlp
-+HELPFILE = ../doc.j/vim.hlp
-
- #
- # PART 2: various choices
-@@ -168,7 +168,8 @@
-
- DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
- -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
-- -DVIM_HLP=\"$(HELPLOC)/vim.hlp\" \
-+ -DVIM_HLP=\"$(HELPLOC)/jvim3.hlp\" \
-+ -DDEFVIMRC_FILE=\"$(PREFIX)/etc/jvim3rc\" \
- -DKANJI -DUCODE -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_TAGEX -DUSE_OPT $(FEPOPT)
-
- #
-@@ -460,11 +461,11 @@
- chmod $(BINMOD) $(BINLOC)/$(TARGET)
- $(STRIP) $(BINLOC)/$(TARGET)
- -mkdir $(MANLOC)
-- cp $(MANFILE) $(MANLOC)
-- chmod $(MANMOD) $(MANLOC)/vim.1
-+ cp $(MANFILE) $(MANLOC)/jvim3.1
-+ chmod $(MANMOD) $(MANLOC)/jvim3.1
- -mkdir $(HELPLOC)
-- cp $(HELPFILE) $(HELPLOC)
-- chmod $(HELPMOD) $(HELPLOC)/vim.hlp
-+ cp $(HELPFILE) $(HELPLOC)/jvim3.hlp
-+ chmod $(HELPMOD) $(HELPLOC)/jvim3.hlp
-
- clean:
- -rm -f $(OBJ) mkcmdtab.o version.o core $(TARGET) mkcmdtab cmdtab.h
-@@ -619,7 +620,7 @@
- $(CC) $(CFLAGS) fepbow.c
-
- fepcanna.o: fepcanna.c
-- $(CC) $(CFLAGS) -I/usr/local/canna/include fepcanna.c
-+ $(CC) $(CFLAGS) -I${PREFIX}/include fepcanna.c
-
- feponew.o: feponew.c
- $(CC) $(CFLAGS) feponew.c
diff --git a/japanese/jvim3/files/patch-src-makjunix.mak b/japanese/jvim3/files/patch-src-makjunix.mak
new file mode 100644
index 000000000000..6b4473df0e9a
--- /dev/null
+++ b/japanese/jvim3/files/patch-src-makjunix.mak
@@ -0,0 +1,282 @@
+--- src/makjunix.mak.orig 2013-05-04 03:51:13.000000000 +0900
++++ src/makjunix.mak 2013-05-04 03:52:09.000000000 +0900
+@@ -72,16 +72,17 @@
+
+
+ ### Prefix for location of files
+-PREFIX = /usr/local
++PREFIX?= /usr/local
+
+ ### Location of binary
+ BINLOC = $(PREFIX)/bin
+
+ ### Name of target
+-TARGET = vim
++PROG = jvim3
+
+ ### Location of man page
+-MANLOC = $(PREFIX)/man/man1
++MAN1PREFIX?= ${PREFIX}
++MANLOC = $(MAN1PREFIX)/man/man1
+
+ ### Location of help file
+ HELPLOC = $(PREFIX)/lib
+@@ -100,7 +101,7 @@
+
+ MANFILE = ../doc/vim.1
+
+-HELPFILE = ../doc/vim.hlp
++HELPFILE = ../doc.j/vim.hlp
+
+ #
+ # PART 2: various choices
+@@ -168,7 +169,8 @@
+
+ DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
+ -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
+- -DVIM_HLP=\"$(HELPLOC)/vim.hlp\" \
++ -DVIM_HLP=\"$(HELPLOC)/jvim3.hlp\" \
++ -DDEFVIMRC_FILE=\"$(PREFIX)/etc/jvim3rc\" \
+ -DKANJI -DUCODE -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_TAGEX -DUSE_OPT $(FEPOPT)
+
+ #
+@@ -424,7 +426,7 @@
+ ## no changes required below this line ##
+ ################################################
+
+-CFLAGS = -c $(MACHINE) $(DEFS)
++CFLAGS+= $(CPPFLAGS) $(DEFS)
+
+ INCL = vim.h globals.h param.h keymap.h macros.h ascii.h term.h unix.h structs.h proto.h
+
+@@ -438,36 +440,32 @@
+
+ GOBJ = grep.o alloc.o charset.o kanji.o regexp.o regsub.o u2s.o s2u.o
+
+-all: $(TARGET) grep
++all: $(PROG) grep
+
+-$(TARGET): $(OBJ) version.c
+- $(CC) $(CFLAGS) version.c
+- $(CC) -o $(TARGET) $(OBJ) version.o $(LIBS) $(FEPLIBS)
++$(PROG): $(OBJ) version.c
++ $(CC) -c $(CFLAGS) version.c
++ $(CC) -o $(PROG) $(OBJ) version.o $(LIBS) $(FEPLIBS)
+
+ grep: $(GOBJ)
+ $(CC) -o grep/grep $(GOBJ) $(LIBS) $(FEPLIBS)
+
+ debug: $(OBJ) version.c
+- $(CC) $(CFLAGS) version.c
+- $(CC) -o $(TARGET) -g $(OBJ) version.o $(LIBS)
++ $(CC) -c $(CFLAGS) version.c
++ $(CC) -o $(PROG) -g $(OBJ) version.o $(LIBS)
+
+ ctags:
+ ctags *.c *.h
+
+-install: $(TARGET)
+- -mkdir $(BINLOC)
+- cp $(TARGET) $(BINLOC)
+- chmod $(BINMOD) $(BINLOC)/$(TARGET)
+- $(STRIP) $(BINLOC)/$(TARGET)
+- -mkdir $(MANLOC)
+- cp $(MANFILE) $(MANLOC)
+- chmod $(MANMOD) $(MANLOC)/vim.1
+- -mkdir $(HELPLOC)
+- cp $(HELPFILE) $(HELPLOC)
+- chmod $(HELPMOD) $(HELPLOC)/vim.hlp
++install: $(PROG)
++ mkdir -p $(BINLOC)
++ ${BSD_INSTALL_PROGRAM} ${PROG} ${BINLOC}
++ mkdir -p $(MANLOC)
++ ${BSD_INSTALL_MAN} $(MANFILE) $(MANLOC)/jvim3.1
++ mkdir -p $(HELPLOC)
++ ${BSD_INSTALL_DATA} $(HELPFILE) $(HELPLOC)/jvim3.hlp
+
+ clean:
+- -rm -f $(OBJ) mkcmdtab.o version.o core $(TARGET) mkcmdtab cmdtab.h
++ -rm -f $(OBJ) mkcmdtab.o version.o core $(PROG) mkcmdtab cmdtab.h
+ -rm -f *.bak
+ -rm -f $(GOBJ)
+ # -rm -f jptab.h jptab
+@@ -490,97 +488,97 @@
+ ###########################################################################
+
+ alloc.o: alloc.c $(INCL)
+- $(CC) $(CFLAGS) alloc.c
++ $(CC) -c $(CFLAGS) alloc.c
+
+ unix.o: unix.c $(INCL)
+- $(CC) $(CFLAGS) unix.c
++ $(CC) -c $(CFLAGS) unix.c
+
+ buffer.o: buffer.c $(INCL)
+- $(CC) $(CFLAGS) buffer.c
++ $(CC) -c $(CFLAGS) buffer.c
+
+ charset.o: charset.c $(INCL)
+- $(CC) $(CFLAGS) charset.c
++ $(CC) -c $(CFLAGS) charset.c
+
+ cmdcmds.o: cmdcmds.c $(INCL)
+- $(CC) $(CFLAGS) cmdcmds.c
++ $(CC) -c $(CFLAGS) cmdcmds.c
+
+ cmdline.o: cmdline.c $(INCL) cmdtab.h ops.h
+- $(CC) $(CFLAGS) cmdline.c
++ $(CC) -c $(CFLAGS) cmdline.c
+
+ csearch.o: csearch.c $(INCL)
+- $(CC) $(CFLAGS) csearch.c
++ $(CC) -c $(CFLAGS) csearch.c
+
+ digraph.o: digraph.c $(INCL)
+- $(CC) $(CFLAGS) digraph.c
++ $(CC) -c $(CFLAGS) digraph.c
+
+ edit.o: edit.c $(INCL) ops.h
+- $(CC) $(CFLAGS) edit.c
++ $(CC) -c $(CFLAGS) edit.c
+
+ fileio.o: fileio.c $(INCL)
+- $(CC) $(CFLAGS) fileio.c
++ $(CC) -c $(CFLAGS) fileio.c
+
+ getchar.o: getchar.c $(INCL)
+- $(CC) $(CFLAGS) getchar.c
++ $(CC) -c $(CFLAGS) getchar.c
+
+ help.o: help.c $(INCL)
+- $(CC) $(CFLAGS) help.c
++ $(CC) -c $(CFLAGS) help.c
+
+ linefunc.o: linefunc.c $(INCL)
+- $(CC) $(CFLAGS) linefunc.c
++ $(CC) -c $(CFLAGS) linefunc.c
+
+ main.o: main.c $(INCL)
+- $(CC) $(CFLAGS) main.c
++ $(CC) -c $(CFLAGS) main.c
+
+ mark.o: mark.c $(INCL)
+- $(CC) $(CFLAGS) mark.c
++ $(CC) -c $(CFLAGS) mark.c
+
+ memfile.o: memfile.c $(INCL)
+- $(CC) $(CFLAGS) memfile.c
++ $(CC) -c $(CFLAGS) memfile.c
+
+ memline.o: memline.c $(INCL)
+- $(CC) $(CFLAGS) memline.c
++ $(CC) -c $(CFLAGS) memline.c
+
+ message.o: message.c $(INCL)
+- $(CC) $(CFLAGS) message.c
++ $(CC) -c $(CFLAGS) message.c
+
+ misccmds.o: misccmds.c $(INCL)
+- $(CC) $(CFLAGS) misccmds.c
++ $(CC) -c $(CFLAGS) misccmds.c
+
+ normal.o: normal.c $(INCL) ops.h
+- $(CC) $(CFLAGS) normal.c
++ $(CC) -c $(CFLAGS) normal.c
+
+ ops.o: ops.c $(INCL) ops.h
+- $(CC) $(CFLAGS) ops.c
++ $(CC) -c $(CFLAGS) ops.c
+
+ param.o: param.c $(INCL)
+- $(CC) $(CFLAGS) param.c
++ $(CC) -c $(CFLAGS) param.c
+
+ quickfix.o: quickfix.c $(INCL)
+- $(CC) $(CFLAGS) quickfix.c
++ $(CC) -c $(CFLAGS) quickfix.c
+
+ regexp.o: regexp.c $(INCL)
+- $(CC) $(CFLAGS) regexp.c
++ $(CC) -c $(CFLAGS) regexp.c
+
+ regsub.o: regsub.c $(INCL)
+- $(CC) $(CFLAGS) regsub.c
++ $(CC) -c $(CFLAGS) regsub.c
+
+ screen.o: screen.c $(INCL)
+- $(CC) $(CFLAGS) screen.c
++ $(CC) -c $(CFLAGS) screen.c
+
+ search.o: search.c $(INCL) ops.h
+- $(CC) $(CFLAGS) search.c
++ $(CC) -c $(CFLAGS) search.c
+
+ tag.o: tag.c $(INCL)
+- $(CC) $(CFLAGS) tag.c
++ $(CC) -c $(CFLAGS) tag.c
+
+ term.o: term.c $(INCL)
+- $(CC) $(CFLAGS) term.c
++ $(CC) -c $(CFLAGS) term.c
+
+ undo.o: undo.c $(INCL)
+- $(CC) $(CFLAGS) undo.c
++ $(CC) -c $(CFLAGS) undo.c
+
+ window.o: window.c $(INCL)
+- $(CC) $(CFLAGS) window.c
++ $(CC) -c $(CFLAGS) window.c
+
+ cmdtab.h: cmdtab.tab mkcmdtab
+ ./mkcmdtab cmdtab.tab cmdtab.h
+@@ -589,19 +587,19 @@
+ $(CC) -o mkcmdtab mkcmdtab.o
+
+ mkcmdtab.o: mkcmdtab.c
+- $(CC) $(CFLAGS) mkcmdtab.c
++ $(CC) -c $(CFLAGS) mkcmdtab.c
+
+ kanji.o: kanji.c $(INCL) jptab.h
+- $(CC) $(CFLAGS) kanji.c
++ $(CC) -c $(CFLAGS) kanji.c
+
+ s2u.o: s2u.c
+- $(CC) $(CFLAGS) s2u.c
++ $(CC) -c $(CFLAGS) s2u.c
+
+ u2s.o: u2s.c
+- $(CC) $(CFLAGS) u2s.c
++ $(CC) -c $(CFLAGS) u2s.c
+
+ track.o: track.c $(INCL) jptab.h
+- $(CC) $(CFLAGS) track.c
++ $(CC) -c $(CFLAGS) track.c
+
+ #jptab.h: jptab
+ # ./jptab > jptab.h
+@@ -610,19 +608,19 @@
+ $(CC) -o jptab jptab.o
+
+ jptab.o: jptab.c
+- $(CC) $(CFLAGS) jptab.c
++ $(CC) -c $(CFLAGS) jptab.c
+
+ fepseq.o: fepseq.c
+- $(CC) $(CFLAGS) fepseq.c
++ $(CC) -c $(CFLAGS) fepseq.c
+
+ fepbow.o: fepbow.c
+- $(CC) $(CFLAGS) fepbow.c
++ $(CC) -c $(CFLAGS) fepbow.c
+
+ fepcanna.o: fepcanna.c
+- $(CC) $(CFLAGS) -I/usr/local/canna/include fepcanna.c
++ $(CC) -c $(CFLAGS) -I${PREFIX}/include fepcanna.c
+
+ feponew.o: feponew.c
+- $(CC) $(CFLAGS) feponew.c
++ $(CC) -c $(CFLAGS) feponew.c
+
+ grep.o: grep/grep.c
+- $(CC) $(CFLAGS) -I. grep/grep.c
++ $(CC) -c $(CFLAGS) -I. grep/grep.c
diff --git a/japanese/jvim3/files/patch-ab b/japanese/jvim3/files/patch-src-term.c
index 80b26435c0ce..80b26435c0ce 100644
--- a/japanese/jvim3/files/patch-ab
+++ b/japanese/jvim3/files/patch-src-term.c