[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

17
package/re2/Config.in Normal file
View File

@ -0,0 +1,17 @@
config BR2_PACKAGE_RE2
bool "re2"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # needs C++11
depends on BR2_TOOLCHAIN_HAS_THREADS
help
RE2 is a fast, safe, thread-friendly alternative
to backtracking regular expression engines like
those used in PCRE, Perl, and Python.
It is a C++ library.
https://github.com/google/re2
comment "re2 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/re2/re2.hash Normal file
View File

@ -0,0 +1,3 @@
# locally calculated
sha256 f89c61410a072e5cbcf8c27e3a778da7d6fd2f2b5b1445cd4f4508bee946ab0f re2-2022-06-01.tar.gz
sha256 6040cda75d90b1738292a631d89934c411ef7ffd543c4d6a1b7edfc8edf29449 LICENSE

45
package/re2/re2.mk Normal file
View File

@ -0,0 +1,45 @@
################################################################################
#
# re2
#
################################################################################
RE2_VERSION = 2022-06-01
RE2_SITE = $(call github,google,re2,$(RE2_VERSION))
RE2_LICENSE = BSD-3-Clause
RE2_LICENSE_FILES = LICENSE
RE2_INSTALL_STAGING = YES
RE2_MAKE_OPTS = \
$(TARGET_CONFIGURE_OPTS) \
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
define RE2_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(RE2_MAKE_OPTS) \
-C $(@D) $(if $(BR2_STATIC_LIBS),static)
endef
define RE2_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(RE2_MAKE_OPTS) \
DESTDIR="$(STAGING_DIR)" prefix=/usr -C $(@D) \
$(if $(BR2_STATIC_LIBS),static-install,install)
endef
define RE2_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(RE2_MAKE_OPTS) \
DESTDIR="$(TARGET_DIR)" prefix=/usr -C $(@D) \
$(if $(BR2_STATIC_LIBS),static-install,install)
endef
define HOST_RE2_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
-C $(@D)
endef
define HOST_RE2_INSTALL_CMDS
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
-C $(@D) DESTDIR="$(HOST_DIR)" prefix=/usr install
endef
$(eval $(generic-package))
$(eval $(host-generic-package))