From 23849678ddec479b30acb0ad10deff54124d176c Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Mon, 29 Jul 2019 10:23:44 +0200
Subject: [PATCH] Update to nw.js 0.24.4.

---
 debuild/Makefile          | 2 +-
 debuild/debian/control    | 2 +-
 debuild/debian/rules      | 6 +++++-
 l2ork_addons/tar_em_up.sh | 2 +-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debuild/Makefile b/debuild/Makefile
index c995a25c8..81e0453a9 100644
--- a/debuild/Makefile
+++ b/debuild/Makefile
@@ -42,7 +42,7 @@ debsrc = purr-data_$(debversion).orig.tar.gz
 debdist = purr-data-$(debversion)
 
 # nw.js sdk
-nwjsver = 0.22.1
+nwjsver = 0.24.4
 nwjspkg = nwjs-sdk-v$(nwjsver)-linux
 nwjs = $(nwjspkg)-ia32.tar.gz $(nwjspkg)-x64.tar.gz
 
diff --git a/debuild/debian/control b/debuild/debian/control
index 51e7f5756..e9c633f77 100644
--- a/debuild/debian/control
+++ b/debuild/debian/control
@@ -2,7 +2,7 @@ Source: purr-data
 Section: sound
 Priority: extra
 Maintainer: Albert Graef <aggraef@gmail.com>
-Build-Depends: debhelper (>= 7.0.50~), autoconf, automake, libtool, pkg-config, bison, flex, libgtk2.0-dev, python-dev, dh-python | python-support, flite1-dev, ladspa-sdk, libasound2-dev, libjack-dev, libbluetooth-dev, libcairo2-dev, libgl1-mesa-dev | libgl-dev, libglew1.6-dev | libglew-dev, libgsl-dev | libgsl0-dev, libmagick++-dev, libavifile-0.7-dev, libdc1394-22-dev, libfftw3-dev, libfluidsynth-dev, libftgl-dev, libgmerlin-avdec-dev, libgsm1-dev, libjpeg-dev, liblua5.3-dev | liblua5.2-dev, libmp3lame-dev, libmpeg3-dev, libquicktime-dev, libraw1394-dev, libsmpeg-dev, libspeex-dev, libstk0-dev, libtiff5-dev, libv4l-dev, libdv4-dev, libiec61883-dev, libxv-dev, libxxf86vm-dev, libvorbis-dev, zlib1g-dev (>= 1:1.1.3), rsync, libgconf2-dev, libnss3-dev, libxtst-dev, libxss-dev
+Build-Depends: debhelper (>= 7.0.50~), autoconf, automake, libtool, pkg-config, bison, flex, libgtk2.0-dev, libgtk-3-dev, python-dev, dh-python | python-support, flite1-dev, ladspa-sdk, libasound2-dev, libjack-dev, libbluetooth-dev, libcairo2-dev, libgl1-mesa-dev | libgl-dev, libglew1.6-dev | libglew-dev, libgsl-dev | libgsl0-dev, libmagick++-dev, libavifile-0.7-dev, libdc1394-22-dev, libfftw3-dev, libfluidsynth-dev, libftgl-dev, libgmerlin-avdec-dev, libgsm1-dev, libjpeg-dev, liblua5.3-dev | liblua5.2-dev, libmp3lame-dev, libmpeg3-dev, libquicktime-dev, libraw1394-dev, libsmpeg-dev, libspeex-dev, libstk0-dev, libtiff5-dev, libv4l-dev, libdv4-dev, libiec61883-dev, libxv-dev, libxxf86vm-dev, libvorbis-dev, zlib1g-dev (>= 1:1.1.3), rsync, libgconf2-dev, libnss3-dev, libxtst-dev, libxss-dev
 Standards-Version: 3.9.5
 Homepage: https://git.purrdata.net/jwilkes/purr-data
 
diff --git a/debuild/debian/rules b/debuild/debian/rules
index 139c20169..cd384c3be 100755
--- a/debuild/debian/rules
+++ b/debuild/debian/rules
@@ -4,7 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-nwjsver = 0.22.1
+nwjsver = 0.24.4
 nwjspkg = nwjs-sdk-v$(nwjsver)-linux
 
 ifeq ("$(shell dpkg-architecture -qDEB_HOST_ARCH)","amd64")
@@ -42,6 +42,10 @@ override_dh_auto_install:
 # Remove some unneeded files.
 	cd debian/purr-data/ && rm -rf Makefile README.txt etc usr/share/emacs
 	cd debian/purr-data$(prefix)/lib/pd-l2ork/extra && rm -rf */*.pd_linux_o */*.la
+ifeq ($(arch),ia32)
+# This causes trouble in 32 bit builds (64 bit executable in the 32 bit nw.js distribution?), remove it.
+	cd debian/purr-data$(prefix)/lib/pd-l2ork && rm -rf bin/nw/minidump_stackwalk
+endif
 # Add the bash completion file again, and edit it accordingly.
 	mkdir -p debian/purr-data/etc/bash_completion.d
 	sed -e 's/pd-l2ork/purr-data/g' < scripts/bash_completion/pd-l2ork > debian/purr-data/etc/bash_completion.d/purr-data
diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh
index bd303d018..3dadc2991 100755
--- a/l2ork_addons/tar_em_up.sh
+++ b/l2ork_addons/tar_em_up.sh
@@ -189,7 +189,7 @@ if [ ! -d "../pd/nw/nw" ]; then
 		if [ `uname -m` == "armv7l" ]; then
 			nwjs_version="v0.17.6"
 		else
-			nwjs_version="v0.22.1"
+			nwjs_version="v0.24.4"
 		fi
 	fi
 
-- 
GitLab