aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-08-30 00:31:26 +0800
committerhrs <hrs@FreeBSD.org>2014-08-30 00:31:26 +0800
commit15ce262a413f93dc6a3bc1507124d317bfcea5aa (patch)
treefa4f75830211bbf37e4b91d0f6b2326e24d494b7 /japanese
parent8ef91900cb6c0192482fd0d5672dc45c44c44079 (diff)
downloadfreebsd-ports-gnome-15ce262a413f93dc6a3bc1507124d317bfcea5aa.tar.gz
freebsd-ports-gnome-15ce262a413f93dc6a3bc1507124d317bfcea5aa.tar.zst
freebsd-ports-gnome-15ce262a413f93dc6a3bc1507124d317bfcea5aa.zip
- Fix build. A "grep" directory conflicted with "grep" target.
- Move generation of a file to post-build.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/jvim3/Makefile7
-rw-r--r--japanese/jvim3/files/patch-src-makjunix.mak12
2 files changed, 10 insertions, 9 deletions
diff --git a/japanese/jvim3/Makefile b/japanese/jvim3/Makefile
index d29f5cc445a1..443248dcf511 100644
--- a/japanese/jvim3/Makefile
+++ b/japanese/jvim3/Makefile
@@ -92,13 +92,12 @@ FEPLIBS+= -lonew-wnn7 -ljd -lcrypt
.endif
post-build:
- ${CP} ${WRKSRC}/doc.j/tutor/tutor.j ${WRKSRC}/doc.j
+ ${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/grep \
- ${STAGEDIR}${PREFIX}/bin/jgrep
- ${ECHO_CMD} "${JVIM3RC}" > ${WRKSRC}/jvim3rc.dist
+ ${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}
diff --git a/japanese/jvim3/files/patch-src-makjunix.mak b/japanese/jvim3/files/patch-src-makjunix.mak
index 04b60f200fda..690346cb361b 100644
--- a/japanese/jvim3/files/patch-src-makjunix.mak
+++ b/japanese/jvim3/files/patch-src-makjunix.mak
@@ -1,5 +1,5 @@
---- src/makjunix.mak.orig 2014-03-14 23:13:33.000000000 +0900
-+++ src/makjunix.mak 2014-03-14 23:20:30.000000000 +0900
+--- src/makjunix.mak.orig 2014-08-30 01:12:22.000000000 +0900
++++ src/makjunix.mak 2014-08-30 01:19:58.000000000 +0900
@@ -72,19 +72,20 @@
@@ -59,7 +59,7 @@
GOBJ = grep.o alloc.o charset.o kanji.o regexp.o regsub.o u2s.o s2u.o
-all: $(TARGET) grep
-+all: $(PROG) grep
++all: $(PROG) grep.bin
-$(TARGET): $(OBJ) version.c
- $(CC) $(CFLAGS) version.c
@@ -68,8 +68,10 @@
+ $(CC) -c $(CFLAGS) version.c
+ $(CC) -o $(PROG) $(OBJ) version.o $(LIBS) $(FEPLIBS)
- grep: $(GOBJ)
- $(CC) -o grep/grep $(GOBJ) $(LIBS) $(FEPLIBS)
+-grep: $(GOBJ)
+- $(CC) -o grep/grep $(GOBJ) $(LIBS) $(FEPLIBS)
++grep.bin: $(GOBJ)
++ $(CC) -o grep.bin $(GOBJ) $(LIBS) $(FEPLIBS)
debug: $(OBJ) version.c
- $(CC) $(CFLAGS) version.c