ir_lv2-1.3.2.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit toolchain-funcs flag-o-matic multilib
  5. MY_P="${P/_/.}"
  6. DESCRIPTION="LV2 convolver plugin especially for creating reverb effects"
  7. HOMEPAGE="http://factorial.hu/plugins/lv2/ir"
  8. SRC_URI="http://factorial.hu/system/files/${MY_P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64"
  12. IUSE=""
  13. RDEPEND=">=media-libs/zita-convolver-3
  14. >=x11-libs/gtk+-2.16:2
  15. media-libs/lv2
  16. media-libs/libsndfile
  17. media-libs/libsamplerate"
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig"
  20. S=${WORKDIR}/${PN/_/.}-${PV}
  21. src_prepare() {
  22. sed -i -e 's/g++/$(CXX)/' -e 's/gcc/$(CC)/' Makefile || die #respect CC/CXX
  23. sed -i -e 's/\(^C4CFLAGS =.*\) -O2.*/\1 $(CFLAGS)/' Makefile || die #respect CFLAGS
  24. sed -i -e 's/\(^CPPFLAGS +=.*\) -O2.*/\1 $(CXXFLAGS)/' Makefile || die #respect CXXFLAGS
  25. }
  26. src_compile() {
  27. tc-export CC CXX
  28. emake || die
  29. }
  30. src_install() {
  31. emake INSTDIR="${D}/usr/$(get_libdir)/lv2/ir.lv2" install || die
  32. dodoc README ChangeLog || die
  33. }