faac-1.28-r3.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools eutils
  5. DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com"
  6. HOMEPAGE="http://www.audiocoding.com"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. LICENSE="LGPL-2.1 MPEG-4"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
  11. IUSE="static-libs"
  12. RDEPEND="media-libs/libmp4v2:0="
  13. DEPEND="${RDEPEND}"
  14. src_prepare() {
  15. epatch \
  16. "${FILESDIR}"/${P}-external-libmp4v2.patch \
  17. "${FILESDIR}"/${P}-altivec.patch \
  18. "${FILESDIR}"/${P}-libmp4v2_r479_compat.patch \
  19. "${FILESDIR}"/${P}-inttypes.patch
  20. sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466984
  21. eautoreconf
  22. epunt_cxx
  23. }
  24. src_configure() {
  25. econf $(use_enable static-libs static)
  26. }
  27. src_install() {
  28. emake DESTDIR="${D}" install
  29. dodoc AUTHORS ChangeLog NEWS README TODO
  30. dohtml docs/*.html
  31. insinto /usr/share/doc/${PF}/pdf
  32. doins docs/libfaac.pdf
  33. prune_libtool_files
  34. }