summaryrefslogtreecommitdiff
path: root/package/libs/libreadline/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-04-01 15:11:32 +0000
committerNicolas Thill <nico@openwrt.org>2015-04-01 15:11:32 +0000
commit32085b22b01c8b8ddc4bc7ae602fa23a4a369a18 (patch)
tree33737c8907efc3334432f09bcb03d73a9bfde131 /package/libs/libreadline/Makefile
parentd1457d5db477cc7e6458ce6a2990c07c653e895d (diff)
downloadmtk-20170518-32085b22b01c8b8ddc4bc7ae602fa23a4a369a18.zip
mtk-20170518-32085b22b01c8b8ddc4bc7ae602fa23a4a369a18.tar.gz
mtk-20170518-32085b22b01c8b8ddc4bc7ae602fa23a4a369a18.tar.bz2
libreadline: cleanup Makefile, fix shlib perms
Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 45223
Diffstat (limited to 'package/libs/libreadline/Makefile')
-rw-r--r--package/libs/libreadline/Makefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/package/libs/libreadline/Makefile b/package/libs/libreadline/Makefile
index a9e6a22..21c8b21 100644
--- a/package/libs/libreadline/Makefile
+++ b/package/libs/libreadline/Makefile
@@ -19,6 +19,8 @@ PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
@@ -38,27 +40,22 @@ define Package/libreadline/description
history expansion on previous commands.
endef
-define Build/Configure
- $(CP) $(SCRIPT_DIR)/config.guess $(SCRIPT_DIR)/config.sub $(PKG_BUILD_DIR)/support/
- $(call Build/Configure/Default, \
- --enable-shared \
- --enable-static \
- --without-curses \
- bash_cv_wcwidth_broken=no \
- bash_cv_func_sigsetjmp=yes \
- )
-endef
+# prevent "autoreconf" from removing "aclocal.m4"
+PKG_REMOVE_FILES:=
+
+CONFIGURE_ARGS += \
+ --enable-shared \
+ --enable-static \
+ --with-curses \
+
+CONFIGURE_VARS += \
+ bash_cv_wcwidth_broken=no \
+ bash_cv_func_sigsetjmp=yes \
TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
TARGET_CFLAGS += $(FPIC)
-define Build/Compile
- $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- all install
-endef
-
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/