mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-06 12:11:50 +00:00
This commit workarounds the following compiler error. timg-time.h:53:17: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long long') to 'time_t' (aka 'long') in initializer list [-Wc++11-narrowing]
26 lines
927 B
Bash
26 lines
927 B
Bash
TERMUX_PKG_HOMEPAGE=https://timg.sh/
|
|
TERMUX_PKG_DESCRIPTION="A terminal image and video viewer"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.6.1"
|
|
TERMUX_PKG_SRCURL=https://github.com/hzeller/timg/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=08147c41ce4cea61b6c494ad746e743b7c4501cfd247bec5134e8ede773bf2af
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="ffmpeg, graphicsmagick, libc++, libcairo, libdeflate, libjpeg-turbo, libexif, librsvg, libsixel, poppler, zlib"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DWITH_VIDEO_DECODING=on
|
|
-DWITH_OPENSLIDE_SUPPORT=off
|
|
-DWITH_GRAPHICSMAGICK=on
|
|
-DWITH_TURBOJPEG=on
|
|
-DWITH_STB_IMAGE=off
|
|
-DWITH_POPPLER=on
|
|
-DWITH_LIBSIXEL=on
|
|
-DWITH_RSVG=on
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
# error: non-constant-expression cannot be narrowed from type 'int64_t' to 'time_t' in initializer list [-Wc++11-narrowing]
|
|
CXXFLAGS+=" -Wno-c++11-narrowing"
|
|
}
|