blob: df08dd33821f98e3a3e6d81ec1207e09fa1620e6 [file] [log] [blame]
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-sdk/ladspa-sdk-1.13-r1.ebuild,v 1.11 2012/06/08 23:51:44 zmedico Exp $
EAPI=4
inherit eutils multilib toolchain-funcs portability flag-o-matic
MY_PN=${PN/-/_}
MY_P=${MY_PN}_${PV}
DESCRIPTION="The Linux Audio Developer's Simple Plugin API"
HOMEPAGE="http://www.ladspa.org/"
SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND=">=sys-apps/sed-4"
S="${WORKDIR}/${MY_PN}/src"
src_prepare() {
epatch "${FILESDIR}"/${P}-properbuild.patch \
"${FILESDIR}"/${P}-asneeded.patch \
"${FILESDIR}"/${P}-fbsd.patch \
"${FILESDIR}"/${P}-no-LD.patch
sed -i -e 's:-sndfile-play*:@echo Disabled \0:' \
makefile || die "sed makefile failed (sound playing tests)"
}
src_compile() {
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
DYNAMIC_LD_LIBS="$(dlopen_lib)" \
CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
targets
}
src_install() {
emake INSTALL_PLUGINS_DIR="/usr/$(get_libdir)/ladspa" \
DESTDIR="${D}" \
MKDIR_P="mkdir -p" \
install
dohtml ../doc/*.html
# Needed for apps like rezound
dodir /etc/env.d
echo "LADSPA_PATH=/usr/$(get_libdir)/ladspa" > "${D}/etc/env.d/60ladspa"
}