From 26771c14f8d64623134865150448615bace841ff Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 29 Oct 2019 19:36:14 -0700 Subject: [PATCH] check: Update to 0.13.0 Switch to CMake. Allows to simplify the Makefile. Replaced InstallDev section with CMAKE_INSTALL. Added PKG_BUILD_PARALLEL for faster compilation. Signed-off-by: Rosen Penev --- libs/check/Makefile | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/libs/check/Makefile b/libs/check/Makefile index cead30e08..35f90c306 100644 --- a/libs/check/Makefile +++ b/libs/check/Makefile @@ -8,20 +8,22 @@ include $(TOPDIR)/rules.mk PKG_NAME:=check -PKG_VERSION:=0.12.0 -PKG_RELEASE:=2 +PKG_VERSION:=0.13.0 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/libcheck/check/releases/download/$(PKG_VERSION) -PKG_HASH:=464201098bee00e90f5c4bdfa94a5d3ead8d641f9025b560a27755a83b824234 +PKG_HASH:=c4336b31447acc7e3266854f73ec188cdb15554d0edd44739631da174a569909 +PKG_MAINTAINER:=Eduardo Abinader PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=COPYING.LESSER -PKG_MAINTAINER:=Eduardo Abinader -PKG_INSTALL:=1 +CMAKE_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk define Package/check SECTION:=libs @@ -39,19 +41,9 @@ define Package/check/description code editors and IDEs. endef -TARGET_CFLAGS += $(FPIC) -CONFIGURE_VARS += \ - hw_cv_func_snprintf_c99=yes \ - hw_cv_func_vsnprintf_c99=yes \ - -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include - $(CP) $(PKG_INSTALL_DIR)/usr/include/check*.h $(1)/usr/include/ - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.{a,so*} $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/check.pc $(1)/usr/lib/pkgconfig/ -endef +CMAKE_OPTIONS += \ + -DBUILD_TESTING=OFF \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON define Package/check/install $(INSTALL_DIR) $(1)/usr/lib