aboutsummaryrefslogtreecommitdiffstats
path: root/community/afpfs-ng/libedit.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-07 09:58:23 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-10-07 15:43:45 +0200
commita038dbd7871bfe803c8052c49264e80f129507ea (patch)
tree38599e24c8c73d0bb98e875d68c8ef70aa1a67e9 /community/afpfs-ng/libedit.patch
parent65f4a9478485674a2f7d4fe2dc0f6191deb0c591 (diff)
downloadaports-a038dbd7871bfe803c8052c49264e80f129507ea.tar.bz2
aports-a038dbd7871bfe803c8052c49264e80f129507ea.tar.xz
community/afpfs-ng: move from main
only kodi needs it
Diffstat (limited to 'community/afpfs-ng/libedit.patch')
-rw-r--r--community/afpfs-ng/libedit.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/afpfs-ng/libedit.patch b/community/afpfs-ng/libedit.patch
new file mode 100644
index 0000000000..dc07a790f9
--- /dev/null
+++ b/community/afpfs-ng/libedit.patch
@@ -0,0 +1,38 @@
+--- ./cmdline/Makefile.am.orig
++++ ./cmdline/Makefile.am
+@@ -7,8 +7,8 @@
+
+ afpcmd_SOURCES = cmdline_afp.c cmdline_main.c cmdline_testafp.c
+
+-afpcmd_LDADD = -lreadline -lncurses $(top_builddir)/lib/libafpclient.la
+-afpcmd_CFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
++afpcmd_LDADD = $(libedit_LIBS) -lncurses $(top_builddir)/lib/libafpclient.la
++afpcmd_CFLAGS = $(libedit_CFLAGS) -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 @CFLAGS@
+
+ install-data-hook:
+ mkdir -p $(DESTDIR)/$(mandir)/man1
+--- ./cmdline/cmdline_main.c.orig
++++ ./cmdline/cmdline_main.c
+@@ -12,8 +12,8 @@
+ #include <string.h>
+ #include <termios.h>
+ #include <unistd.h>
+-#include <readline/readline.h>
+-#include <readline/history.h>
++#include <readline.h>
++#include <histedit.h>
+ #include <getopt.h>
+ #include <ctype.h>
+ #include <signal.h>
+--- ./configure.ac.orig
++++ ./configure.ac
+@@ -16,8 +16,8 @@
+ # Checks for libraries.
+ # FIXME: Replace `main' with a function in `-lncurses':
+ AC_CHECK_LIB([ncurses], [main])
+-AC_CHECK_LIB([readline],[readline])
+ AC_CHECK_LIB([pthread], [pthread_create])
+++PKG_CHECK_MODULES([libedit], [libedit])
+
+
+