2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/google/glog
|
|
|
|
TERMUX_PKG_DESCRIPTION="Logging library for C++"
|
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-06-13 23:03:59 +02:00
|
|
|
TERMUX_PKG_VERSION=0.5.0
|
2022-02-08 09:56:38 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/google/glog/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2021-06-13 23:03:59 +02:00
|
|
|
TERMUX_PKG_SHA256=eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-02-08 09:56:38 +01:00
|
|
|
TERMUX_PKG_DEPENDS="gflags, libc++"
|
|
|
|
TERMUX_PKG_BUILD_DEPENDS="gflags-static"
|
2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_BREAKS="google-glog-dev"
|
|
|
|
TERMUX_PKG_REPLACES="google-glog-dev"
|
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-DBUILD_SHARED_LIBS=ON"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
LDFLAGS+=" -llog"
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR"/libglog.pc.in \
|
|
|
|
"$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
sed -i "s|@prefix@|$TERMUX_PREFIX|g" "$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
sed -i "s|@exec_prefix@|$TERMUX_PREFIX|g" "$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
sed -i "s|@libdir@|$TERMUX_PREFIX/lib|g" "$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
sed -i "s|@includedir@|$TERMUX_PREFIX/include|g" "$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
sed -i "s|@VERSION@|$TERMUX_PKG_VERSION|g" "$TERMUX_PREFIX"/lib/pkgconfig/libglog.pc
|
|
|
|
}
|