Sox (#3908)
* Initial add of flac * Initial add of id3lib * Initial add of the opus codec * Initial add of sox audio processing tools * Cleanup spec files to be inline with current standard * Fix pep8 compliance * Remove un-needed configuration
This commit is contained in:
parent
a3dff31b07
commit
53763f7698
39
var/spack/repos/builtin/packages/flac/package.py
Normal file
39
var/spack/repos/builtin/packages/flac/package.py
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||||
|
# Produced at the Lawrence Livermore National Laboratory.
|
||||||
|
#
|
||||||
|
# This file is part of Spack.
|
||||||
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||||
|
# LLNL-CODE-647188
|
||||||
|
#
|
||||||
|
# For details, see https://github.com/llnl/spack
|
||||||
|
# Please also see the LICENSE file for our notice and the LGPL.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License (as
|
||||||
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||||
|
# conditions of the GNU Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
##############################################################################
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class Flac(AutotoolsPackage):
|
||||||
|
"""Encoder/decoder for the Free Lossless Audio Codec"""
|
||||||
|
|
||||||
|
homepage = "https://xiph.org/flac/index.html"
|
||||||
|
url = "http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz"
|
||||||
|
|
||||||
|
version('1.3.2', '454f1bfa3f93cc708098d7890d0499bd')
|
||||||
|
version('1.3.1', 'b9922c9a0378c88d3e901b234f852698')
|
||||||
|
version('1.3.0', '13b5c214cee8373464d3d65dee362cdd')
|
||||||
|
|
||||||
|
depends_on('libvorbis')
|
||||||
|
depends_on('id3lib')
|
102
var/spack/repos/builtin/packages/id3lib/id3lib-3.8.3_gcc4.diff
Normal file
102
var/spack/repos/builtin/packages/id3lib/id3lib-3.8.3_gcc4.diff
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
|
||||||
|
Date: 2008-11-21
|
||||||
|
Initial Package Version: 3.8.3
|
||||||
|
Upstream Status: unknown
|
||||||
|
Origin: fedora
|
||||||
|
Description: Allows it to compile with gcc-4.3.
|
||||||
|
|
||||||
|
diff -up id3lib-3.8.3/include/id3/id3lib_strings.h~ id3lib-3.8.3/include/id3/id3lib_strings.h
|
||||||
|
--- id3lib-3.8.3/include/id3/id3lib_strings.h~ 2003-03-02 02:23:00.000000000 +0200
|
||||||
|
+++ id3lib-3.8.3/include/id3/id3lib_strings.h 2008-01-04 01:30:52.000000000 +0200
|
||||||
|
@@ -29,6 +29,7 @@
|
||||||
|
#ifndef _ID3LIB_STRINGS_H_
|
||||||
|
#define _ID3LIB_STRINGS_H_
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000))
|
||||||
|
diff -up id3lib-3.8.3/configure.in~ id3lib-3.8.3/configure.in
|
||||||
|
--- id3lib-3.8.3/configure.in~ 2008-01-04 11:39:01.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/configure.in 2008-01-04 11:39:01.000000000 +0100
|
||||||
|
@@ -227,7 +227,6 @@ AC_CHECK_HEADERS(fstream iostream iomani
|
||||||
|
)
|
||||||
|
AC_CHECK_HEADERS( \
|
||||||
|
string \
|
||||||
|
- iomanip.h \
|
||||||
|
,,AC_MSG_ERROR([Missing a vital header file for id3lib])
|
||||||
|
)
|
||||||
|
|
||||||
|
diff -up id3lib-3.8.3/configure~ id3lib-3.8.3/configure
|
||||||
|
--- id3lib-3.8.3/configure~ 2008-01-04 11:39:10.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/configure 2008-01-04 11:39:10.000000000 +0100
|
||||||
|
@@ -22976,7 +22976,6 @@ done
|
||||||
|
|
||||||
|
for ac_header in \
|
||||||
|
string \
|
||||||
|
- iomanip.h \
|
||||||
|
|
||||||
|
do
|
||||||
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
|
diff -up id3lib-3.8.3/include/id3/writers.h~ id3lib-3.8.3/include/id3/writers.h
|
||||||
|
--- id3lib-3.8.3/include/id3/writers.h~ 2008-01-04 11:59:39.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/include/id3/writers.h 2008-01-04 11:59:39.000000000 +0100
|
||||||
|
@@ -28,9 +28,9 @@
|
||||||
|
#ifndef _ID3LIB_WRITERS_H_
|
||||||
|
#define _ID3LIB_WRITERS_H_
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
#include "id3/writer.h"
|
||||||
|
#include "id3/id3lib_streams.h"
|
||||||
|
-//#include <string.h>
|
||||||
|
|
||||||
|
class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer
|
||||||
|
{
|
||||||
|
diff -up id3lib-3.8.3/examples/demo_info.cpp~ id3lib-3.8.3/examples/demo_info.cpp
|
||||||
|
--- id3lib-3.8.3/examples/demo_info.cpp~ 2008-01-04 12:00:56.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/examples/demo_info.cpp 2008-01-04 12:00:56.000000000 +0100
|
||||||
|
@@ -309,7 +309,7 @@ void PrintInformation(const ID3_Tag &myT
|
||||||
|
|
||||||
|
#define DEBUG
|
||||||
|
|
||||||
|
-int main( unsigned int argc, char * const argv[])
|
||||||
|
+int main(int argc, char * const argv[])
|
||||||
|
{
|
||||||
|
ID3D_INIT_DOUT();
|
||||||
|
|
||||||
|
diff -up id3lib-3.8.3/examples/demo_copy.cpp~ id3lib-3.8.3/examples/demo_copy.cpp
|
||||||
|
--- id3lib-3.8.3/examples/demo_copy.cpp~ 2008-01-04 12:01:26.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/examples/demo_copy.cpp 2008-01-04 12:01:26.000000000 +0100
|
||||||
|
@@ -81,7 +81,7 @@ void DisplayTags(ostream &os, luint nTag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-int main( unsigned int argc, char * const argv[])
|
||||||
|
+int main(int argc, char * const argv[])
|
||||||
|
{
|
||||||
|
int ulFlag = ID3TT_ID3;
|
||||||
|
ID3D_INIT_DOUT();
|
||||||
|
diff -up id3lib-3.8.3/examples/demo_convert.cpp~ id3lib-3.8.3/examples/demo_convert.cpp
|
||||||
|
--- id3lib-3.8.3/examples/demo_convert.cpp~ 2008-01-04 12:01:20.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/examples/demo_convert.cpp 2008-01-04 12:01:20.000000000 +0100
|
||||||
|
@@ -84,7 +84,7 @@ void DisplayTags(ostream &os, luint nTag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-int main( unsigned int argc, char * const argv[])
|
||||||
|
+int main(int argc, char * const argv[])
|
||||||
|
{
|
||||||
|
flags_t ulFlag = ID3TT_ALL;
|
||||||
|
gengetopt_args_info args;
|
||||||
|
diff -up id3lib-3.8.3/examples/demo_tag.cpp~ id3lib-3.8.3/examples/demo_tag.cpp
|
||||||
|
--- id3lib-3.8.3/examples/demo_tag.cpp~ 2008-01-04 12:01:41.000000000 +0100
|
||||||
|
+++ id3lib-3.8.3/examples/demo_tag.cpp 2008-01-04 12:01:41.000000000 +0100
|
||||||
|
@@ -46,7 +46,7 @@ void DisplayTags(ostream &os, luint nTag
|
||||||
|
os << "v2";
|
||||||
|
}
|
||||||
|
|
||||||
|
-int main( unsigned int argc, char * const argv[])
|
||||||
|
+int main(int argc, char * const argv[])
|
||||||
|
{
|
||||||
|
int ulFlag = ID3TT_ID3;
|
||||||
|
ID3D_INIT_DOUT();
|
40
var/spack/repos/builtin/packages/id3lib/package.py
Normal file
40
var/spack/repos/builtin/packages/id3lib/package.py
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||||
|
# Produced at the Lawrence Livermore National Laboratory.
|
||||||
|
#
|
||||||
|
# This file is part of Spack.
|
||||||
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||||
|
# LLNL-CODE-647188
|
||||||
|
#
|
||||||
|
# For details, see https://github.com/llnl/spack
|
||||||
|
# Please also see the LICENSE file for our notice and the LGPL.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License (as
|
||||||
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||||
|
# conditions of the GNU Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
##############################################################################
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class Id3lib(AutotoolsPackage):
|
||||||
|
"""Library for manipulating ID3v1 and ID3v2 tags"""
|
||||||
|
|
||||||
|
homepage = "http://id3lib.sourceforge.net/"
|
||||||
|
url = "https://downloads.sourceforge.net/project/id3lib/id3lib/3.8.3/id3lib-3.8.3.tar.gz"
|
||||||
|
|
||||||
|
version('3.8.3', '19f27ddd2dda4b2d26a559a4f0f402a7')
|
||||||
|
|
||||||
|
depends_on('zlib')
|
||||||
|
|
||||||
|
# http://connie.slackware.com/~alien/slackbuilds/id3lib/build/id3lib-3.8.3_gcc4.diff
|
||||||
|
# this is due to some changes in the c++ standard library headers
|
||||||
|
patch("id3lib-3.8.3_gcc4.diff")
|
55
var/spack/repos/builtin/packages/opus/package.py
Normal file
55
var/spack/repos/builtin/packages/opus/package.py
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||||
|
# Produced at the Lawrence Livermore National Laboratory.
|
||||||
|
#
|
||||||
|
# This file is part of Spack.
|
||||||
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||||
|
# LLNL-CODE-647188
|
||||||
|
#
|
||||||
|
# For details, see https://github.com/llnl/spack
|
||||||
|
# Please also see the LICENSE file for our notice and the LGPL.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License (as
|
||||||
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||||
|
# conditions of the GNU Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
##############################################################################
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class Opus(AutotoolsPackage):
|
||||||
|
"""Opus is a totally open, royalty-free, highly versatile audio codec."""
|
||||||
|
|
||||||
|
homepage = "http://opus-codec.org/"
|
||||||
|
url = "http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gz"
|
||||||
|
|
||||||
|
version('1.1.4', 'a2c09d995d0885665ff83b5df2505a5f')
|
||||||
|
version('1.1.3', '32bbb6b557fe1b6066adc0ae1f08b629')
|
||||||
|
version('1.1.2', '1f08a661bc72930187893a07f3741a91')
|
||||||
|
version('1.1.1', 'cfb354d4c65217ca32a762f8ab15f2ac')
|
||||||
|
version('1.1', 'c5a8cf7c0b066759542bc4ca46817ac6')
|
||||||
|
version('1.0.3', '86eedbd3c5a0171d2437850435e6edff')
|
||||||
|
version('1.0.2', 'c503ad05a59ddb44deab96204401be03')
|
||||||
|
version('1.0.1', 'bbac19996957b404a1139816e2f357f5')
|
||||||
|
version('1.0.0', 'ec3ff0a16d9ad8c31a8856d13d97b155')
|
||||||
|
version('0.9.14', 'c7161b247a8437ae6b0f11dd872e69e8')
|
||||||
|
version('0.9.10', 'afbda2fd20dc08e6075db0f60297a137')
|
||||||
|
version('0.9.9', '0c18f0aac37f1ed955f5d694ddd88000')
|
||||||
|
version('0.9.8', '76c1876eae9169dee808ff4710d847cf')
|
||||||
|
version('0.9.7', '49834324ab618105cf112e161770b422')
|
||||||
|
version('0.9.6', '030556bcaebb241505f8577e92abe6d4')
|
||||||
|
version('0.9.5', '6bec090fd28996da0336e165b153ebd8')
|
||||||
|
version('0.9.3', '934226d4f572d01c5848bd70538248f5')
|
||||||
|
version('0.9.2', '8b9047956c4a781e05d3ac8565cd28f5')
|
||||||
|
version('0.9.1', 'f58214e530928aa3db1dec217d5dfcd4')
|
||||||
|
version('0.9.0', '8a729db587430392e64280a499e9d061')
|
||||||
|
|
||||||
|
depends_on('libvorbis')
|
40
var/spack/repos/builtin/packages/sox/package.py
Normal file
40
var/spack/repos/builtin/packages/sox/package.py
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
##############################################################################
|
||||||
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||||
|
# Produced at the Lawrence Livermore National Laboratory.
|
||||||
|
#
|
||||||
|
# This file is part of Spack.
|
||||||
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||||
|
# LLNL-CODE-647188
|
||||||
|
#
|
||||||
|
# For details, see https://github.com/llnl/spack
|
||||||
|
# Please also see the LICENSE file for our notice and the LGPL.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License (as
|
||||||
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||||
|
# conditions of the GNU Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
##############################################################################
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class Sox(AutotoolsPackage):
|
||||||
|
"""SoX, the Swiss Army knife of sound processing programs."""
|
||||||
|
|
||||||
|
homepage = "http://sox.sourceforge.net/Main/HomePage"
|
||||||
|
url = "https://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2"
|
||||||
|
|
||||||
|
version('14.4.2', 'ba804bb1ce5c71dd484a102a5b27d0dd')
|
||||||
|
|
||||||
|
depends_on('bzip2')
|
||||||
|
depends_on('flac')
|
||||||
|
depends_on('id3lib')
|
||||||
|
depends_on('libvorbis')
|
||||||
|
depends_on('opus')
|
Loading…
Reference in New Issue
Block a user