[OpenWrt-Devel] [PATCH 1/8] ncurses: add cygwin compatibility
Rosen Penev
rosenp at gmail.com
Mon Oct 7 21:02:18 EDT 2019
From: Alexey Loukianov <lx2 at lexa2.ru>
* Properly handle ".exe" suffix for cygwin.
Signed-off-by: Alexey Loukianov <lx2 at lexa2.ru>
(bumped PKG_RELEASE)
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
package/libs/ncurses/Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index e22eb2b893..07e0fb5c5f 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ncurses
PKG_VERSION:=6.1
-PKG_RELEASE:=5
+PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
@@ -26,6 +26,12 @@ PKG_BUILD_DEPENDS:=ncurses/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
+ifeq (CYGWIN,$(findstring CYGWIN,$(HOST_OS)))
+EXEC_SUFFIX:=.exe
+else
+EXEC_SUFFIX:=
+endif
+
define Package/terminfo
SECTION:=libs
CATEGORY:=Libraries
@@ -167,7 +173,7 @@ endef
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) libs
- $(MAKE) -C $(HOST_BUILD_DIR)/progs tic
+ $(MAKE) -C $(HOST_BUILD_DIR)/progs tic$(EXEC_SUFFIX)
endef
$(eval $(call HostBuild))
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list