From a3e031ff4d52e4583793bc7a6660f628bea4c64e Mon Sep 17 00:00:00 2001 From: Austin Lane Date: Mon, 16 Dec 2024 12:29:12 -0500 Subject: [PATCH] Add package: abseil-cpp Signed-off-by: Austin Lane --- libs/abseil-cpp/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libs/abseil-cpp/Makefile diff --git a/libs/abseil-cpp/Makefile b/libs/abseil-cpp/Makefile new file mode 100644 index 00000000000000..7d635a92d9630f --- /dev/null +++ b/libs/abseil-cpp/Makefile @@ -0,0 +1,50 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=abseil-cpp +PKG_VERSION:=20240722.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/abseil/abseil-cpp/releases/download/$(PKG_VERSION) +PKG_HASH:=f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3 + +PKG_MAINTAINER:=Austin Lane +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/abseil-cpp + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Collection of C++ code designed to augment the C++ standard library + URL:=https://github.com/abseil/abseil-cpp + DEPENDS:=+libpthread +libstdcpp +endef + +define Package/abseil-cpp/description +Abseil is an open-source collection of C++ code (compliant to C++14) designed to augment the C++ standard library. +endef + +CMAKE_INSTALL:=1 + +CMAKE_HOST_OPTIONS += \ + -DCMAKE_CXX_STANDARD=14 \ + -DABSL_ENABLE_INSTALL=ON \ + -DABSL_USE_GOOGLETEST_HEAD=OFF + +CMAKE_OPTIONS += \ + -DCMAKE_CXX_STANDARD=14 \ + -DABSL_ENABLE_INSTALL=ON \ + -DABSL_USE_GOOGLETEST_HEAD=OFF + +TARGET_CFLAGS += $(FPIC) + +$(eval $(call BuildPackage,abseil-cpp)) +$(eval $(call HostBuild))