From: RISCi_ATOM Date: Wed, 5 Jun 2024 22:04:11 +0000 (-0400) Subject: tools/bzip2: switch to cmake X-Git-Tag: v6.1-20240701~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=676bfcc81382da192e9868b94d8f7d4340ec482a;p=librecmc%2Flibrecmc.git tools/bzip2: switch to cmake Fixes portability issues CMakeLists.txt is a stripped-down backport from bzip2 upstream --- diff --git a/tools/bzip2/Makefile b/tools/bzip2/Makefile index 0c5a92849a..86df143826 100644 --- a/tools/bzip2/Makefile +++ b/tools/bzip2/Makefile @@ -22,31 +22,11 @@ PKG_CPE_ID:=cpe:/a:bzip:bzip2 HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk HOSTCC := $(HOSTCC_NOCACHE) HOST_CFLAGS += $(HOST_FPIC) -HOST_MAKE_FLAGS+= \ - CFLAGS="$(HOST_CFLAGS)" \ - LDFLAGS="$(HOST_LDFLAGS)" \ - ENABLE_BIN_SHARED=1 \ - ENABLE_BIN_STATIC=0 \ - ENABLE_LIB_SHARED=1 \ - ENABLE_LIB_STATIC=1 \ - ENABLE_DEV=1 \ - ENABLE_DOCS=1 \ - ENABLE_TESTS=0 \ - PREFIX="$(HOST_BUILD_PREFIX)" - -define Host/Configure -endef - -define Host/Uninstall - $(call Host/Compile/Default,uninstall) - $(call Host/Compile/Default,clean) -endef - -define Host/Clean -endef +CMAKE_HOST_OPTIONS += -DENABLE_EXAMPLES=off $(eval $(call HostBuild))