mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
speex: import from portage/
Just imported unchanged from portage/ since it gets used now. BUG=chromium-os:26016 TEST=build_packages for x86-alex works again Change-Id: Ia3228fe14e256b687fed25607f5541e8433d262e Reviewed-on: https://gerrit.chromium.org/gerrit/16555 Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
c151544d6f
commit
a820a55b1d
1
sdk_container/src/third_party/portage-stable/media-libs/speex/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/media-libs/speex/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST speex-1.2rc1.tar.gz 1061882 RMD160 6f4a11ef910b0db9b820826bcac3da1b79cad3a1 SHA1 52daa72572e844e5165315e208da539b2a55c5eb SHA256 342f30dc57bd4a6dad41398365baaa690429660b10d866b7d508e8f1179cb7a6
|
@ -0,0 +1,31 @@
|
|||||||
|
diff -ur speex-1.2rc1.orig/configure.ac speex-1.2rc1/configure.ac
|
||||||
|
--- speex-1.2rc1.orig/configure.ac 2008-07-30 22:49:17.000000000 -0400
|
||||||
|
+++ speex-1.2rc1/configure.ac 2008-07-30 22:50:33.000000000 -0400
|
||||||
|
@@ -112,9 +112,6 @@
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
|
||||||
|
|
||||||
|
-XIPH_PATH_OGG([src="src"], [src=""])
|
||||||
|
-AC_SUBST(src)
|
||||||
|
-
|
||||||
|
AC_CHECK_LIB(m, sin)
|
||||||
|
|
||||||
|
# Check for getopt_long; if not found, use included source.
|
||||||
|
@@ -139,10 +136,16 @@
|
||||||
|
AC_DEFINE([ENABLE_VALGRIND], , [Enable valgrind extra checks])
|
||||||
|
fi])
|
||||||
|
|
||||||
|
+AC_ARG_ENABLE(ogg, [ --enable-ogg Enable OGG support], [if test "$enableval" = yes; then
|
||||||
|
+ XIPH_PATH_OGG([src="src"], [src=""])
|
||||||
|
+ AC_SUBST(src)
|
||||||
|
+fi
|
||||||
|
+])
|
||||||
|
+
|
||||||
|
AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [
|
||||||
|
if test "x$enableval" != xno; then
|
||||||
|
has_sse=yes
|
||||||
|
-CFLAGS="$CFLAGS -O3 -msse"
|
||||||
|
+CFLAGS="$CFLAGS -msse"
|
||||||
|
else
|
||||||
|
has_sse=no
|
||||||
|
fi
|
46
sdk_container/src/third_party/portage-stable/media-libs/speex/speex-1.2_rc1.ebuild
vendored
Normal file
46
sdk_container/src/third_party/portage-stable/media-libs/speex/speex-1.2_rc1.ebuild
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 1999-2009 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/speex-1.2_rc1.ebuild,v 1.8 2009/12/11 19:59:55 ranger Exp $
|
||||||
|
|
||||||
|
inherit autotools eutils flag-o-matic
|
||||||
|
|
||||||
|
MY_P=${P/_} ; MY_P=${MY_P/_p/.}
|
||||||
|
|
||||||
|
DESCRIPTION="Audio compression format designed for speech."
|
||||||
|
HOMEPAGE="http://www.speex.org"
|
||||||
|
SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
|
||||||
|
IUSE="ogg sse"
|
||||||
|
|
||||||
|
RDEPEND="ogg? ( media-libs/libogg )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
cd "${S}"
|
||||||
|
epatch "${FILESDIR}"/${P}-configure.patch
|
||||||
|
|
||||||
|
sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
|
||||||
|
"${S}"/libspeex/Makefile.am \
|
||||||
|
|| die "unable to disable tests building"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
append-flags -D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
|
econf $(use_enable sse) $(use_enable ogg)
|
||||||
|
emake || die "emake failed."
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
|
||||||
|
install || die "emake install failed."
|
||||||
|
|
||||||
|
dodoc AUTHORS ChangeLog NEWS README* TODO
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user