You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/ir_lv2/ir_lv2-1.3.2.ebuild

43 lines
1.0 KiB

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