# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python DESCRIPTION="" HOMEPAGE="" SRC_URI="http://csound.sourceforge.net/csound5-20051124.tar.bz2" LICENSE="" SLOT="0" KEYWORDS="~amd64" IUSE="jack alsa" DEPEND="" RDEPEND="" S=${WORKDIR}/csound5 src_unpack() { unpack ${A} cd ${S} } src_compile() { myconf="" cd ${S} cat SConstruct | \ sed -e "s|return 'unsupported'|'return unsupported'\nenv = Environment()\nenv.SConsignFile()|g" > temp.txt mv temp.txt SConstruct #Architecture if [ $ARCH="amd64" ]; then myconf="${myconf} Word64=1 gcc3opt=k8" else sed -i -e "s/-O2/${CFLAGS// /\' ,\'}/g" ${S}/SConstruct fi #Jack if useq jack; then myconf="${myconf} useJack=1" else myconf="${myconf} useJack=0" fi #Alsa if useq alsa; then myconf="${myconf} useALSA=1" else myconf="${myconf} useALSA=0" fi #FLTK (no use settings for this yet) myconf="${myconf} useFLTK=1" #myconf="${myconf} useFLTK=0" #PortMidi myconf="${myconf} usePortMIDI=1" #myconf="${myconf} usePortMIDI=0" myconf="${myconf} buildDSSI=0 useCoreAudio=0 buildLoris=0 \ generateXmg=0 buildJavaWrapper=0 buildCsoundVST=0 \ usePortAudio=0 buildInterfaces=0 noDebug=1 \ dynamicCsoundLibrary=1" #echo ${myconf} scons ${myconf} || die } src_install() { exeinto /usr/local/bin/ cd ${S} doexe csound cs csb64enc cvanal dnoise envext extract extractor het_export \ het_import hetro linseg lpanal lpc_export lpc_import makecsd makedb mixer \ pvanal pvlook scale scsort sndinfo srconv tabdes dodir /usr/local/lib/csound dodir /usr/local/lib/csound/plugins exeinto /usr/local/$(get_libdir)/csound/plugins doexe *.so doexe *.a exeinto /usr/local/include/csound doexe H/* doexe interfaces/*.hpp doexe interfaces/filebuilding.h }