spu-tools-2.3.0.136.ebuild 744 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils flag-o-matic toolchain-funcs
  5. MY_P=${P/_p/-}
  6. DESCRIPTION="CELL spu ps and top alike utilities"
  7. HOMEPAGE="https://sourceforge.net/projects/libspe"
  8. SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="ppc ppc64"
  12. RDEPEND="
  13. sys-libs/ncurses:0=
  14. "
  15. DEPEND="
  16. ${RDEPEND}
  17. sys-apps/help2man
  18. "
  19. S="${WORKDIR}/${PN}/src"
  20. src_prepare() {
  21. epatch \
  22. "${FILESDIR}"/${P}-buildsystem.patch \
  23. "${FILESDIR}"/${P}-format-security.patch
  24. tc-export CC
  25. append-cppflags -std=gnu89
  26. export CFLAGS="${CFLAGS}"
  27. export LDFLAGS="${LDFLAGS}"
  28. export LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
  29. }