2018-09-25 03:30:49 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=re2
|
2021-03-21 01:06:08 +00:00
|
|
|
PKG_VERSION:=2021-02-02
|
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2018-09-25 03:30:49 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/google/re2/tar.gz/$(PKG_VERSION)?
|
2021-03-21 01:06:08 +00:00
|
|
|
PKG_HASH:=1396ab50c06c1a8885fb68bf49a5ecfd989163015fd96699a180d6414937f33f
|
2018-09-25 03:30:49 +00:00
|
|
|
|
2020-04-14 05:18:52 +00:00
|
|
|
PKG_MAINTAINER:=
|
2018-09-25 03:30:49 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2019-04-30 01:45:51 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2018-09-25 03:30:49 +00:00
|
|
|
|
2020-04-14 05:18:52 +00:00
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
|
2018-09-25 03:30:49 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2018-09-25 03:30:49 +00:00
|
|
|
|
|
|
|
define Package/re2
|
2020-04-14 05:18:52 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libstdcpp
|
|
|
|
TITLE:=RE2 - C++ regular expression library
|
|
|
|
URL:=https://github.com/google/re2
|
|
|
|
ABI_VERSION:=6
|
2018-09-25 03:30:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/re2/description
|
2020-04-14 05:18:52 +00:00
|
|
|
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.
|
2018-09-25 03:30:49 +00:00
|
|
|
endef
|
|
|
|
|
2020-04-14 05:18:52 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DBUILD_SHARED_LIBS=ON
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-Wl,--as-needed,--gc-sections
|
|
|
|
|
2018-09-25 03:30:49 +00:00
|
|
|
define Package/re2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-04-14 05:18:52 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libre2.so $(1)/usr/lib/
|
2018-09-25 03:30:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,re2))
|