libsidplay-2.1.1-r4.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils libtool multilib-minimal
  5. MY_P=sidplay-libs-${PV}
  6. DESCRIPTION="C64 SID player library"
  7. HOMEPAGE="http://sidplay2.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="2"
  11. KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
  12. IUSE="static-libs"
  13. RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r6
  14. !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
  15. S=${WORKDIR}/${MY_P}
  16. MULTILIB_WRAPPED_HEADERS=(
  17. /usr/include/sidplay/sidconfig.h
  18. )
  19. src_prepare() {
  20. epatch \
  21. "${FILESDIR}"/${P}-gcc41.patch \
  22. "${FILESDIR}"/${P}-fbsd.patch \
  23. "${FILESDIR}"/${P}-gcc43.patch \
  24. "${FILESDIR}"/${P}-no_libtool_reference.patch
  25. elibtoolize
  26. multilib_copy_sources
  27. }
  28. multilib_src_configure() {
  29. econf \
  30. --enable-shared \
  31. $(use_enable static-libs static) \
  32. --with-pic
  33. }
  34. multilib_src_install_all() {
  35. docinto libsidplay
  36. dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
  37. docinto libsidutils
  38. dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
  39. docinto resid
  40. dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
  41. doenvd "${FILESDIR}"/65resid
  42. prune_libtool_files --all
  43. }