KXL-1.1.7-r2.ebuild 681 B

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils autotools
  5. DESCRIPTION="Development Library for making games for X"
  6. HOMEPAGE="http://kxl.orz.hm/"
  7. SRC_URI="http://kxl.hn.org/download/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE="static-libs"
  12. DEPEND="x11-libs/libX11"
  13. src_prepare() {
  14. epatch "${FILESDIR}"/${P}-m4.patch \
  15. "${FILESDIR}"/${P}-amd64.patch \
  16. "${FILESDIR}"/${P}-as-needed.patch \
  17. "${FILESDIR}"/${P}-ldflags.patch
  18. eautoreconf
  19. }
  20. src_configure() {
  21. econf $(use_enable static-libs static)
  22. }
  23. src_install() {
  24. default
  25. use static-libs || prune_libtool_files
  26. }