# Copyright 1999-2006 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.2 2006/12/26 18:23:35 flameeyes 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 ~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 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 }