libfame-0.9.1-r2.ebuild 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. AUTOTOOLS_AUTORECONF=1
  5. inherit autotools-multilib
  6. PATCHLEVEL="2"
  7. DESCRIPTION="MPEG-1 and MPEG-4 video encoding library"
  8. HOMEPAGE="http://fame.sourceforge.net/"
  9. SRC_URI="mirror://sourceforge/fame/${P}.tar.gz
  10. http://digilander.libero.it/dgp85/gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86"
  14. IUSE="cpu_flags_x86_mmx static-libs"
  15. PATCHES=(
  16. "${FILESDIR}"/${P}-gcc43.patch
  17. "${FILESDIR}"/${P}-mmx-configure.ac.patch )
  18. DOCS=( AUTHORS BUGS CHANGES README TODO )
  19. src_prepare() {
  20. EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
  21. # Do not add -march=i586, bug #41770.
  22. sed -i -e 's:-march=i[345]86 ::g' configure.in || die
  23. rm -f acinclude.m4
  24. autotools-multilib_src_prepare
  25. }
  26. src_configure() {
  27. local myeconfargs=(
  28. $(use_enable cpu_flags_x86_mmx mmx)
  29. )
  30. autotools-multilib_src_configure
  31. }