# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libebml/libebml-0.8.0.ebuild,v 1.4 2010/10/15 21:38:00 ranger Exp $ EAPI=2 inherit eutils multilib toolchain-funcs DESCRIPTION="Extensible binary format library (kinda like XML)" HOMEPAGE="http://www.matroska.org/" SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" IUSE="" S="${S}/make/linux" src_prepare() { epatch "${FILESDIR}"/${P}-makefile-fixup.patch } src_compile() { # keep the prefix in here to make sure the binary is built with a correct # install_name on Darwin emake \ prefix="${EPREFIX}/usr" \ CC="$(tc-getCC)" \ CXX="$(tc-getCXX)" \ || die "emake failed" } src_install() { emake \ DESTDIR="${D}" \ prefix="${EPREFIX}/usr" \ libdir="${EPREFIX}/usr/$(get_libdir)" \ install || die "emake install failed" dodoc "${WORKDIR}/${P}/ChangeLog" }