aboutsummaryrefslogtreecommitdiff
path: root/devel/rlwrap
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-07-04 07:11:43 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-07-04 07:11:43 +0000
commit6d80918d43a261cc0cf9f10b44988fdbb4a0c2ea (patch)
tree2d37fe6696d25da9a81f841d8c1d8b15cffef46b /devel/rlwrap
parent63a209eceabd99a9e247d038d89767f75c9ffe78 (diff)
downloadports-6d80918d43a261cc0cf9f10b44988fdbb4a0c2ea.tar.gz
ports-6d80918d43a261cc0cf9f10b44988fdbb4a0c2ea.zip
Notes
Diffstat (limited to 'devel/rlwrap')
-rw-r--r--devel/rlwrap/Makefile19
-rw-r--r--devel/rlwrap/distinfo2
-rw-r--r--devel/rlwrap/files/patch-Makefile.in37
-rw-r--r--devel/rlwrap/files/patch-rlwrap.h16
4 files changed, 50 insertions, 24 deletions
diff --git a/devel/rlwrap/Makefile b/devel/rlwrap/Makefile
index d3a7649be6f0..bbd9ca2fce89 100644
--- a/devel/rlwrap/Makefile
+++ b/devel/rlwrap/Makefile
@@ -7,24 +7,27 @@
#
PORTNAME= rlwrap
-PORTVERSION= 0.10
+PORTVERSION= 0.12
CATEGORIES= devel
MASTER_SITES= http://utopia.knoware.nl/~hlub/uck/rlwrap/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500018
+BROKEN= "Requires readline 4.2 or newer"
+.endif
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
ALL_TARGET= # empty
-MANCOMPRESSED= no
MAN1= rlwrap.1
-post-patch:
- @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile.in
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/rlwrap/distinfo b/devel/rlwrap/distinfo
index 49bfce34b328..ff55a66dd2c4 100644
--- a/devel/rlwrap/distinfo
+++ b/devel/rlwrap/distinfo
@@ -1 +1 @@
-MD5 (rlwrap-0.10.tgz) = 4cc2ab18b15f96eb05dedfe365d0f0e1
+MD5 (rlwrap-0.12.tgz) = 27f04e27b202c4ee8b896e36f5067473
diff --git a/devel/rlwrap/files/patch-Makefile.in b/devel/rlwrap/files/patch-Makefile.in
index c5b62f4235fc..516a4eb60c2b 100644
--- a/devel/rlwrap/files/patch-Makefile.in
+++ b/devel/rlwrap/files/patch-Makefile.in
@@ -1,11 +1,34 @@
---- Makefile.in.orig Thu Sep 20 00:20:54 2001
-+++ Makefile.in Thu Sep 20 00:21:03 2001
-@@ -27,7 +27,7 @@
+--- Makefile.in.orig Fri Jun 21 18:13:49 2002
++++ Makefile.in Thu Jul 4 15:46:48 2002
+@@ -14,6 +14,8 @@
+ oldincludedir = /usr/include
- rlwrap: $(OBJECTS)
-- $(CC) -o rlwrap $(OBJECTS) @READLINELIB@ @READLINE_SUPPLIB@
-+ $(CC) -o rlwrap $(OBJECTS) @READLINELIB@ @READLINE_SUPPLIB@ @LDFLAGS@
++CPPFLAGS = @CPPFLAGS@
++
+ LDFLAGS = @LDFLAGS@ -L$(libdir)
+ LIBS = @LIBS@
+ SHELL = /bin/sh
+@@ -21,7 +23,7 @@
- $(OBJECTS) : rlwrap.h
+ CC = @CC@
+-CFLAGS= @CFLAGS@ -DVERSION=\"$(VERSION)\" -DSYSCONFDIR=\"$(sysconfdir)\" -Wall -I . -I $(includedir)
++CFLAGS= @CFLAGS@ $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -DSYSCONFDIR=\"$(sysconfdir)\" -Wall -I . -I $(includedir)
+ SOURCES = main.c signals.c utils.c readline.c pty.c completion.c term.c
+ OBJECTS = main.o signals.o utils.o readline.o pty.o completion.o term.o
+ TESTCLIENT=testclient
+@@ -50,10 +52,11 @@
+ check: @CHECK@
+
+ no_perl :
+- @echo "warning: test client not made because configure didn't find perl"
++ sed -e 's#\@PERLBIN\@#/usr/bin/perl#' $(TESTCLIENT).in > $(TESTCLIENT) &&\
++ chmod a+x $(TESTCLIENT)
+
+ _testclient:
+- perl -p -e 's#\@PERLBIN\@#$(PERL)#' $(TESTCLIENT).in > $(TESTCLIENT) &&\
++ sed -e 's#\@PERLBIN\@#$(PERL)#' $(TESTCLIENT).in > $(TESTCLIENT) &&\
+ chmod a+x $(TESTCLIENT)
+
+ _check: $(TESTCLIENT) rlwrap
diff --git a/devel/rlwrap/files/patch-rlwrap.h b/devel/rlwrap/files/patch-rlwrap.h
index b3491d2942d6..97d6d8fa7680 100644
--- a/devel/rlwrap/files/patch-rlwrap.h
+++ b/devel/rlwrap/files/patch-rlwrap.h
@@ -1,13 +1,13 @@
---- rlwrap.h.orig Sun Aug 12 18:59:20 2001
-+++ rlwrap.h Sun Aug 12 18:58:52 2001
-@@ -34,6 +34,10 @@
- #include <getopt.h>
- #endif
+--- rlwrap.h.orig Tue Sep 11 06:02:47 2001
++++ rlwrap.h Mon Mar 4 07:37:19 2002
+@@ -36,6 +36,10 @@
+ #include <stdlib.h>
+ #include <time.h>
+#ifdef HAVE_GETOPT_LONG
+#include <getopt.h>
+#endif
+
- #include <string.h>
- #include <errno.h>
- #include <stdarg.h>
+ #ifdef HAVE_GETOPT_H
+ #include <getopt.h>
+ #endif