summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-25 00:38:42 +0800
committerGitHub <noreply@github.com>2020-09-24 11:38:42 -0500
commitb01aea2cec88e93f1fd96db5ac8bf75c4afcaeb9 (patch)
tree93a17f4e4d3915a9924f6f34ebfb3853bd8a2d29
parent65ea663fd4b507923ad419d587deae6deb1ca79c (diff)
downloadspack-b01aea2cec88e93f1fd96db5ac8bf75c4afcaeb9.tar.gz
spack-b01aea2cec88e93f1fd96db5ac8bf75c4afcaeb9.tar.bz2
spack-b01aea2cec88e93f1fd96db5ac8bf75c4afcaeb9.tar.xz
spack-b01aea2cec88e93f1fd96db5ac8bf75c4afcaeb9.zip
Add new package: libtheora (#18928)
-rw-r--r--var/spack/repos/builtin/packages/libtheora/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtheora/package.py b/var/spack/repos/builtin/packages/libtheora/package.py
new file mode 100644
index 0000000000..9a1b3554f3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libtheora/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Libtheora(AutotoolsPackage):
+ """Theora Video Compression."""
+
+ homepage = "http://www.theora.org"
+ url = "http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.xz"
+
+ version('1.1.1', sha256='f36da409947aa2b3dcc6af0a8c2e3144bc19db2ed547d64e9171c59c66561c61')
+ version('1.1.0', sha256='3d7b4fb1c115f1a530afd430eed2e8861fa57c8b179ec2d5a5d8f1cd0c7a4268')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('doxygen', type='build')
+ depends_on('libogg')
+
+ def autoreconf(self, spec, prefix):
+ sh = which('sh')
+ if self.spec.satisfies('target=aarch64:'):
+ sh('./autogen.sh', 'prefix={0}'.format(prefix),
+ '--build=arm-linux')
+ else:
+ sh('./autogen.sh', 'prefix={0}'.format(prefix))