# $Header: /magellan-cvs/smage/ladspa-cmt/ladspa-cmt-1.16-r1.smage2,v 1.1 2008/05/31 17:54:22 niro Exp $ PNAME="ladspa-cmt" PVER="1.16" PBUILD="r1" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="Computer Music Toolkit LADSPA plugins (CMT)." HOMEPAGE="http://www.ladspa.org/" DEPEND=">= media-libs/ladspa-sdk-1.13" SDEPEND=">= sys-apps/sed-4" SRCFILE="cmt_src_${PVER}.tgz" SRCDIR="${BUILDDIR}/cmt" sminclude mtools SRC_URI=( http://www.ladspa.org/download/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR}/src # force usage of our CFLAGS sed -i "/^CFLAGS/ s/-O3/${CFLAGS}/" makefile || die # gcc4 issues sed -i "s:-Werror::g" makefile || die # fix some hardcoded pathes sed -i -e "s:/usr/local/include::g" \ -e "s:/usr/local/lib::g" \ makefile || die } src_compile() { cd ${SRCDIR}/src mmake || die } src_install() { cd ${SRCDIR} minstalldir /usr/$(mlibdir)/ladspa || die minstallexec plugins/\*.so /usr/$(mlibdir)/ladspa || die minstalldocs README doc/COPYING || die }