[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

45
package/pcre2/Config.in Normal file
View File

@ -0,0 +1,45 @@
config BR2_PACKAGE_PCRE2
bool "pcre2"
help
Perl Compatible Regular Expressions. By default, only the
8-bits libpcre2 is built. To get the 16-bits and/or 32-bits
variants libpcre2-16/libpcre2-32, use the package
sub-options.
http://www.pcre.org/
if BR2_PACKAGE_PCRE2
config BR2_PACKAGE_PCRE2_16
bool "16-bit pcre2"
help
This option builds the 16-bits pcre2 library, i.e
'libpcre2-16'
config BR2_PACKAGE_PCRE2_32
bool "32-bit pcre2"
help
This option builds the 32-bits pcre2 library, i.e
'libpcre2-32'
config BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
bool
default y if BR2_aarch64
default y if BR2_arm || BR2_armeb
default y if BR2_i386 || BR2_x86_64
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
default y if BR2_powerpc
default y if BR2_sparc
config BR2_PACKAGE_PCRE2_JIT
bool "enable JIT support"
depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
help
This option enables JIT support
comment "JIT support needs a toolchain w/ threads"
depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS
endif

5
package/pcre2/pcre2.hash Normal file
View File

@ -0,0 +1,5 @@
# Locally calculated after checking pgp signature:
# https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.40/pcre2-10.40.tar.bz2.sig
sha256 14e4b83c4783933dc17e964318e6324f7cae1bc75d8f3c79bc6969f00c159d68 pcre2-10.40.tar.bz2
# Locally computed
sha256 87d884eceb7fc54611470ce9f74280d28612b0c877adfc767e9676892a638987 LICENCE

35
package/pcre2/pcre2.mk Normal file
View File

@ -0,0 +1,35 @@
################################################################################
#
# pcre2
#
################################################################################
PCRE2_VERSION = 10.40
PCRE2_SITE = https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$(PCRE2_VERSION)
PCRE2_SOURCE = pcre2-$(PCRE2_VERSION).tar.bz2
PCRE2_LICENSE = BSD-3-Clause
PCRE2_LICENSE_FILES = LICENCE
PCRE2_CPE_ID_VENDOR = pcre
PCRE2_INSTALL_STAGING = YES
PCRE2_CONFIG_SCRIPTS = pcre2-config
PCRE2_CONF_OPTS += --enable-pcre2-8
PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_16),--enable-pcre2-16,--disable-pcre2-16)
PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_32),--enable-pcre2-32,--disable-pcre2-32)
ifeq ($(BR2_PACKAGE_PCRE2_JIT),y)
PCRE2_CONF_OPTS += --enable-jit
else
PCRE2_CONF_OPTS += --disable-jit
endif
# disable fork usage if not available
ifeq ($(BR2_USE_MMU),)
PCRE2_CONF_OPTS += --disable-pcre2grep-callout
endif
# needed for qt6base
HOST_PCRE2_CONF_OPTS = --enable-pcre2-16
$(eval $(autotools-package))
$(eval $(host-autotools-package))