From d50d8f5e90743351a1e9d0ad5ddeff3c68a3547e Mon Sep 17 00:00:00 2001
From: Anke Kreuzer <zitz1@deepv.deep>
Date: Mon, 4 Dec 2023 12:24:33 +0100
Subject: [PATCH] Added dependencies for Paraver

---
 .../s/SDL2/SDL2-2.0.22-GCCcore-11.3.0.eb      | 26 +++++++
 .../w/wxWidgets/wxWidgets-3.2.1-GCC-11.3.0.eb | 71 +++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100644 Golden_Repo/s/SDL2/SDL2-2.0.22-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/w/wxWidgets/wxWidgets-3.2.1-GCC-11.3.0.eb

diff --git a/Golden_Repo/s/SDL2/SDL2-2.0.22-GCCcore-11.3.0.eb b/Golden_Repo/s/SDL2/SDL2-2.0.22-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..218bf61ae
--- /dev/null
+++ b/Golden_Repo/s/SDL2/SDL2-2.0.22-GCCcore-11.3.0.eb
@@ -0,0 +1,26 @@
+easyblock = 'ConfigureMake'
+
+name = 'SDL2'
+version = '2.0.22'
+
+homepage = 'https://www.libsdl.org/'
+description = "SDL: Simple DirectMedia Layer, a cross-platform multimedia library"
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://www.libsdl.org/release/']
+sources = [SOURCE_TAR_GZ]
+checksums = ['fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e']
+
+builddependencies = [('binutils', '2.38')]
+
+dependencies = [
+    ('X11', '20220504'),
+]
+
+sanity_check_paths = {
+    'files': ['bin/sdl2-config', 'lib/libSDL2.%s' % SHLIB_EXT],
+    'dirs': [],
+}
+
+moduleclass = 'lib'
diff --git a/Golden_Repo/w/wxWidgets/wxWidgets-3.2.1-GCC-11.3.0.eb b/Golden_Repo/w/wxWidgets/wxWidgets-3.2.1-GCC-11.3.0.eb
new file mode 100644
index 000000000..b8451ed12
--- /dev/null
+++ b/Golden_Repo/w/wxWidgets/wxWidgets-3.2.1-GCC-11.3.0.eb
@@ -0,0 +1,71 @@
+easyblock = 'ConfigureMake'
+
+name = 'wxWidgets'
+version = '3.2.1'
+
+homepage = 'https://www.wxwidgets.org'
+description = """wxWidgets is a C++ library that lets developers create
+applications for Windows, Mac OS X, Linux and other platforms with a
+single code base. It has popular language bindings for Python, Perl,
+Ruby and many other languages, and unlike other cross-platform toolkits,
+wxWidgets gives applications a truly native look and feel because it
+uses the platform's native API rather than emulating the GUI."""
+
+toolchain = {'name': 'GCC', 'version': '11.3.0'}
+toolchainopts = {'pic': True}
+
+github_account = 'wxWidgets'
+source_urls = [GITHUB_RELEASE]
+sources = [SOURCE_TAR_BZ2]
+checksums = ['c229976bb413eb88e45cb5dfb68b27890d450149c09b331abd751e7ae0f5fa66']
+
+builddependencies = [
+    ('gettext', '0.21'),
+    ('pkgconf', '1.8.0'),
+    ('Python', '3.10.4'),
+]
+
+dependencies = [
+    ('libpng', '1.6.37'),
+    ('zlib', '1.2.12'),
+    ('libjpeg-turbo', '2.1.3'),
+    ('XZ', '5.2.5'),
+    ('jbigkit', '2.1'),
+    ('LibTIFF', '4.3.0'),
+    ('expat', '2.4.8'),
+    ('GTK3', '3.24.33'),
+    ('X11', '20220504'),
+    ('Mesa', '22.0.3'),
+    ('libGLU', '9.0.2'),
+    ('SDL2', '2.0.22'),
+    ('cairo', '1.17.4'),
+    ('GST-plugins-base', '1.20.2'),
+    ('GLib', '2.72.1'),
+]
+
+local_cpath_ext = '$EBROOTGTKPLUS/include/gtk-3.0:$EBROOTGLIB/include/glib-2.0:$EBROOTGLIB/lib/glib-2.0/include'
+
+preconfigopts = 'CPATH=$CPATH:%s ' % local_cpath_ext
+
+configopts = '--enable-intl --enable-ipv6 '
+# Options required by wxPython
+configopts += '--with-gtk=3 --with-gtk-prefix=$EBROOTGTKPLUS '
+# Note: the configure step might claim to find OpenGL headers in
+# /usr/include, but it will still use the ones from the Mesa dependency above
+configopts += '--with-opengl '
+configopts += '--enable-unicode --enable-sound --enable-graphics_ctx '
+configopts += '--enable-mediactrl --enable-display --enable-geometry '
+configopts += '--enable-debug_flag --enable-optimise --disable-debugreport '
+configopts += '--enable-autoidman --with-sdl '
+configopts += '--disable-webview --disable-webviewwebkit '
+configopts += '--disable-tests '
+
+
+prebuildopts = 'CPATH=$CPATH:%s ' % local_cpath_ext
+
+sanity_check_paths = {
+    'files': ['bin/wx-config', 'bin/wxrc'],
+    'dirs': ['include/wx-%(version_major_minor)s/wx', 'lib', 'share'],
+}
+
+moduleclass = 'vis'
-- 
GitLab