From c130f147274fd8cafca0d204b6b7da0e1d8f6e48 Mon Sep 17 00:00:00 2001
From: Sebastian Achilles <s.achilles@fz-juelich.de>
Date: Thu, 19 Jan 2023 11:51:10 +0100
Subject: [PATCH] adding easyconfigs: freeglut-3.4.0-GCCcore-11.3.0.eb,
 GL2PS-1.4.2-GCCcore-11.3.0.eb

---
 .../freeglut/freeglut-3.4.0-GCCcore-11.3.0.eb | 39 +++++++++++++++++++
 .../g/GL2PS/GL2PS-1.4.2-GCCcore-11.3.0.eb     | 33 ++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 Golden_Repo/f/freeglut/freeglut-3.4.0-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/g/GL2PS/GL2PS-1.4.2-GCCcore-11.3.0.eb

diff --git a/Golden_Repo/f/freeglut/freeglut-3.4.0-GCCcore-11.3.0.eb b/Golden_Repo/f/freeglut/freeglut-3.4.0-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..2b25f781d
--- /dev/null
+++ b/Golden_Repo/f/freeglut/freeglut-3.4.0-GCCcore-11.3.0.eb
@@ -0,0 +1,39 @@
+easyblock = 'CMakeMake'
+
+name = 'freeglut'
+version = '3.4.0'
+
+homepage = 'http://freeglut.sourceforge.net/'
+description = """freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library.
+"""
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['http://prdownloads.sourceforge.net/%(name)s']
+sources = [SOURCE_TAR_GZ]
+# patches = [
+#     'freeglut-3.2.1_fixgcc10.patch',
+# ]
+checksums = [
+    # freeglut-3.2.1.tar.gz
+    'd4000e02102acaf259998c870e25214739d1f16f67f99cb35e4f46841399da68',
+    # freeglut-3.2.1_fixgcc10.patch
+    # '8b5f609eb7324b92e8119dcc031692d0694e6e587452b0b8aa05c9789dbf1b41',
+]
+
+builddependencies = [
+    ('binutils', '2.38'),
+    ('CMake', '3.23.1'),
+]
+
+dependencies = [
+    ('X11', '20220504'),
+    ('OpenGL', '2022a'),
+]
+
+sanity_check_paths = {
+    'files': [('lib/libglut.a', 'lib64/libglut.a'), ('lib/libglut.%s' % SHLIB_EXT, 'lib64/libglut.%s' % SHLIB_EXT)],
+    'dirs': ['include/GL'],
+}
+
+moduleclass = 'lib'
diff --git a/Golden_Repo/g/GL2PS/GL2PS-1.4.2-GCCcore-11.3.0.eb b/Golden_Repo/g/GL2PS/GL2PS-1.4.2-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..fbcf4a7f1
--- /dev/null
+++ b/Golden_Repo/g/GL2PS/GL2PS-1.4.2-GCCcore-11.3.0.eb
@@ -0,0 +1,33 @@
+easyblock = 'CMakeMake'
+
+name = 'GL2PS'
+version = '1.4.2'
+
+homepage = 'https://www.geuz.org/gl2ps/'
+description = """GL2PS: an OpenGL to PostScript printing library"""
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://geuz.org/gl2ps/src/']
+sources = [SOURCELOWER_TGZ]
+checksums = ['8d1c00c1018f96b4b97655482e57dcb0ce42ae2f1d349cd6d4191e7848d9ffe9']
+
+builddependencies = [
+    ('CMake', '3.23.1'),
+    ('binutils', '2.38'),
+]
+
+dependencies = [
+    ('X11', '20220504'),
+    ('OpenGL', '2022a'),
+    ('freeglut', '3.4.0'),
+    ('libpng', '1.6.37'),
+    ('zlib', '1.2.12'),
+]
+
+sanity_check_paths = {
+    'files': ['include/gl2ps.h', 'lib/libgl2ps.%s' % SHLIB_EXT],
+    'dirs': []
+}
+
+moduleclass = 'vis'
-- 
GitLab