blob: 3d976def84be5e3f373a3344a76ce4fc9788efce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mppenc/mppenc-1.16.ebuild,v 1.4 2007/02/21 09:50:45 opfer Exp $
inherit toolchain-funcs flag-o-matic
DESCRIPTION="musepack audio encoder"
HOMEPAGE="http://www.musepack.net/"
SRC_URI="http://files.musepack.net/source/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
IUSE=""
DEPEND=">=dev-util/cmake-2.4"
RDEPEND="!media-sound/musepack-tools"
src_unpack() {
unpack ${A}
# Respect user-chosen CFLAGS
sed -i -e '/CMAKE_C_FLAGS/d' "${S}/CMakeLists.txt"
}
src_compile() {
tc-export CC CXX LD
# Upstream uses this
append-flags -ffast-math
# maybe other big endian arches need this, too
use ppc && append-flags -D__APPLE__
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
|| die "cmake failed"
emake VERBOSE="1" || die "emake failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "emake install failed"
dodoc Changelog
}
|