ncurses: provide libncurses compatibility symlinks in libncursesw
authorLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:37:26 +0000 (22:37 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:37:26 +0000 (22:37 +0000)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
SVN-Revision: 49358

package/libs/ncurses/Makefile

index 25b3807b29bca617a86febec3bd044ccc0c9cd74..94da02e2b9544be271df2c59822a91a3c88c910d 100644 (file)
@@ -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' \