From a3c2a15bd3b1e3baa86bcf0653db9328e48bae76 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Thu, 18 Jul 2013 12:19:39 +0800 Subject: ve: 1.1 (initial commit) --- ve/0001-Fix-incorrent-build-parameters.patch | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 ve/0001-Fix-incorrent-build-parameters.patch (limited to 've/0001-Fix-incorrent-build-parameters.patch') diff --git a/ve/0001-Fix-incorrent-build-parameters.patch b/ve/0001-Fix-incorrent-build-parameters.patch new file mode 100644 index 0000000..5d8b236 --- /dev/null +++ b/ve/0001-Fix-incorrent-build-parameters.patch @@ -0,0 +1,63 @@ +From 94b15e800eb68da6fd1ca6c667cbdfabf5e6cbfe Mon Sep 17 00:00:00 2001 +From: LAN-TW +Date: Thu, 18 Jul 2013 12:05:50 +0800 +Subject: [PATCH] Fix incorrent build parameters + +--- + Makefile | 15 ++++++++------- + term.c | 1 - + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/Makefile b/Makefile +index bc9b288..7cff95a 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,15 +4,15 @@ OBJ = edit.o term.o screen.o stuff.o io.o editor.o + #---------------------------------------------------------- + # FreeBSD + #---------------------------------------------------------- +-CFLAGS ?= -O -pipe +-CFLAGS += -DVEDITOR +-LIBS = -ltermcap -lcompat ++#CFLAGS ?= -O -pipe ++#CFLAGS += -DVEDITOR ++#LIBS = -ltermcap -lcompat + + #---------------------------------------------------------- + # Linux + #---------------------------------------------------------- +-#CFLAGS = -DVEDITOR -DLINUX +-#LIBS = -ltermcap -lbsd ++CFLAGS = -DVEDITOR -DLINUX ++LIBS = -lncurses + + #---------------------------------------------------------- + # SunOS +@@ -26,9 +26,10 @@ clean: + rm -f *.o ve + + install: all ++ mkdir -p $(PREFIX)/bin + mkdir -p $(PREFIX)/share/ve +- $(BSD_INSTALL_PROGRAM) ve $(PREFIX)/bin +- $(BSD_INSTALL_DATA) ve.hlp $(PREFIX)/share/ve ++ install ve $(PREFIX)/bin ++ install -m 444 ve.hlp $(PREFIX)/share/ve + + ve: $(OBJ) + $(CC) $(CFLAGS) -o ve $(OBJ) $(LIBS) +diff --git a/term.c b/term.c +index 1a71135..f4aa104 100644 +--- a/term.c ++++ b/term.c +@@ -15,7 +15,6 @@ + #endif + + #ifdef LINUX +-#include + #endif + #define stty(fd, data) tcsetattr( fd, TCSETS, data ) + #define gtty(fd, data) tcgetattr( fd, data ) +-- +1.8.3.3 + -- cgit