1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 10:46:19 +00:00
Lakka-LibreELEC/packages/addons/addon-depends/protobuf/package.mk

33 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="protobuf"
PKG_VERSION="3.20.3"
PKG_SHA256="e51cc8fc496f893e2a48beb417730ab6cbcb251142ad8b2cd1951faa5c76fe3d"
PKG_LICENSE="OSS"
PKG_SITE="https://developers.google.com/protocol-buffers/"
PKG_URL="https://github.com/google/${PKG_NAME}/releases/download/v${PKG_VERSION}/${PKG_NAME}-cpp-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST="toolchain:host zlib:host"
PKG_DEPENDS_TARGET="toolchain zlib protobuf:host"
PKG_LONGDESC="Protocol Buffers for Google's data interchange format."
PKG_CMAKE_OPTS_HOST="-DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \
-DBUILD_SHARED_LIBS=0 \
-Dprotobuf_BUILD_TESTS=0 \
-Dprotobuf_BUILD_EXAMPLES=0 \
-Dprotobuf_WITH_ZLIB=1"
PKG_CMAKE_OPTS_TARGET="${PKG_CMAKE_OPTS_HOST}"
configure_package() {
PKG_CMAKE_SCRIPT="${PKG_BUILD}/cmake/CMakeLists.txt"
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
# HACK: we have protoc in ${TOOLCHAIN}/bin but it seems
# the one from sysroot prefix is picked when building hyperion. remove it!
rm -f ${SYSROOT_PREFIX}/usr/bin/protoc
}