mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
protobuf: update to 3.1.0, update to use cmake
This commit is contained in:
@@ -14,23 +14,30 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="protobuf"
|
||||
PKG_VERSION="2.6.1"
|
||||
PKG_VERSION="3.1.0"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
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-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST="toolchain zlib"
|
||||
PKG_URL="https://github.com/google/$PKG_NAME/releases/download/v$PKG_VERSION/$PKG_NAME-cpp-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST="toolchain zlib:host"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib protobuf:host"
|
||||
PKG_SECTION="devel"
|
||||
PKG_SHORTDESC="protobuf: Protocol Buffers - Google's data interchange format"
|
||||
PKG_LONGDESC="protobuf: Protocol Buffers - Google's data interchange format"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="--enable-static --disable-shared"
|
||||
PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static --with-protoc=$ROOT/$TOOLCHAIN/bin/protoc"
|
||||
PKG_CMAKE_SCRIPT="cmake/CMakeLists.txt"
|
||||
|
||||
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"
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/bin
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user