- Enable non-GPL readline implementation.
- Bump PORTREVISION. PR: ports/116687 Submitted by: Martin Kammerhofer <dada@pluto.tugraz.at>
This commit is contained in:
parent
1bed6d552b
commit
0f64b5f4ef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200387
4 changed files with 50 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= libedit
|
||||
PORTVERSION= 2.6.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ftp://ftp.astron.com/pub/libedit/ \
|
||||
http://www.canonware.com/download/libedit/
|
||||
|
@ -16,7 +17,6 @@ COMMENT= Command line editing library
|
|||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
CONFIGURE_ARGS= --disable-readline
|
||||
|
||||
MAN3= editline.3
|
||||
MAN5= editrc.5
|
||||
|
@ -39,6 +39,9 @@ MLINKS= editline.3 el_init.3 \
|
|||
editline.3 history.3
|
||||
MANCOMPRESSED= no
|
||||
|
||||
post-extract:
|
||||
${MV} ${WRKSRC}/readline ${WRKSRC}/editline
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|CFLAGS -O|CFLAGS|g ; \
|
||||
s|MAJOR="2"|MAJOR="6"|g' ${WRKSRC}/configure
|
||||
|
|
32
devel/libedit/files/patch-configure
Normal file
32
devel/libedit/files/patch-configure
Normal file
|
@ -0,0 +1,32 @@
|
|||
--- configure.orig 2006-11-24 18:13:57.000000000 +0100
|
||||
+++ configure 2007-09-25 20:39:26.000000000 +0200
|
||||
@@ -4601,7 +4601,7 @@
|
||||
LIB_S="libedit.so.$LIB_MAJOR"
|
||||
LIB_S_LINK="libedit.so"
|
||||
LIB_S_LINKS="$LIB_S $LIB_S_LINK"
|
||||
- S_LDFLAGS="-shared"
|
||||
+ S_LDFLAGS="-shared -Wl,-soname=${LIB_S_LINK}.${LIB_MAJOR}"
|
||||
elif test "x$ABI" = "xaout" ; then
|
||||
LIB_S="libedit.so.$LIB_MAJOR.$LIB_MINOR"
|
||||
LIB_S_LINKS=
|
||||
@@ -4623,17 +4623,9 @@
|
||||
|
||||
if test "x$enable_readline" = "xyes" ; then
|
||||
CCSRCS="$CCSRCS readline.c"
|
||||
- IHDRS="$IHDRS readline/readline.h"
|
||||
- IHDR_LINKS="readline.h readline/history.h"
|
||||
- HDR_DIRS="$HDR_DIRS include/readline"
|
||||
- LIB_A_LINKS="$LIB_A_LINKS libedit.a libreadline.a"
|
||||
- if test "x$ABI" = "xelf" ; then
|
||||
- LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.so"
|
||||
- elif test "x$ABI" = "xaout" ; then
|
||||
- LIB_S_LINKS="$LIB_S_LINKS $LIB_S libreadline.so.$LIB_MAJOR.$LIB_MINOR"
|
||||
- elif test "x$ABI" = "xmacho" ; then
|
||||
- LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.dylib"
|
||||
- fi
|
||||
+ IHDRS="$IHDRS editline/readline.h"
|
||||
+ IHDR_LINKS="readline.h editline/history.h"
|
||||
+ HDR_DIRS="$HDR_DIRS include/editline"
|
||||
fi
|
||||
|
||||
case "${host}" in
|
11
devel/libedit/files/patch-readline.c
Normal file
11
devel/libedit/files/patch-readline.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- readline.c.orig 2006-11-24 17:52:04.000000000 +0100
|
||||
+++ readline.c 2007-09-25 17:59:54.000000000 +0200
|
||||
@@ -61,7 +61,7 @@
|
||||
#include "el.h"
|
||||
#include "fcns.h" /* for EL_NUM_FCNS */
|
||||
#include "histedit.h"
|
||||
-#include "readline/readline.h"
|
||||
+#include "editline/readline.h"
|
||||
#include "filecomplete.h"
|
||||
|
||||
void rl_prep_terminal(int);
|
|
@ -1,4 +1,7 @@
|
|||
include/editline/history.h
|
||||
include/editline/readline.h
|
||||
include/histedit.h
|
||||
lib/libedit.a
|
||||
lib/libedit.so.6
|
||||
lib/libedit.so
|
||||
@dirrm include/editline
|
||||
|
|
Loading…
Reference in a new issue