git: 5a5ef6cd101e - main - phics/gnash: fix build on armv7

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Tue, 06 Dec 2022 21:12:34 UTC
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a5ef6cd101ecdcbf0865e6e479d8f7364d783d9

commit 5a5ef6cd101ecdcbf0865e6e479d8f7364d783d9
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-12-06 21:12:16 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-12-06 21:12:16 +0000

    phics/gnash: fix build on armv7
    
    PR: 268187
---
 graphics/gnash/Makefile                         |  2 +-
 graphics/gnash/files/patch-libbase_GnashSleep.h | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/graphics/gnash/Makefile b/graphics/gnash/Makefile
index 336aa08fcfb8..883959b4b37f 100644
--- a/graphics/gnash/Makefile
+++ b/graphics/gnash/Makefile
@@ -34,7 +34,7 @@ USES=		cpe tar:bzip2 compiler:c++11-lang autoreconf gmake libtool \
 		pkgconfig jpeg gnome gl sdl desktop-file-utils xorg
 CPE_VENDOR=	gnu
 GNU_CONFIGURE=	yes
-USE_GNOME=	atk gtk20 libxml2 pango
+USE_GNOME=	atk gdkpixbuf2 gtk20 libxml2 pango
 USE_XORG=	x11 xau xdmcp xext xi xinerama ice sm xv
 USE_GL=		egl
 USE_SDL=	sdl
diff --git a/graphics/gnash/files/patch-libbase_GnashSleep.h b/graphics/gnash/files/patch-libbase_GnashSleep.h
new file mode 100644
index 000000000000..c44b0e8a29c2
--- /dev/null
+++ b/graphics/gnash/files/patch-libbase_GnashSleep.h
@@ -0,0 +1,11 @@
+--- libbase/GnashSleep.h.orig	2022-12-05 11:34:39 UTC
++++ libbase/GnashSleep.h
+@@ -38,7 +38,7 @@ inline void gnashSleep(time_t useconds)
+     Sleep(useconds / 1000);
+ #else
+     const time_t m = 1000000;
+-    const struct timespec t = { useconds / m, (useconds % m) * 1000 };
++    const struct timespec t = { useconds / m, (long)((useconds % m) * 1000) };
+     ::nanosleep(&t, nullptr);
+ #endif
+ }