Skip to content

Commit

Permalink
Merge pull request #20385 from WilleBell/20240417161230_new_pr_pygame252
Browse files Browse the repository at this point in the history
{lib}[GCCcore/12.3.0] pygame v2.5.2, SDL2_image v2.8.2, SDL2_mixer v2.8.0, ...
  • Loading branch information
bedroge committed May 14, 2024
2 parents 3237b76 + 6096342 commit de21f98
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 0 deletions.
24 changes: 24 additions & 0 deletions easybuild/easyconfigs/a/alsa-lib/alsa-lib-1.2.9-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
easyblock = 'ConfigureMake'

name = 'alsa-lib'
version = '1.2.9'

homepage = 'https://www.alsa-project.org'
description = """The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality
to the Linux operating system."""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

source_urls = ['https://www.alsa-project.org/files/pub/lib/']
sources = [SOURCE_TAR_BZ2]
checksums = ['dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2']

dependencies = [('binutils', '2.40')]

sanity_check_paths = {
'files': ['bin/aserver', 'include/asoundlib.h',
'lib64/libatopology.%s' % SHLIB_EXT, 'lib64/libasound.%s' % SHLIB_EXT],
'dirs': ['include/alsa', 'lib/pkgconfig', 'share'],
}

moduleclass = 'lib'
35 changes: 35 additions & 0 deletions easybuild/easyconfigs/p/PortMidi/PortMidi-2.0.4-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
easyblock = 'CMakeMake'

name = 'PortMidi'
version = '2.0.4'

homepage = 'https://github.com/PortMidi/portmidi'
description = """
PortMidi is a library for software developers. It supports real-time input and
output of MIDI data using a system-independent interface. PortMidi runs on
Windows (using MME), Macintosh (using CoreMIDI), and Linux (using ALSA).
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/PortMidi/portmidi/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['64893e823ae146cabd3ad7f9a9a9c5332746abe7847c557b99b2577afa8a607c']

builddependencies = [
('pkgconf', '1.9.5'),
('binutils', '2.40'),
('CMake', '3.26.3'),
]

dependencies = [
('alsa-lib', '1.2.9'),
]

sanity_check_paths = {
'files': ['lib/libportmidi.%s' % SHLIB_EXT, 'include/portmidi.h', 'include/porttime.h'],
'dirs': [],
}

moduleclass = 'lib'
48 changes: 48 additions & 0 deletions easybuild/easyconfigs/p/pygame/pygame-2.5.2-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
easyblock = 'PythonBundle'

name = 'pygame'
version = '2.5.2'

homepage = 'https://www.pygame.org'
description = """
Pygame is a set of Python modules designed for writing video games. Pygame adds
functionality on top of the excellent SDL library. This allows you to create
fully featured games and multimedia programs in the python language.
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('Python', '3.11.3'),
('SDL2_image', '2.8.2'),
('SDL2_mixer', '2.8.0'),
('SDL2_ttf', '2.22.0'),
('PortMidi', '2.0.4'),
('libpng', '1.6.39'),
]

use_pip = True

_pygame_extra_base = ':'.join([
'$EBROOTSDL2_IMAGE',
'$EBROOTSDL2_MIXER',
'$EBROOTSDL2_TTF',
'$EBROOTLIBJPEGMINTURBO',
'$EBROOTLIBPNG',
'$EBROOTPORTMIDI',
])

exts_list = [
(name, version, {
'preinstallopts': 'PORTMIDI_INC_PORTTIME=1 PYGAME_EXTRA_BASE="%s"' % _pygame_extra_base,
'checksums': ['c1b89eb5d539e7ac5cf75513125fb5f2f0a2d918b1fd6e981f23bf0ac1b1c24a'],
}),
]

sanity_pip_check = True

moduleclass = 'lib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Authors:: Jack Perdue <j-perdue@tamu.edu> - TAMU HPRC - http://hprc.tamu.edu

easyblock = 'ConfigureMake'

name = 'SDL2_image'
version = '2.8.2'

homepage = 'https://github.com/libsdl-org/SDL_image'
description = """
This is a simple library to load images of various formats as SDL surfaces. It
can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM,
and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP
images, depending on build options (see the note below for details.)
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

source_urls = ['https://github.com/libsdl-org/SDL_image/archive/refs/tags/']
sources = ['release-%(version)s.tar.gz']
checksums = ['8fd59b2c17772d7ac1192b11c645be8d7874f595c1714f4b200ee70b7cc38f3e']

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('libjpeg-turbo', '2.1.5.1'),
('libpng', '1.6.39'),
('LibTIFF', '4.5.0'),
('SDL2', '2.28.2'),
]

sanity_check_paths = {
'files': ['include/SDL2/SDL_image.h', 'lib/libSDL2_image.%s' % SHLIB_EXT,
'lib/pkgconfig/SDL2_image.pc'],
'dirs': []
}

moduleclass = 'vis'
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Authors:: Jack Perdue <j-perdue@tamu.edu> - TAMU HPRC - http://hprc.tamu.edu

easyblock = 'ConfigureMake'

name = 'SDL2_mixer'
version = '2.8.0'

homepage = 'https://github.com/libsdl-org/SDL_mixer'
description = """
Due to popular demand, here is a simple multi-channel audio mixer. It supports
8 channels of 16 bit stereo audio, plus a single channel of music. It can load
FLAC, MP3, Ogg, VOC, and WAV format audio. It can also load MIDI, MOD, and Opus
audio, depending on build options (see the note below for details.)
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

source_urls = ['https://github.com/libsdl-org/SDL_mixer/archive/refs/tags/']
sources = ['release-%(version)s.tar.gz']
checksums = ['1146f00815c8ad22c3d48fbe31ae23dc5997936ebf30b4b3aeab6eab7ea1db3e']

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('SDL2', '2.28.2'),
('FFmpeg', '6.0'),
]

sanity_check_paths = {
'files': ['include/SDL2/SDL_mixer.h', 'lib/libSDL2_mixer.%s' % SHLIB_EXT,
'lib/pkgconfig/SDL2_mixer.pc'],
'dirs': [],
}

moduleclass = 'lib'
36 changes: 36 additions & 0 deletions easybuild/easyconfigs/s/SDL2_ttf/SDL2_ttf-2.22.0-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
easyblock = 'ConfigureMake'

name = 'SDL2_ttf'
version = '2.22.0'

homepage = 'https://github.com/libsdl-org/SDL_ttf'
description = """
This library is a wrapper around the FreeType and Harfbuzz libraries, allowing
you to use TrueType fonts to render text in SDL applications.
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

source_urls = ['https://github.com/libsdl-org/SDL_ttf/archive/refs/tags/']
sources = ['release-%(version)s.tar.gz']
checksums = ['2275d0ddfffa53f0efa628bc1621f662dacbd42467b5a44db99e38255fbb575a']

builddependencies = [
('binutils', '2.40'),
('pkgconf', '1.9.5'),
]

dependencies = [
('SDL2', '2.28.2'),
('freetype', '2.13.0'),
]

configopts = '--disable-harfbuzz --disable-freetype-builtin'

sanity_check_paths = {
'files': ['include/SDL2/SDL_ttf.h', 'lib/libSDL2_ttf.%s' % SHLIB_EXT,
'lib/pkgconfig/SDL2_ttf.pc'],
'dirs': [],
}

moduleclass = 'lib'

0 comments on commit de21f98

Please sign in to comment.