2017-01-30 02:10:56 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/google/protobuf
|
|
|
|
TERMUX_PKG_DESCRIPTION="Protocol buffers C++ library"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2018-08-01 22:48:16 +02:00
|
|
|
TERMUX_PKG_VERSION=3.6.1
|
2019-02-23 12:38:12 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2018-08-01 22:48:16 +02:00
|
|
|
TERMUX_PKG_SHA256=3d4e589d81b2006ca603c1ab712c9715a76227293032d05b26fca603f90b3f5b
|
2017-02-02 02:10:23 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/google/protobuf/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2017-01-30 02:10:56 +01:00
|
|
|
TERMUX_PKG_HOSTBUILD=yes
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-protoc=$TERMUX_PKG_HOSTBUILD_DIR/src/protoc"
|
2017-02-02 02:10:23 +01:00
|
|
|
# We extracted libprotobuf from protobuf earlier:
|
2017-01-30 02:10:56 +01:00
|
|
|
TERMUX_PKG_CONFLICTS="protobuf (<= 3.0.0)"
|
2017-02-02 02:10:23 +01:00
|
|
|
|
2017-07-12 00:38:50 +02:00
|
|
|
termux_step_host_build() {
|
|
|
|
"$TERMUX_PKG_SRCDIR/configure" --prefix=$TERMUX_PKG_HOSTBUILD_DIR/install
|
|
|
|
# We install protobuf so that libgrpc can use it in a hackish way:
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES install
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_extract_package() {
|
2017-02-02 02:10:23 +01:00
|
|
|
./autogen.sh
|
|
|
|
}
|