pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/gimp-devel gimp-devel: use upstream patch for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7baf920acd28
branches:  trunk
changeset: 385074:7baf920acd28
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Sep 10 13:47:01 2022 +0000

description:
gimp-devel: use upstream patch for linux input detection issue

diffstat:

 graphics/gimp-devel/Makefile                  |   7 +---
 graphics/gimp-devel/distinfo                  |   4 +-
 graphics/gimp-devel/patches/patch-meson.build |  42 ++++++++++++++++++++++++++-
 3 files changed, 44 insertions(+), 9 deletions(-)

diffs (92 lines):

diff -r d4700746ed5c -r 7baf920acd28 graphics/gimp-devel/Makefile
--- a/graphics/gimp-devel/Makefile      Sat Sep 10 13:23:22 2022 +0000
+++ b/graphics/gimp-devel/Makefile      Sat Sep 10 13:47:01 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/09/10 09:32:33 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2022/09/10 13:47:01 wiz Exp $
 
 DISTNAME=      gimp-2.99.12
 PKGNAME=       ${DISTNAME:S/gimp/gimp-devel/}
@@ -55,11 +55,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} != "Linux"
-# https://gitlab.gnome.org/GNOME/gimp/-/issues/8604
-MESON_ARGS+=   -Dlinux-input=disabled
-.endif
-
 # msgfmt: unknown option -- desktop
 .if ${OPSYS} == "NetBSD"
 TOOLS_PLATFORM.msgfmt=
diff -r d4700746ed5c -r 7baf920acd28 graphics/gimp-devel/distinfo
--- a/graphics/gimp-devel/distinfo      Sat Sep 10 13:23:22 2022 +0000
+++ b/graphics/gimp-devel/distinfo      Sat Sep 10 13:47:01 2022 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2022/09/10 09:24:48 wiz Exp $
+$NetBSD: distinfo,v 1.3 2022/09/10 13:47:01 wiz Exp $
 
 BLAKE2s (gimp-2.99.12.tar.xz) = 6ecf4138713bf0c514463a644a54a7a39c69c9d99931cf9af991ef78d4b6809a
 SHA512 (gimp-2.99.12.tar.xz) = 4b87dd40eccc39c560e69a90b4042b1b19506e9ae52e5079ace442325b54bf7c47477662197da8f7655c12aad16e08bae60d11cf269684b8aa291e978d246917
 Size (gimp-2.99.12.tar.xz) = 24282140 bytes
-SHA1 (patch-meson.build) = 810951c12a848b5b304552445d2130650c818a5f
+SHA1 (patch-meson.build) = 40744c94dff37f190539992f80b2c9597fe1cd5f
 SHA1 (patch-plug-ins_common_file-heif.c) = cf4beb68136aefe460c7cabf53a2c40d602ec682
 SHA1 (patch-tools_extract-vector-icon.sh) = e460c42656bf2611a3735e2f7b4fe1d927a47044
diff -r d4700746ed5c -r 7baf920acd28 graphics/gimp-devel/patches/patch-meson.build
--- a/graphics/gimp-devel/patches/patch-meson.build     Sat Sep 10 13:23:22 2022 +0000
+++ b/graphics/gimp-devel/patches/patch-meson.build     Sat Sep 10 13:47:01 2022 +0000
@@ -1,8 +1,11 @@
-$NetBSD: patch-meson.build,v 1.1 2022/09/10 09:24:48 wiz Exp $
+$NetBSD: patch-meson.build,v 1.2 2022/09/10 13:47:01 wiz Exp $
 
 Avoid libdl dependency on NetBSD.
 https://gitlab.gnome.org/GNOME/gimp/-/issues/8604
 
+Fix Linux Input detection, using patch from upstream.
+https://gitlab.gnome.org/GNOME/gimp/-/issues/8605
+
 --- meson.build.orig   2022-08-21 19:21:38.000000000 +0000
 +++ meson.build
 @@ -127,6 +127,10 @@ platform_linux = (
@@ -25,3 +28,40 @@
  rpc               = platform_windows ? cc.find_library('rpcrt4') : no_dep
  dbghelp           = platform_windows ? cc.find_library('dbghelp') : no_dep
  winsock           = platform_windows ? cc.find_library('ws2_32') : no_dep
+@@ -845,15 +849,23 @@ endif
+ alsa = dependency('alsa', version: '>=1.0.0', required: get_option('alsa'))
+ conf.set('HAVE_ALSA', alsa.found())
+ 
++# Linux Input
+ 
+ if get_option('linux-input').disabled()
+   have_linuxinput = false
+-elif get_option('linux-input').enabled() and not cc.has_header('linux/input.h')
+-  error('linux/input.h header not found.')
+ else
+-  have_linuxinput = x11_target
++  have_linuxinput = cc.has_header('linux/input.h',
++                                  required: get_option('linux-input'))
+ endif
+ 
++if have_linuxinput
++  gudev = dependency('gudev-1.0', version: '>=167', required: get_option('gudev'))
++else
++  gudev = no_dep
++endif
++conf.set('HAVE_LIBGUDEV', gudev.found())
++
++
+ # DirectX DirectInput
+ directx = no_dep
+ directx_sdk_path = get_option('directx-sdk-dir')
+@@ -874,9 +886,6 @@ if directx_sdk_path != '' and platform_w
+ endif
+ conf.set('HAVE_DX_DINPUT', directx.found())
+ 
+-gudev = dependency('gudev-1.0', version: '>=167', required: get_option('gudev'))
+-conf.set('HAVE_LIBGUDEV', gudev.found())
+-
+ 
+ ################################################################################
+ # Email sending



Home | Main Index | Thread Index | Old Index