0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 04:31:30 +00:00
Ian Leonard eeab3d92b4 addons: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:33:41 +00:00

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.14.0"
PKG_SHA256="50ec5a07c0c55d4ec536dd49021f2e194a26bfdbc531d03d1e9d4d3e27175659"
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
}