aboutsummaryrefslogtreecommitdiffstats
path: root/editors/2bsd-vi
diff options
context:
space:
mode:
Diffstat (limited to 'editors/2bsd-vi')
-rw-r--r--editors/2bsd-vi/Makefile3
-rw-r--r--editors/2bsd-vi/files/patch-mapalloc.c17
-rw-r--r--editors/2bsd-vi/files/stable-Makefile.patch15
3 files changed, 34 insertions, 1 deletions
diff --git a/editors/2bsd-vi/Makefile b/editors/2bsd-vi/Makefile
index 6a888d7bad28..bd1ef39da03c 100644
--- a/editors/2bsd-vi/Makefile
+++ b/editors/2bsd-vi/Makefile
@@ -7,6 +7,7 @@
PORTNAME= vi
PORTVERSION= 040605
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ex-vi/
@@ -22,7 +23,7 @@ MLINKS= ex.1 edit.1 vi.1 vedit.1 vi.1 view.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-BROKEN= Requires FreeBSD-5.0 or newer
+EXTRA_PATCHES+= ${FILESDIR}/stable-Makefile.patch
.endif
.include <bsd.port.post.mk>
diff --git a/editors/2bsd-vi/files/patch-mapalloc.c b/editors/2bsd-vi/files/patch-mapalloc.c
new file mode 100644
index 000000000000..0d8513eb31af
--- /dev/null
+++ b/editors/2bsd-vi/files/patch-mapalloc.c
@@ -0,0 +1,17 @@
+--- /tmp/mapmalloc.c Mon Jul 12 16:28:16 2004
++++ mapmalloc.c Mon Jul 12 16:28:37 2004
+@@ -550,14 +550,6 @@
+ return NULL;
+ }
+
+-/*ARGSUSED*/
+-char *
+-valloc(size)
+-size_t size;
+-{
+- return NULL;
+-}
+-
+ char *
+ mallinfo()
+ {
diff --git a/editors/2bsd-vi/files/stable-Makefile.patch b/editors/2bsd-vi/files/stable-Makefile.patch
new file mode 100644
index 000000000000..f333e21c5829
--- /dev/null
+++ b/editors/2bsd-vi/files/stable-Makefile.patch
@@ -0,0 +1,15 @@
+--- /tmp/Makefile Mon Jul 12 16:26:36 2004
++++ Makefile Mon Jul 12 16:26:48 2004
+@@ -144,9 +144,9 @@
+ # advanced multibyte character support etc. which might not be present
+ # on your system.
+ #
+-REINC = -I./libuxre -DUXRE
+-RELIB = -L./libuxre -luxre
+-RETGT = uxre
++#REINC = -I./libuxre -DUXRE
++#RELIB = -L./libuxre -luxre
++#RETGT = uxre
+
+ #
+ # These settings should be correct for any modern Unix.