FLAC/1.4.3-cpeAMD-24.03 (FLAC-1.4.3-cpeAMD-24.03.eb)
To access module help and find out for which stacks and partitions the module is
installed, use module spider FLAC/1.4.3-cpeAMD-24.03
.
EasyConfig:
##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Author: Stephane Thiell <sthiell@stanford.edu>
###
easyblock = 'ConfigureMake'
local_FLAC_version = '1.4.3' # https://xiph.org/downloads/ or https://github.com/xiph/flac/releases
local_libogg_version = '1.3.5' # https://www.xiph.org/downloads/ or https://github.com/xiph/ogg/releases
name = 'FLAC'
version = local_FLAC_version
homepage = 'https://xiph.org/flac/'
whatis = [
"Description: programs and libraries for working with Free Lossless Audio Codec (FLAC) files",
]
description = """
FLAC stands for Free Lossless Audio Codec, an audio format similar to MP3, but
lossless, meaning that audio is compressed in FLAC without any loss in quality.
This is similar to how Zip works, except with FLAC you will get much better
compression because it is designed specifically for audio, and you can play
back compressed FLAC files in your favorite player (or your car or home stereo,
see supported devices) just like you would an MP3 file.
FLAC stands out as the fastest and most widely supported lossless audio codec,
and the only one that at once is non-proprietary, is unencumbered by patents,
has an open-source reference implementation, has a well documented format
and API, and has several other independent implementations.
FLAC is compiled with support for the Ogg container format but without
XMMS plugin.
"""
docurls = [
'Web-based documentation on https://xiph.org/flac/documentation.html',
'Man pages in section 1 for the flac and metaflac commands',
]
software_license_urls = [
'https://xiph.org/flac/license.html',
]
toolchain = {'name': 'cpeAMD', 'version': '24.03'}
toolchainopts = {'pic': True}
sources = [SOURCELOWER_TAR_XZ]
source_urls = ['http://downloads.xiph.org/releases/flac/']
checksums = ['6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70']
# use of assembly routines requires a recent binutils
builddependencies = [ # Create a reproducible build environment.
('buildtools', '%(toolchain_version)s', '', True),
]
dependencies = [
('libogg', local_libogg_version),
]
# Doesn't need MPI, ROCm or BLAS, and module unload never fails so this is safe.
preconfigopts = 'module unload cray-libsci cray-mpich rocm xpmem && '
prebuildopts = preconfigopts
preinstallopts = preconfigopts
# We donb't have xmns so we turn this off to avoid the warning during the configure
# step.
configopts = '--enable-static --enable-shared --disable-xmms-plugin'
# The tests are extremely time-consuming so you may want to skip them.
#runtest = 'check'
postinstallcmds = [
'mkdir -p %(installdir)s/share/licenses/%(name)s',
'cp AUTHORS CHANGELOG.md COPYING* README.md %(installdir)s/share/licenses/%(name)s',
]
sanity_check_paths = {
'files': ['bin/flac', 'lib/libFLAC.a', 'lib/libFLAC++.a',
'lib/libFLAC.%s' % SHLIB_EXT, 'lib/libFLAC++.%s' % SHLIB_EXT,
f'share/licenses/{name}/COPYING.GPL'],
'dirs': ['include/FLAC', 'include/FLAC++'],
}
sanity_check_commands = [
'flac --help',
'metaflac --help',
'pkg-config --libs flac',
'pkg-config --libs flac++',
]
moduleclass = 'data'