Skip to content

[libsndfile] [package list]

libsndfile/1.1.0-cpeGNU-22.06 (libsndfile-1.1.0-cpeGNU-22.06.eb)

This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/l/libsndfile/libsndfile-1.1.0-cpeGNU-22.06.eb. The corresponding module would be libsndfile/1.1.0-cpeGNU-22.06.

# Developed by Kurt Lust, UAntwerp
easyblock = 'ConfigureMake'

local_FLAC_version =         '1.3.4'         # https://xiph.org/downloads/ or https://github.com/xiph/flac/releases
#local_LAME_version =         '3.100'         # http://lame.sourceforge.net/
local_libsndfile_version =   '1.1.0'         # https://github.com/libsndfile/libsndfile/releases
local_libogg_version =       '1.3.5'         # https://www.xiph.org/downloads/ or https://github.com/xiph/ogg/releases
local_libopus_version =      '1.3.1'         # http://opus-codec.org/downloads/ or https://github.com/xiph/opus/releases
local_libvorbis_version =    '1.3.7'         # https://xiph.org/downloads/ or https://github.com/xiph/vorbis/releases

name =    'libsndfile'
version = local_libsndfile_version

homepage = 'http://www.mega-nerd.com/libsndfile/'

whatis = [
    "Description: Library and tools encapsulating various audio codecs",
]

description = """
Libsndfile is a C library for reading and writing files containing sampled sound
(such as MS Windows WAV and the Apple/SGI AIFF format) through one standard
library interface. It is released in source code format under the Gnu Lesser
General Public License.

The library was written to compile and run on a Linux system but should compile
and run on just about any Unix (including MacOS X). There are also pre-compiled
binaries available for 32 and 64 bit windows.

It was designed to handle both little-endian (such as WAV) and big-endian (such
as AIFF) data, and to compile and run correctly on little-endian (such as Intel
and DEC/Compaq Alpha) processor systems as well as big-endian processor systems
such as Motorola 68k, Power PC, MIPS and Sparc. Hopefully the design of the
library will also make it easy to extend for reading and writing new sound file
formats.

This module includes support for the FLAC, Opus and OggVorbis codecs, but does
not include support for the obsoleet Speex codec. It also does not include support
for ALSA and SQLite.
"""

docurls = [
    'Web-based API documentation on http://www.mega-nerd.com/libsndfile/api.html',
    'Manual pages for the tools in section 1',
]

toolchain = {'name': 'cpeGNU', 'version': '22.06'}
toolchainopts = {'pic': True}

# https://github.com/libsndfile/libsndfile/releases/download/1.1.0/libsndfile-1.1.0.tar.xz
source_urls = ['https://github.com/libsndfile/libsndfile/releases/download/%(version)s/']
sources =     [SOURCE_TAR_XZ]
checksums =   ['0f98e101c0f7c850a71225fb5feaf33b106227b3d331333ddc9bacee190bcf41']

builddependencies = [ # Create a reproducible build environment.
    ('buildtools', '%(toolchain_version)s', '', True),
]

dependencies = [
    ( 'libopus',   local_libopus_version),
    ( 'libogg',    local_libogg_version),
    ( 'libvorbis', local_libvorbis_version),
    ( 'FLAC',      local_FLAC_version),
#    ( 'LAME',      local_LAME_version),
]

configopts  = '--disable-alsa --disable-sqlite --disable-octave '
configopts += '--disable-mpeg '
configopts += '--enable-static --enable-shared '

sanity_check_paths = {
    'files': ['include/sndfile.h', 'lib/libsndfile.a', 'lib/libsndfile.%s' % SHLIB_EXT],
    'dirs':  [],
}

# The bin directory contains several commands but none seem to have easy options to test.

moduleclass = 'data'

[libsndfile] [package list]