| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/vo-amrwbenc/vo-amrwbenc-0.1.2.ebuild,v 1.8 2012/08/22 14:14:20 xmw Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
if [[ ${PV} == *9999 ]] ; then
|
| 8 |
SCM="git-2"
|
| 9 |
EGIT_REPO_URI="git://github.com/mstorsjo/${PN}.git"
|
| 10 |
[[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}"
|
| 11 |
fi
|
| 12 |
|
| 13 |
inherit eutils multilib autotools ${SCM}
|
| 14 |
|
| 15 |
DESCRIPTION="VisualOn AMR-WB encoder library"
|
| 16 |
HOMEPAGE="http://sourceforge.net/projects/opencore-amr/"
|
| 17 |
|
| 18 |
if [[ ${PV} == *9999 ]] ; then
|
| 19 |
SRC_URI=""
|
| 20 |
elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
|
| 21 |
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
| 22 |
else # Official release
|
| 23 |
SRC_URI="mirror://sourceforge/opencore-amr/${P}.tar.gz"
|
| 24 |
fi
|
| 25 |
|
| 26 |
LICENSE="Apache-2.0"
|
| 27 |
SLOT="0"
|
| 28 |
|
| 29 |
# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
|
| 30 |
[[ ${PV} == *9999 ]] || \
|
| 31 |
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-macos"
|
| 32 |
IUSE="examples static-libs"
|
| 33 |
|
| 34 |
src_prepare() {
|
| 35 |
[[ ${PV} == *9999 ]] && eautoreconf
|
| 36 |
}
|
| 37 |
|
| 38 |
src_configure() {
|
| 39 |
econf \
|
| 40 |
--disable-dependency-tracking \
|
| 41 |
$(use_enable examples example) \
|
| 42 |
$(use_enable static-libs static)
|
| 43 |
}
|
| 44 |
|
| 45 |
src_install() {
|
| 46 |
emake DESTDIR="${D}" install || die
|
| 47 |
find "${D}"usr/$(get_libdir) -name '*.la' -delete
|
| 48 |
}
|