This commit is contained in:
TriForceX
2021-03-13 22:13:38 -03:00
parent c77595adbd
commit b3ecc6e32d
7043 changed files with 119377 additions and 73694 deletions

29
package/cctz/Config.in Normal file
View File

@@ -0,0 +1,29 @@
config BR2_PACKAGE_CCTZ
bool "cctz"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
select BR2_TARGET_TZ_INFO # runtime dependency
help
CCTZ is a C++ library for translating between absolute
and civil times using the rules of a time zone.
https://github.com/google/cctz
if BR2_PACKAGE_CCTZ
config BR2_PACKAGE_CCTZ_INSTALL_TOOLS
bool "Install tools"
help
This option allows installing CCTZ tools.
config BR2_PACKAGE_CCTZ_INSTALL_EXAMPLES
bool "Install example programs"
help
This option allows installing CCTZ example programs.
endif
comment "cctz needs a toolchain w/ C++, threads, gcc >= 4.8"
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8

3
package/cctz/cctz.hash Normal file
View File

@@ -0,0 +1,3 @@
# locally computed
sha256 8615b20d4e33e02a271c3b93a3b208e3d7d5d66880f5f6208b03426e448f32db cctz-2.3.tar.gz
sha256 c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747 LICENSE.txt

27
package/cctz/cctz.mk Normal file
View File

@@ -0,0 +1,27 @@
################################################################################
#
# cctz
#
################################################################################
CCTZ_VERSION = 2.3
CCTZ_SITE = $(call github,google,cctz,v$(CCTZ_VERSION))
CCTZ_LICENSE = Apache-2.0
CCTZ_LICENSE_FILES = LICENSE.txt
CCTZ_INSTALL_STAGING = YES
CCTZ_CONF_OPTS = -DBUILD_TESTING=OFF
ifeq ($(BR2_PACKAGE_CCTZ_INSTALL_TOOLS),y)
CCTZ_CONF_OPTS += -DBUILD_TOOLS=ON
else
CCTZ_CONF_OPTS += -DBUILD_TOOLS=OFF
endif
ifeq ($(BR2_PACKAGE_CCTZ_INSTALL_EXAMPLES),y)
CCTZ_CONF_OPTS += -DBUILD_EXAMPLES=ON
else
CCTZ_CONF_OPTS += -DBUILD_EXAMPLES=OFF
endif
$(eval $(cmake-package))