logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

libsidplay-2.1.1-r5.ebuild (1172B)


  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. S=${WORKDIR}/${MY_P}
  14. MULTILIB_WRAPPED_HEADERS=(
  15. /usr/include/sidplay/sidconfig.h
  16. /usr/include/sidplay/sidint.h
  17. )
  18. src_prepare() {
  19. epatch \
  20. "${FILESDIR}"/${P}-gcc41.patch \
  21. "${FILESDIR}"/${P}-fbsd.patch \
  22. "${FILESDIR}"/${P}-no_libtool_reference.patch
  23. elibtoolize
  24. multilib_copy_sources
  25. }
  26. multilib_src_configure() {
  27. econf \
  28. --enable-shared \
  29. $(use_enable static-libs static) \
  30. --with-pic
  31. }
  32. multilib_src_install_all() {
  33. docinto libsidplay
  34. dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
  35. docinto libsidutils
  36. dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
  37. docinto resid
  38. dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
  39. doenvd "${FILESDIR}"/65resid
  40. prune_libtool_files --all
  41. }