aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-03 05:40:04 +0800
committerobrien <obrien@FreeBSD.org>2002-06-03 05:40:04 +0800
commit56326b87ef43e6d7c5b00fb22745ad139980f98c (patch)
tree7737d8d0251afb9673fc7dac672049fe3b4407cf /editors
parent2672578c09df55dfba98e2451cc9a8fecff6bb47 (diff)
downloadfreebsd-ports-gnome-56326b87ef43e6d7c5b00fb22745ad139980f98c.tar.gz
freebsd-ports-gnome-56326b87ef43e6d7c5b00fb22745ad139980f98c.tar.zst
freebsd-ports-gnome-56326b87ef43e6d7c5b00fb22745ad139980f98c.zip
Fix building fails when compiled w/ perl interpreter option.
PR: 36124 Submitted by: Anton Berezin <tobez@tobez.org>
Diffstat (limited to 'editors')
-rw-r--r--editors/vim5/files/patch-0119
1 files changed, 15 insertions, 4 deletions
diff --git a/editors/vim5/files/patch-01 b/editors/vim5/files/patch-01
index a3ef884ab8ce..12e61ee2bc84 100644
--- a/editors/vim5/files/patch-01
+++ b/editors/vim5/files/patch-01
@@ -1,6 +1,6 @@
---- Makefile.orig Sun Jan 16 06:03:04 2000
-+++ Makefile Sat May 6 13:04:12 2000
-@@ -302,6 +302,7 @@
+--- Makefile.orig Sat Jun 1 18:57:12 2002
++++ Makefile Sat Jun 1 18:53:56 2002
+@@ -303,6 +303,7 @@
# just an example:
#CONF_ARGS = --exec-prefix=/usr
@@ -8,7 +8,7 @@
# GUI - For creating Vim with GUI (gvim) (B)
# Uncomment this line when you don't want to get the GUI version, although you
-@@ -1444,56 +1445,56 @@
+@@ -1446,56 +1447,56 @@
installlinks: $(GUI_TARGETS) $(BINDIR)/$(EXTARGET) $(BINDIR)/$(VIEWTARGET) $(BINDIR)/$(RVIMTARGET) $(BINDIR)/$(RVIEWTARGET)
$(BINDIR)/$(EXTARGET):
@@ -81,3 +81,14 @@
uninstall: uninstall_runtime
-rm -f $(BINDIR)/$(VIMTARGET)
+@@ -1640,7 +1641,9 @@
+ -@echo '#include "vim.h"' >> pathdef.c
+ -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
+ -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
+- -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' >> pathdef.c
++ -@echo 'char_u *all_cflags = (char_u *)' >> pathdef.c
++ -@echo '$(CC) -c -I$(srcdir) $(ALL_CFLAGS)' | \
++ sed -e 's/"/\\"/g' | sed -e 's/^/"/; s/$$/";/' >> pathdef.c
+ -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS)";' >> pathdef.c
+ -@echo 'char_u *compiled_user = (char_u *)"' | tr -d \\012 >>pathdef.c
+ -@whoami | tr -d \\012 >>pathdef.c