##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Author:    Stephane Thiell <sthiell@stanford.edu>
###

easyblock = 'ConfigureMake'

name = 'FLAC'
version = '1.3.1'

homepage = 'https://xiph.org/flac/'
description = """Programs and libraries for working with Free Lossless Audio Codec (FLAC) files."""

toolchain = SYSTEM

sources = [SOURCELOWER_TAR_XZ]
source_urls = ['http://downloads.xiph.org/releases/flac/']

# use of assembly routines requires a recent local_binutils
#builddependencies = [('binutils', '2.25', '', ('GCC', '4.9.2'))]

runtest = 'check'

sanity_check_paths = {
    'files': ['bin/flac', 'include/FLAC/all.h', 'lib/libFLAC.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'data'
