libfame-0.9.1-r1.ebuild 889 B

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