summaryrefslogtreecommitdiff
path: root/package/libs
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-10 13:46:21 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-10 14:06:50 +0200
commitb01f296f4f4e66ca6b15cb84d1c4bf4fbc259c3e (patch)
tree5e02fad5fd147033aa24f5bb488a6699d311a148 /package/libs
parentf8b6c9d82599d29e3d09185e3a190fc4d145e5ea (diff)
downloadmtk-20170518-b01f296f4f4e66ca6b15cb84d1c4bf4fbc259c3e.zip
mtk-20170518-b01f296f4f4e66ca6b15cb84d1c4bf4fbc259c3e.tar.gz
mtk-20170518-b01f296f4f4e66ca6b15cb84d1c4bf4fbc259c3e.tar.bz2
ncurses: provide libncurses compatibility symlinks in libncursesw
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/ncurses/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index 25b3807..94da02e 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -116,11 +116,17 @@ endef
define Package/libncursesw/install
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}w.so* $(1)/usr/lib/
+ for lib in ncurses panel menu form; do \
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$$$${lib}w.so* $(1)/usr/lib/; \
+ ln -s lib$$$${lib}w.so $(1)/usr/lib/lib$$$${lib}.so; \
+ done
endef
define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/* $(1)
+ for lib in ncurses panel menu form; do \
+ ln -s lib$$$${lib}w.so $(1)/usr/lib/lib$$$${lib}.so; \
+ done
$(INSTALL_DIR) $(2)/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ncursesw5-config $(2)/bin/
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \