diff --git a/graphics/timg/Makefile b/graphics/timg/Makefile index 798c98bf0721..79f6f8b10af4 100644 --- a/graphics/timg/Makefile +++ b/graphics/timg/Makefile @@ -1,37 +1,34 @@ PORTNAME= timg DISTVERSIONPREFIX= v DISTVERSION= 1.6.1 CATEGORIES= graphics MAINTAINER= uzsolt@FreeBSD.org COMMENT= Terminal Image and Video Viewer WWW= https://github.com/hzeller/timg LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= i386 -NOT_FOR_ARCHS_REASON= non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long long') to 'long' in initializer list - LIB_DEPENDS= libavutil.so:multimedia/ffmpeg \ libdeflate.so:archivers/libdeflate \ libexif.so:graphics/libexif \ libGraphicsMagick.so:graphics/GraphicsMagick \ libpng.so:graphics/png \ libsixel.so:graphics/libsixel \ libturbojpeg.so:graphics/libjpeg-turbo USES= cmake compiler:c++17-lang pkgconfig USE_GITHUB= yes GH_ACCOUNT= hzeller # timg requires libavutil, contained in multimedia/ffmpeg # isn't splitted libavcodec, libavutil, etc. CMAKE_ON= WITH_VIDEO_DECODING WITH_VIDEO_DEVICE CMAKE_OFF= TIMG_VERSION_FROM_GIT WITH_OPENSLIDE_SUPPORT WITH_POPPLER \ WITH_RSVG PLIST_FILES= bin/timg \ share/man/man1/timg.1.gz .include diff --git a/graphics/timg/files/patch-src_timg-time.h b/graphics/timg/files/patch-src_timg-time.h new file mode 100644 index 000000000000..d25219cb8bcc --- /dev/null +++ b/graphics/timg/files/patch-src_timg-time.h @@ -0,0 +1,19 @@ +--- src/timg-time.h.orig 2025-01-30 13:44:32 UTC ++++ src/timg-time.h +@@ -50,13 +50,13 @@ class Duration { (public) + } + + static constexpr Duration Millis(int64_t ms) { +- return {ms / 1000, (ms % 1000) * 1000000}; ++ return {static_cast(ms / 1000), static_cast((ms % 1000) * 1000000)}; + } + static constexpr Duration Micros(int64_t usec) { +- return {usec / 1000, (usec % 1000000) * 1000}; ++ return {static_cast(usec / 1000), static_cast((usec % 1000000) * 1000)}; + } + static constexpr Duration Nanos(int64_t nanos) { +- return {nanos / 1000000000, nanos % 1000000000}; ++ return {static_cast(nanos / 1000000000), static_cast(nanos % 1000000000)}; + } + static constexpr Duration InfiniteFuture() { + return {1000000000, 0}; // a few years; infinite enough :)