2015-02-07 11:21:39 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=check
|
2021-03-15 00:51:10 +01:00
|
|
|
PKG_VERSION:=0.15.2
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=2
|
2015-02-07 11:21:39 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-09-21 11:06:48 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/libcheck/check/releases/download/$(PKG_VERSION)
|
2021-03-15 00:51:10 +01:00
|
|
|
PKG_HASH:=a8de4e0bacfb4d76dd1c618ded263523b53b85d92a146d8835eb1a52932fa20a
|
2015-02-07 11:21:39 +01:00
|
|
|
|
2019-10-30 03:36:14 +01:00
|
|
|
PKG_MAINTAINER:=Eduardo Abinader <eduardoabinader@gmail.com>
|
2019-09-02 15:15:08 +02:00
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
2015-02-07 11:21:39 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING.LESSER
|
|
|
|
|
2019-10-30 03:36:14 +01:00
|
|
|
CMAKE_INSTALL:=1
|
2015-02-07 11:21:39 +01:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2015-02-07 11:21:39 +01:00
|
|
|
|
|
|
|
define Package/check
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Unit testing framework for C
|
2016-09-21 11:06:48 +02:00
|
|
|
URL:=https://libcheck.github.io/check/
|
2015-02-07 11:21:39 +01:00
|
|
|
DEPENDS:= +libpthread +librt
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/check/description
|
|
|
|
Check features a simple interface for defining unit tests, putting little in
|
|
|
|
the way of the developer. Tests are run in a separate address space, so Check
|
|
|
|
can catch both assertion failures and code errors that cause segmentation
|
|
|
|
faults or other signals. The output from unit tests can be used within source
|
|
|
|
code editors and IDEs.
|
|
|
|
endef
|
|
|
|
|
2019-10-30 03:36:14 +01:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
2015-02-07 11:21:39 +01:00
|
|
|
|
|
|
|
define Package/check/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,check))
|