1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils multilib-minimal
8 DESCRIPTION="Open Source video codec"
9 HOMEPAGE="http://dirac.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15 IUSE="debug doc cpu_flags_x86_mmx static-libs"
23 || ( >=app-text/texlive-core-2014 app-text/dvipdfm )
25 DOCS=( AUTHORS ChangeLog NEWS README TODO )
28 epatch "${FILESDIR}"/${PN}-0.5.2-doc.patch
29 AT_M4DIR="m4" eautoreconf
30 export VARTEXFONTS="${T}/fonts"
33 multilib_src_configure() {
34 ECONF_SOURCE="${S}" econf \
35 $(use_enable static-libs static) \
36 $(use_enable cpu_flags_x86_mmx mmx) \
38 $(multilib_is_native_abi && echo $(use_enable doc))
39 if ! multilib_is_native_abi ; then
40 sed -i -e 's/ encoder decoder util//' Makefile || die
44 multilib_src_install() {
47 htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
48 latexdir="${EPREFIX}/usr/share/doc/${PF}/programmers" \
49 algodir="${EPREFIX}/usr/share/doc/${PF}/algorithm" \
50 faqdir="${EPREFIX}/usr/share/doc/${PF}" \
54 multilib_src_install_all() {
55 prune_libtool_files --all