blob: 8a51c66216c6b9b8d0e068966c49d06b7a80a04e [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import common
from autotest_lib.client.bin import utils
version = 1
def setup(tarball, topdir):
srcdir = os.path.join(topdir, 'src')
utils.extract_tarball_to_dir(tarball, srcdir)
utils.system('patch < ../configure_no_gsm.patch')
utils.configure('--disable-gomp --without-sndfile --without-magic' +
' --prefix=%s' % topdir)
utils.system('make install')
# The source is grabbed from
pwd = os.getcwd()
tarball = os.path.join(pwd, 'sox-14.3.2.tar.gz')
utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)