diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-05-29 12:12:49 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-05-29 12:12:49 +0000 |
commit | 556c3daa5513ca4553afe5e2e680b1073cb32bce (patch) | |
tree | 86cd15e3f6e195ca70a2f21eac28eda5e9240cb5 /media-sound | |
parent | Stable for amd64, wrt bug #415861 (diff) | |
download | gentoo-2-556c3daa5513ca4553afe5e2e680b1073cb32bce.tar.gz gentoo-2-556c3daa5513ca4553afe5e2e680b1073cb32bce.tar.bz2 gentoo-2-556c3daa5513ca4553afe5e2e680b1073cb32bce.zip |
Remove old.
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/csound/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/csound/csound-5.17.2-r1.ebuild | 187 | ||||
-rw-r--r-- | media-sound/csound/csound-5.17.6.ebuild | 180 | ||||
-rw-r--r-- | media-sound/csound/files/csound-5.16.6-install.patch | 222 | ||||
-rw-r--r-- | media-sound/csound/files/csound-5.17.2-scons.patch | 277 | ||||
-rw-r--r-- | media-sound/csound/metadata.xml | 1 |
6 files changed, 6 insertions, 868 deletions
diff --git a/media-sound/csound/ChangeLog b/media-sound/csound/ChangeLog index 446b965aaf34..ba1ad00e75fe 100644 --- a/media-sound/csound/ChangeLog +++ b/media-sound/csound/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/csound # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.18 2012/05/29 12:10:21 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.19 2012/05/29 12:12:49 radhermit Exp $ + + 29 May 2012; Tim Harder <radhermit@gentoo.org> + -files/csound-5.16.6-install.patch, -csound-5.17.2-r1.ebuild, + -files/csound-5.17.2-scons.patch, -csound-5.17.6.ebuild, metadata.xml: + Remove old. *csound-5.17.6-r1 (29 May 2012) diff --git a/media-sound/csound/csound-5.17.2-r1.ebuild b/media-sound/csound/csound-5.17.2-r1.ebuild deleted file mode 100644 index bb78e8a4ba81..000000000000 --- a/media-sound/csound/csound-5.17.2-r1.ebuild +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.2-r1.ebuild,v 1.1 2012/04/11 22:32:10 radhermit Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -inherit eutils multilib python java-pkg-opt-2 scons-utils toolchain-funcs versionator - -MY_PN="${PN/c/C}" -MY_P="${MY_PN}${PV}" - -DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance" -HOMEPAGE="http://csounds.com/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+alsa beats chua csoundac +cxx debug double-precision dssi examples fltk +fluidsynth -+image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio -python samples static-libs stk tcl test +threads +utils vim-syntax vst" - -LANGS=" de en_GB en_US es_CO fr it ro ru" -IUSE+="${LANGS// / linguas_}" - -RDEPEND=">=media-libs/libsndfile-1.0.16 - alsa? ( media-libs/alsa-lib ) - csoundac? ( x11-libs/fltk:1[threads?] - dev-libs/boost - =dev-lang/python-2* ) - dssi? ( media-libs/dssi - media-libs/ladspa-sdk ) - fluidsynth? ( media-sound/fluidsynth ) - fltk? ( x11-libs/fltk:1[threads?] ) - image? ( media-libs/libpng ) - jack? ( media-sound/jack-audio-connection-kit ) - java? ( >=virtual/jdk-1.5 ) - keyboard? ( x11-libs/fltk:1[threads?] ) - linear? ( sci-mathematics/gmm ) - lua? ( - luajit? ( dev-lang/luajit:2 ) - !luajit? ( dev-lang/lua ) - ) - osc? ( media-libs/liblo ) - portaudio? ( media-libs/portaudio ) - portmidi? ( media-libs/portmidi ) - pulseaudio? ( media-sound/pulseaudio ) - stk? ( media-libs/stk ) - tcl? ( >=dev-lang/tcl-8.5 - >=dev-lang/tk-8.5 ) - utils? ( !media-sound/snd ) - vst? ( x11-libs/fltk:1[threads?] - dev-libs/boost - =dev-lang/python-2* )" -DEPEND="${RDEPEND} - sys-devel/flex - virtual/yacc - chua? ( dev-libs/boost ) - csoundac? ( dev-lang/swig ) - nls? ( sys-devel/gettext ) - test? ( =dev-lang/python-2* ) - vst? ( dev-lang/swig )" - -REQUIRED_USE="vst? ( csoundac ) - java? ( cxx ) - linear? ( double-precision ) - lua? ( cxx ) - python? ( cxx )" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - if use openmp ; then - tc-has-openmp || die "Please switch to an openmp compatible compiler" - fi - - python_set_active_version 2 - python_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-scons.patch - epatch "${FILESDIR}"/${PN}-5.16.6-tests.patch - epatch "${FILESDIR}"/${PN}-5.16.6-install.patch - - cat > custom.py <<-EOF - platform = 'linux' - customCPPPATH = [] - customCCFLAGS = "${CFLAGS}".split() - customCXXFLAGS = "${CXXFLAGS}".split() - customLIBS = [] - customLIBPATH = [] - customLINKFLAGS = "${LDFLAGS}".split() - customSHLINKFLAGS = [] - customSWIGFLAGS = [] - EOF -} - -src_compile() { - local myconf - [[ $(get_libdir) == "lib64" ]] && myconf+=" Lib64=1" - - escons \ - prefix=/usr \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - buildNewParser=1 \ - pythonVersion=$(python_get_version) \ - $(use_scons alsa useALSA) \ - $(use_scons beats buildBeats) \ - $(use_scons chua buildChuaOpcodes) \ - $(use_scons csoundac buildCsoundAC) \ - $(use_scons cxx buildInterfaces) \ - $(use_scons !debug buildRelease) \ - $(use_scons !debug noDebug) \ - $(use_scons debug NewParserDebug) \ - $(use_scons double-precision useDouble) \ - $(use_scons dssi buildDSSI) \ - $(use_scons fluidsynth buildFluidOpcodes) \ - $(use_scons fltk buildCsound5GUI) \ - $(use_scons fltk useFLTK) \ - $(use_scons image buildImageOpcodes) \ - $(use_scons jack useJack) \ - $(use_scons java buildJavaWrapper) \ - $(use_scons keyboard buildVirtual) \ - $(use_scons linear buildLinearOpcodes) \ - $(use_scons lua buildLuaOpcodes) \ - $(use_scons lua buildLuaWrapper) \ - $(use_scons luajit useLuaJIT) \ - $(use_scons nls useGettext) \ - $(use_scons osc useOSC) \ - $(use_scons openmp useOpenMP) \ - $(use_scons portaudio usePortAudio) \ - $(use_scons portmidi usePortMIDI) \ - $(use_scons pulseaudio usePulseAudio) \ - $(use_scons python buildPythonOpcodes) \ - $(use_scons python buildPythonWrapper) \ - $(use_scons !static-libs dynamicCsoundLibrary) \ - $(use_scons stk buildStkOpcodes) \ - $(use_scons tcl buildTclcsound) \ - $(use_scons !threads noFLTKThreads) \ - $(use_scons threads buildMultiCore) \ - $(use_scons utils buildUtilities) \ - $(use_scons vst buildCsoundVST) \ - ${myconf} -} - -src_test() { - export LD_LIBRARY_PATH="${S}" OPCODEDIR="${S}" OPCODEDIR64="${S}" - cd tests - ./test.py || die "tests failed" -} - -src_install() { - local myconf - [[ $(get_libdir) == "lib64" ]] && myconf+=" --word64" - - use vim-syntax && myconf+=" --vimdir=/usr/share/vim/vimfiles" - - ./install.py --instdir="${D}" --prefix=/usr ${myconf} || die "install failed" - dodoc AUTHORS ChangeLog readme-csound5-complete.txt - - # Generate env.d file - if use double-precision ; then - echo OPCODEDIR64=/usr/$(get_libdir)/${PN}/plugins64 > "${T}"/62${PN} - else - echo OPCODEDIR=/usr/$(get_libdir)/${PN}/plugins > "${T}"/62${PN} - fi - echo "CSSTRNGS=/usr/share/locale" >> "${T}"/62${PN} - use stk && echo "RAWWAVE_PATH=/usr/share/csound/rawwaves" >> "${T}"/62${PN} - doenvd "${T}"/62${PN} - - if use nls ; then - insinto /usr/share/locale - for lang in ${LANGS} ; do - use linguas_${lang} && doins -r po/${lang} - done - fi - - if use examples ; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi - - use samples && dodoc -r samples -} diff --git a/media-sound/csound/csound-5.17.6.ebuild b/media-sound/csound/csound-5.17.6.ebuild deleted file mode 100644 index dccb2244652e..000000000000 --- a/media-sound/csound/csound-5.17.6.ebuild +++ /dev/null @@ -1,180 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild,v 1.4 2012/05/29 12:02:15 radhermit Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -inherit eutils multilib python java-pkg-opt-2 cmake-utils toolchain-funcs versionator - -MY_PN="${PN/c/C}" -MY_P="${MY_PN}${PV}" - -DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance" -HOMEPAGE="http://csounds.com/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+alsa beats chua csoundac +cxx debug double-precision dssi examples fltk +fluidsynth -+image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio -python samples static-libs stk tcl test +threads +utils vim-syntax vst" - -LANGS=" de en_GB en_US es_CO fr it ro ru" -IUSE+="${LANGS// / linguas_}" - -RDEPEND=">=media-libs/libsndfile-1.0.16 - alsa? ( media-libs/alsa-lib ) - csoundac? ( x11-libs/fltk:1[threads?] - dev-libs/boost - =dev-lang/python-2* ) - dssi? ( media-libs/dssi - media-libs/ladspa-sdk ) - fluidsynth? ( media-sound/fluidsynth ) - fltk? ( x11-libs/fltk:1[threads?] ) - image? ( media-libs/libpng ) - jack? ( media-sound/jack-audio-connection-kit ) - java? ( >=virtual/jdk-1.5 ) - keyboard? ( x11-libs/fltk:1[threads?] ) - linear? ( sci-mathematics/gmm ) - lua? ( - luajit? ( dev-lang/luajit:2 ) - !luajit? ( dev-lang/lua ) - ) - osc? ( media-libs/liblo ) - portaudio? ( media-libs/portaudio ) - portmidi? ( media-libs/portmidi ) - pulseaudio? ( media-sound/pulseaudio ) - stk? ( media-libs/stk ) - tcl? ( >=dev-lang/tcl-8.5 - >=dev-lang/tk-8.5 ) - utils? ( !media-sound/snd ) - vst? ( x11-libs/fltk:1[threads?] - dev-libs/boost - =dev-lang/python-2* )" -DEPEND="${RDEPEND} - sys-devel/flex - virtual/yacc - chua? ( dev-libs/boost ) - csoundac? ( dev-lang/swig ) - nls? ( sys-devel/gettext ) - test? ( =dev-lang/python-2* ) - vst? ( dev-lang/swig )" - -REQUIRED_USE="vst? ( csoundac ) - java? ( cxx ) - linear? ( double-precision ) - lua? ( cxx ) - python? ( cxx )" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - if use openmp ; then - tc-has-openmp || die "Please switch to an openmp compatible compiler" - fi - - if use python || use test ; then - python_set_active_version 2 - python_pkg_setup - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-5.16.6-tests.patch - epatch "${FILESDIR}"/${P}-fltk.patch - epatch "${FILESDIR}"/${P}-porttime-in-portmidi.patch - - sed -i -e "s:^\(csoundExecutable =\).*:\1 \"${WORKDIR}/${P}_build/csound\":" \ - tests/test.py || die - - sed -i -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' CMakeLists.txt || die - - if [[ $(get_libdir) == "lib64" ]] ; then - sed -i -e '/set(LIBRARY_INSTALL_DIR/s/lib/lib64/' CMakeLists.txt || die - fi -} - -src_configure() { - local myconf - - if use csoundac ; then - use python && myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=ON" - use lua && myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=ON" - fi - - local mycmakeargs=( - -DBUILD_NEW_PARSER=ON - $(cmake-utils_use_use alsa ALSA) \ - $(cmake-utils_use_build beats CSBEATS) \ - $(cmake-utils_use_build chua CHUA_OPCODES) \ - $(cmake-utils_use_build csoundac CSOUND_AC) \ - $(cmake-utils_use_build cxx CXX_INTERFACE) \ - $(cmake-utils_use debug NEW_PARSER_DEBUG) \ - $(cmake-utils_use_use double-precision DOUBLE) \ - $(cmake-utils_use_build dssi DSSI_OPCODES) \ - $(cmake-utils_use_build fluidsynth FLUID_OPCODES) \ - $(cmake-utils_use_use fltk FLTK) \ - $(cmake-utils_use_build image IMAGE_OPCODES) \ - $(cmake-utils_use_use jack JACK) \ - $(cmake-utils_use_build jack JACK_OPCODES) \ - $(cmake-utils_use_build java JAVA_INTERFACE) \ - $(cmake-utils_use_build keyboard VIRTUAL_KEYBOARD) \ - $(cmake-utils_use_build linear LINEAR_ALGEBRA_OPCODES) \ - $(cmake-utils_use_build lua LUA_OPCODES) \ - $(cmake-utils_use_build lua LUA_INTERFACE) \ - $(cmake-utils_use_use nls GETTEXT) \ - $(cmake-utils_use_build osc OSC_OPCODES) \ - $(cmake-utils_use_use openmp OPEN_MP) \ - $(cmake-utils_use_use portaudio PORTAUDIO) \ - $(cmake-utils_use_use portmidi PORTMIDI) \ - $(cmake-utils_use_use pulseaudio PULSEAUDIO) \ - $(cmake-utils_use_build python PYTHON_OPCODES) \ - $(cmake-utils_use_build python PYTHON_INTERFACE) \ - $(cmake-utils_use_build static-libs STATIC_LIBRARY) \ - $(cmake-utils_use_build stk STK_OPCODES) \ - $(cmake-utils_use_build tcl TCLCSOUND) \ - $(cmake-utils_use_build threads MULTI_CORE) \ - $(cmake-utils_use_build utils UTILITIES) \ - ${myconf} - ) - - cmake-utils_src_configure -} - -src_test() { - export LD_LIBRARY_PATH="${S}" OPCODEDIR="${S}" OPCODEDIR64="${S}" - cd tests - ./test.py || die "tests failed" -} - -src_install() { - cmake-utils_src_install - - dodoc AUTHORS ChangeLog readme-csound5-complete.txt - - # Generate env.d file - if use double-precision ; then - echo OPCODEDIR64=/usr/$(get_libdir)/${PN}/plugins64 > "${T}"/62${PN} - else - echo OPCODEDIR=/usr/$(get_libdir)/${PN}/plugins > "${T}"/62${PN} - fi - echo "CSSTRNGS=/usr/share/locale" >> "${T}"/62${PN} - use stk && echo "RAWWAVE_PATH=/usr/share/csound/rawwaves" >> "${T}"/62${PN} - doenvd "${T}"/62${PN} - - if use examples ; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi - - use samples && dodoc -r samples - - if use vim-syntax ; then - insinto /usr/share/vim/vimfiles/syntax - doins installer/misc/vim/csound_{csd,orc,sco}.vim - insinto /usr/share/vim/vimfiles/plugin - doins installer/misc/vim/csound.vim - fi -} diff --git a/media-sound/csound/files/csound-5.16.6-install.patch b/media-sound/csound/files/csound-5.16.6-install.patch deleted file mode 100644 index e715f58dedd7..000000000000 --- a/media-sound/csound/files/csound-5.16.6-install.patch +++ /dev/null @@ -1,222 +0,0 @@ ---- Csound5.16.6/install.py -+++ Csound5.16.6/install.py -@@ -29,8 +29,6 @@ - - exeFiles2 = ['brkpt', 'linseg', 'tabdes'] - --docFiles = ['COPYING', 'ChangeLog', 'INSTALL', 'readme-csound5.txt'] -- - # ----------------------------------------------------------------------------- - - print 'Csound5 Linux installer by Istvan Varga' -@@ -115,6 +113,8 @@ - javaDir = concatPath([libDir, '/csound/java']) - # LISP interface - lispDir = concatPath([libDir, '/csound/lisp']) -+# luaCsnd.so -+luaDir = concatPath([libDir, '/csound/lua']) - # STK raw wave files - rawWaveDir = concatPath([prefix, '/share/csound/rawwaves']) - -@@ -214,37 +214,12 @@ - if findFiles('.', 'libcsound64\\.so\\..+').__len__() > 0: - useDouble = 1 - --# check for an already existing installation -- --makeDir(concatPath([binDir])) --installedBinaries = findFiles(concatPath([instDir, binDir]), '.+') --if ('csound' in installedBinaries) or ('csound64' in installedBinaries): -- if 'uninstall-csound5' in installedBinaries: -- print ' *** WARNING: found an already existing installation of Csound' -- tmp = '' -- while (tmp != 'yes\n') and (tmp != 'no\n'): -- sys.__stderr__.write( -- ' *** Uninstall it ? Type \'yes\', or \'no\' to quit: ') -- tmp = sys.__stdin__.readline() -- if tmp != 'yes\n': -- print ' *** Csound installation has been aborted' -- print '' -- raise SystemExit(1) -- print ' --- Removing old Csound installation...' -- runCmd([concatPath([instDir, binDir, 'uninstall-csound5'])]) -- print '' -- else: -- print ' *** Error: an already existing installation of Csound was found' -- print ' *** Try removing it first, and then run this script again' -- print '' -- raise SystemExit(1) -- - # copy binaries - - print ' === Installing executables ===' - for i in exeFiles1: - if findFiles('.', i).__len__() > 0: -- err = installXFile('--strip-unneeded', i, binDir) -+ err = installXFile('', i, binDir) - installErrors = installErrors or err - for i in exeFiles2: - if findFiles('.', i).__len__() > 0: -@@ -265,7 +240,7 @@ - if i[-2:] == '.a': - err = installFile(i, libDir) - else: -- err = installXFile('--strip-debug', i, libDir) -+ err = installXFile('', i, libDir) - if err == 0: - if i[:13] == 'libcsound.so.': - err = installLink(i, concatPath([libDir, 'libcsound.so'])) -@@ -292,11 +267,26 @@ - if i in pluginList: - pluginList.remove(i) - for i in pluginList: -- err = installXFile('--strip-unneeded', i, pluginDir) -+ err = installXFile('', i, pluginDir) - installErrors = installErrors or err - - # copy header files - -+# Add forgotten header dependencies -+headerdeps = [] -+for header in headerFiles: -+ f = open(header) -+ for line in f: -+ m = re.findall('^#include "\w+.\w+"', line) -+ if m: -+ n = re.match('^#include "(.+)"', "".join(m)) -+ if os.path.isfile("H/" + n.group(1)): -+ headerdeps.append("H/" + n.group(1)) -+ else: -+ headerdeps.append("interfaces/" + n.group(1)) -+ f.close() -+headerFiles = list(set(headerdeps + headerFiles)) -+ - print ' === Installing header files ===' - err = installFiles(headerFiles, includeDir) - installErrors = installErrors or err -@@ -313,6 +303,7 @@ - ['_loris\\.so', '1', pythonDir2], - ['_scoregen\\.so', '1', pythonDir2], - ['_CsoundAC\\.so ', '1', pythonDir2], -+ ['luaCsnd\\.so', '1', luaDir], - ['csnd\\.jar', '0', javaDir], - ['interfaces/csound5\\.lisp', '0', lispDir]] - for i in wrapperList: -@@ -322,48 +313,21 @@ - if i[1] == '0': - err = installFile(fName, i[2]) - else: -- err = installXFile('--strip-debug', fName, i[2]) -+ err = installXFile('', fName, i[2]) - installErrors = installErrors or err - --# copy XMG files -- --print ' === Installing Localisation files ===' --xmgList = findFiles('.', '.+\\.xmg') --if xmgList.__len__() > 0: -- err = installFiles(xmgList, xmgDir) -- installErrors = installErrors or err --else: -- xmgList = ['de', 'en_GB','en_US', 'es_CO', 'fr', 'it','ro'] -- for i in xmgList: -- makeDir(concatPath([xmgDir, i, 'LC_MESSAGES'])) -- src = 'po/' + i + '/LC_MESSAGES/csound5.mo' -- fileName = concatPath([instDir, xmgDir, i, 'LC_MESSAGES/csound5.mo']) -- err = runCmd(['install', '-p', '-m', '0644', src, fileName]) -- if err == 0: -- addMD5(fileName, fileName) -- print ' %s' % fileName -- else: -- print ' *** error copying %s' % fileName -- installErrors = installErrors or err -- --# Copy documentation -- --print ' === Installing documentation ===' --err = installFiles(docFiles, docDir) --installErrors = installErrors or err -- - # copy Tcl/Tk files - - print ' === Installing Tcl/Tk modules and scripts ===' - if findFiles('.', 'tclcsound\\.so').__len__() > 0: -- err = installXFile('--strip-unneeded', 'tclcsound.so', tclDir) -+ err = installXFile('', 'tclcsound.so', tclDir) - installErrors = installErrors or err - err = installFile('frontends/tclcsound/command_summary.txt', tclDir) - installErrors = installErrors or err --err = installFile('nsliders.tk', tclDir) --installErrors = installErrors or err --err = installXFile('', 'matrix.tk', binDir) --installErrors = installErrors or err -+ err = installFile('nsliders.tk', tclDir) -+ installErrors = installErrors or err -+ err = installXFile('', 'matrix.tk', binDir) -+ installErrors = installErrors or err - - # copy STK raw wave files - -@@ -398,7 +362,7 @@ - pdDir = '' - if pdDir != '': - print ' === Installing csoundapi~ PD object ===' -- err = installXFile('--strip-unneeded', 'csoundapi~.pd_linux', pdDir) -+ err = installXFile('', 'csoundapi~.pd_linux', pdDir) - if err == 0: - try: - os.chmod(concatPath([instDir, pdDir, 'csoundapi~.pd_linux']), 0644) -@@ -420,42 +384,6 @@ - '%s/%s' % (vimDir, 'syntax')) - installErrors = installErrors or err - --# create uninstall script -- --print ' === Installing uninstall script ===' --fileList += [concatPath([prefix, md5Name])] --fileList += [concatPath([binDir, 'uninstall-csound5'])] --try: -- f = open(concatPath([instDir, binDir, 'uninstall-csound5']), 'w') -- print >> f, '#!/bin/sh' -- print >> f, '' -- for i in fileList: -- print >> f, 'rm -f "%s"' % i -- print >> f, '' -- print >> f, '/sbin/ldconfig > /dev/null 2> /dev/null' -- print >> f, '' -- f.close() -- os.chmod(concatPath([instDir, binDir, 'uninstall-csound5']), 0755) -- addMD5(concatPath([instDir, binDir, 'uninstall-csound5']), -- concatPath([binDir, 'uninstall-csound5'])) -- print ' %s' % concatPath([binDir, 'uninstall-csound5']) --except: -- print ' *** Error creating uninstall script' -- installErrors = 1 -- --# save MD5 checksums -- --print ' === Installing MD5 checksums ===' --try: -- f = open(concatPath([instDir, prefix, md5Name]), 'w') -- print >> f, md5List, -- f.close() -- os.chmod(concatPath([instDir, prefix, md5Name]), 0644) -- print ' %s' % concatPath([prefix, md5Name]) --except: -- print ' *** Error installing MD5 checksums' -- installErrors = 1 -- - - # ----------------------------------------------------------------------------- - -@@ -481,10 +409,6 @@ - print ' CSSTRNGS=%s' % xmgDir - if '%s/libstk.so' % pluginDir in fileList: - print ' RAWWAVE_PATH=%s' % rawWaveDir -- print 'Csound can be uninstalled by running %s/uninstall-csound5' % binDir -- --if os.getuid() == 0: -- runCmd(['/sbin/ldconfig']) - - print '' - diff --git a/media-sound/csound/files/csound-5.17.2-scons.patch b/media-sound/csound/files/csound-5.17.2-scons.patch deleted file mode 100644 index 3ae0e3d5689f..000000000000 --- a/media-sound/csound/files/csound-5.17.2-scons.patch +++ /dev/null @@ -1,277 +0,0 @@ ---- Csound5.17.2/SConstruct -+++ Csound5.17.2/SConstruct -@@ -89,6 +89,9 @@ - commandOptions.Add('usePortMIDI', - 'Build PortMidi plugin for real time MIDI input and output.', - '1') -+commandOptions.Add('usePulseAudio', -+ 'Set to 1 to use PulseAudio for real-time audio and MIDI input and output.', -+ '1') - commandOptions.Add('useALSA', - 'Set to 1 to use ALSA for real-time audio and MIDI input and output.', - '1') -@@ -101,6 +104,9 @@ - commandOptions.Add('noFLTKThreads', - 'Set to 1 to disable use of a separate thread for FLTK widgets.', - '1') -+commandOptions.Add('useLuaJIT', -+ 'Set to 1 to use the Just-In-Time Compiler for Lua', -+ '1') - commandOptions.Add('pythonVersion', - 'Set to the Python version to be used.', - '%d.%d' % (int(sys.hexversion) >> 24, (int(sys.hexversion) >> 16) & 255)) -@@ -180,6 +186,15 @@ - commandOptions.Add('dynamicCsoundLibrary', - 'Build dynamic Csound library instead of libcsound.a', - '0') -+commandOptions.Add('buildChuaOpcodes', -+ 'Set to 1 to build chua opcodes.', -+ '1') -+commandOptions.Add('buildLinearOpcodes', -+ 'Set to 1 to build linear algebra opcodes.', -+ '1') -+commandOptions.Add('buildFluidOpcodes', -+ 'Set to 1 to build Fluidsynth opcodes.', -+ '1') - commandOptions.Add('buildStkOpcodes', - "Build opcodes encapsulating Perry Cook's Synthesis Toolkit in C++ instruments and effects", - '0') -@@ -352,6 +367,7 @@ - fileOptions.Add('customCXXFLAGS') - fileOptions.Add('customLIBS') - fileOptions.Add('customLIBPATH') -+fileOptions.Add('customLINKFLAGS') - fileOptions.Add('customSHLINKFLAGS') - fileOptions.Add('customSWIGFLAGS') - fileOptions.Update(commonEnvironment) -@@ -366,6 +382,8 @@ - commonEnvironment.Prepend(LIBS = customLIBS) - customLIBPATH = commonEnvironment['customLIBPATH'] - commonEnvironment.Prepend(LIBPATH = customLIBPATH) -+customLINKFLAGS = commonEnvironment['customLINKFLAGS'] -+commonEnvironment.Prepend(LINKFLAGS = customLINKFLAGS) - customSHLINKFLAGS = commonEnvironment['customSHLINKFLAGS'] - commonEnvironment.Prepend(SHLINKFLAGS = customSHLINKFLAGS) - customSWIGFLAGS = commonEnvironment['customSWIGFLAGS'] -@@ -469,14 +487,6 @@ - if commonEnvironment['buildRelease'] == '0': - commonEnvironment.Prepend(CPPFLAGS = ['-DBETA']) - --if commonEnvironment['Lib64'] == '1': -- if getPlatform() == 'sunos': -- commonEnvironment.Prepend(LIBPATH = ['.', '#.', '/lib/64', '/usr/lib/64']) -- else: -- commonEnvironment.Prepend(LIBPATH = ['.', '#.', '/usr/local/lib64']) --else: -- commonEnvironment.Prepend(LIBPATH = ['.', '#.', '/usr/local/lib']) -- - if commonEnvironment['Word64'] == '1': - if compilerSun(): - commonEnvironment.Append(CCFLAGS = ['-xcode=pic32']) -@@ -494,10 +504,7 @@ - if getPlatform() == 'linux': - commonEnvironment.Append(CCFLAGS = ["-DLINUX"]) - commonEnvironment.Append(CPPFLAGS = ['-DHAVE_SOCKETS']) -- commonEnvironment.Append(CPPPATH = ['/usr/local/include']) -- commonEnvironment.Append(CPPPATH = ['/usr/include']) - commonEnvironment.Append(CPPPATH = ['/usr/include']) -- commonEnvironment.Append(CPPPATH = ['/usr/X11R6/include']) - commonEnvironment.Append(CCFLAGS = ["-DPIPES"]) - commonEnvironment.Append(LINKFLAGS = ['-Wl,-Bdynamic']) - elif getPlatform() == 'sunos': -@@ -559,18 +566,17 @@ - - if getPlatform() == 'linux': - path1 = '/usr/include/python%s' % commonEnvironment['pythonVersion'] -- path2 = '/usr/local/include/python%s' % commonEnvironment['pythonVersion'] -- pythonIncludePath = [path1, path2] -+ pythonIncludePath = [path1] - path1 = '/usr/include/tcl%s' % commonEnvironment['tclversion'] - path2 = '/usr/include/tk%s' % commonEnvironment['tclversion'] - tclIncludePath = [path1, path2] - pythonLinkFlags = [] - if commonEnvironment['Lib64'] == '1': - tmp = '/usr/lib64/python%s/config' % commonEnvironment['pythonVersion'] -- pythonLibraryPath = ['/usr/local/lib64', '/usr/lib64', tmp] -+ pythonLibraryPath = ['/usr/lib64', tmp] - else: - tmp = '/usr/lib/python%s/config' % commonEnvironment['pythonVersion'] -- pythonLibraryPath = ['/usr/local/lib', '/usr/lib', tmp] -+ pythonLibraryPath = ['/usr/lib', tmp] - pythonLibs = ['python%s' % commonEnvironment['pythonVersion']] - elif getPlatform() == 'sunos': - path1 = '/usr/include/python%s' % commonEnvironment['pythonVersion'] -@@ -777,6 +783,7 @@ - zlibhfound = configure.CheckHeader("zlib.h", language = "C") - midiPluginSdkFound = configure.CheckHeader("funknown.h", language = "C++") - luaFound = configure.CheckHeader("lua.h", language = "C") -+luajitFound = configure.CheckLibWithHeader("luajit-5.1", "luajit-2.0/lua.h", language = "C") - #print 'LUA: %s' % (['no', 'yes'][int(luaFound)]) - swigFound = 'swig' in commonEnvironment['TOOLS'] - print 'Checking for SWIG... %s' % (['no', 'yes'][int(swigFound)]) -@@ -1452,25 +1459,31 @@ - swigflags = csoundWrapperEnvironment['SWIGFLAGS'] - print 'swigflags:', swigflags - luaWrapper = None -- if not (luaFound and commonEnvironment['buildLuaWrapper'] != '0'): -+ if not ((luaFound or luajitFound) and commonEnvironment['buildLuaWrapper'] != '0'): - print 'CONFIGURATION DECISION: Not building Lua wrapper to Csound C++ interface library.' - else: - print 'CONFIGURATION DECISION: Building Lua wrapper to Csound C++ interface library.' - luaWrapperEnvironment = csoundWrapperEnvironment.Clone() - if getPlatform() != 'win32': -- csoundWrapperEnvironment.Append(CPPPATH=['/usr/include/lua5.1']) -+ if luajitFound and commonEnvironment['useLuaJIT'] == '1': -+ csoundWrapperEnvironment.Append(CPPPATH=['/usr/include/luajit-2.0']) -+ else: -+ csoundWrapperEnvironment.Append(CPPPATH=['/usr/include/lua5.1']) - if getPlatform() == 'win32': - csoundLuaInterface = luaWrapperEnvironment.SharedObject( - 'interfaces/lua_interface.i', - SWIGFLAGS = [swigflags, '-lua', '-module', 'luaCsnd', '-outdir', '.']) - luaWrapperEnvironment.Prepend(LIBS = ['csnd','lua51']) -- else: -- csoundLuaInterface = luaWrapperEnvironment.SharedObject( -- 'interfaces/lua_interface.i', -- SWIGFLAGS = [swigflags, '-lua', '-module', 'luaCsnd', '-outdir', '.']) -- luaWrapperEnvironment.Prepend(LIBS = ['csnd','luajit-5.1']) -- luaWrapper = makeLuaModule(luaWrapperEnvironment, 'luaCsnd', [csoundLuaInterface]) -- Depends(luaWrapper, csoundLuaInterface) -+ else: -+ csoundLuaInterface = luaWrapperEnvironment.SharedObject( -+ 'interfaces/lua_interface.i', -+ SWIGFLAGS = [swigflags, '-lua', '-module', 'luaCsnd', '-outdir', '.']) -+ if luajitFound and commonEnvironment['useLuaJIT'] == '1': -+ luaWrapperEnvironment.Prepend(LIBS = ['csnd','luajit-5.1']) -+ else: -+ luaWrapperEnvironment.Prepend(LIBS = ['csnd','lua']) -+ luaWrapper = makeLuaModule(luaWrapperEnvironment, 'luaCsnd', [csoundLuaInterface]) -+ Depends(luaWrapper, csoundLuaInterface) - - if not (javaFound and commonEnvironment['buildJavaWrapper'] != '0'): - print 'CONFIGURATION DECISION: Not building Java wrapper to Csound C++ interface library.' -@@ -1510,6 +1523,9 @@ - javaWrapper = javaWrapperEnvironment.Program( - 'lib_jcsound.jnilib', javaWrapperSources) - else: -+ soname = 'lib_jcsound.so' -+ soflag = [ '-Wl,-soname=%s' % soname ] -+ javaWrapperEnvironment.Prepend(LINKFLAGS = [soflag]) - javaWrapper = javaWrapperEnvironment.SharedLibrary( - '_jcsound', javaWrapperSources) - #Depends(javaWrapper, csoundLibrary) -@@ -1759,9 +1775,12 @@ - jpluginEnvironment.Append(LINKFLAGS = ['-framework', 'Jackmp']) - makePlugin(jpluginEnvironment, 'jackTransport', 'Opcodes/jackTransport.c') - makePlugin(jpluginEnvironment, 'jacko', 'Opcodes/jacko.cpp') --if boostFound: -+if commonEnvironment['buildChuaOpcodes'] == '1' and boostFound: -+ print 'CONFIGURATION DECISION: Building chua opcodes.' - makePlugin(pluginEnvironment, 'chua', 'Opcodes/chua/ChuaOscillator.cpp') --if gmmFound and commonEnvironment['useDouble'] != '0': -+else: -+ print 'CONFIGURATION DECISION: Not building chua opcodes.' -+if commonEnvironment['buildLinearOpcodes'] == '1' and gmmFound and commonEnvironment['useDouble'] != '0': - makePlugin(pluginEnvironment, 'linear_algebra', 'Opcodes/linear_algebra.cpp') - print 'CONFIGURATION DECISION: Building linear algebra opcodes.' - else: -@@ -1893,11 +1912,13 @@ - alsaEnvironment.Append(LIBS = ['asound', 'pthread']) - makePlugin(alsaEnvironment, 'rtalsa', ['InOut/rtalsa.c']) - --if pulseaudioFound and (getPlatform() == 'linux' or getPlatform() == 'sunos'): -+if commonEnvironment['usePulseAudio'] == '1' and pulseaudioFound and (getPlatform() == 'linux' or getPlatform() == 'sunos'): - print "CONFIGURATION DECISION: Building PulseAudio plugin" - pulseaudioEnv = pluginEnvironment.Clone() - pulseaudioEnv.Append(LIBS = ['pulse-simple']) - makePlugin(pulseaudioEnv, 'rtpulse', ['InOut/rtpulse.c']) -+else: -+ print "CONFIGURATION DECISION: Not building PulseAudio plugin." - - if getPlatform() == 'win32': - winmmEnvironment = pluginEnvironment.Clone() -@@ -1963,9 +1984,7 @@ - - # FLUIDSYNTH OPCODES - --if not configure.CheckHeader("fluidsynth.h", language = "C"): -- print "CONFIGURATION DECISION: Not building fluid opcodes." --else: -+if commonEnvironment['buildFluidOpcodes'] == '1' and configure.CheckHeader("fluidsynth.h", language = "C"): - print "CONFIGURATION DECISION: Building fluid opcodes." - fluidEnvironment = pluginEnvironment.Clone() - if getPlatform() == 'win32': -@@ -1981,6 +2000,8 @@ - fluidEnvironment.Append(LIBS = ['pthread']) - makePlugin(fluidEnvironment, 'fluidOpcodes', - ['Opcodes/fluidOpcodes/fluidOpcodes.cpp']) -+else: -+ print "CONFIGURATION DECISION: Not building fluid opcodes." - - # VST HOST OPCODES - -@@ -2174,7 +2195,7 @@ - if getPlatform() == 'win32' and pythonLibs[0] < 'python24': - Depends(pythonOpcodes, pythonImportLibrary) - --# Python opcodes -+# Lua opcodes - - if not (commonEnvironment['buildLuaOpcodes'] != '0'): - print "CONFIGURATION DECISION: Not building Lua opcodes." -@@ -2183,10 +2204,13 @@ - luaEnvironment = pluginEnvironment.Clone() - - if getPlatform() == 'linux': -- if(luaFound == 1): -+ if(luajitFound == 1 and commonEnvironment['useLuaJIT'] == '1'): - luaEnvironment.Append(LIBS = ['luajit-5.1']) - luaEnvironment.Append(LIBS = ['util', 'dl', 'm']) -- luaEnvironment.Append(CPPPATH = '/usr/local/include/luajit-2.0') -+ luaEnvironment.Append(CPPPATH = '/usr/include/luajit-2.0') -+ elif(luaFound == 1): -+ luaEnvironment.Append(LIBS = ['lua']) -+ luaEnvironment.Append(LIBS = ['util', 'dl', 'm']) - elif getPlatform() == 'win32': - if(luaFound == 1): - luaEnvironment.Append(LIBS = ['lua51']) -@@ -2538,21 +2562,24 @@ - Depends(csoundAcPythonModule, pythonWrapper) - Depends(csoundAcPythonModule, csoundac) - Depends(csoundAcPythonModule, csnd) -- if luaFound and commonEnvironment['buildLuaWrapper'] != '0': -- luaCsoundACWrapperEnvironment = acWrapperEnvironment.Clone() -- if getPlatform() == 'win32': -- luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luaCsnd lua51 CsoundAC csnd fltk_images')) -- else: -- luaCsoundACWrapperEnvironment.Prepend(LIBS = [luaWrapper]) -- luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luajit-5.1 CsoundAC csnd fltk_images')) -- luaCsoundACWrapper = luaCsoundACWrapperEnvironment.SharedObject( -- 'frontends/CsoundAC/luaCsoundAC.i', SWIGFLAGS = [swigflags, Split('-lua ')]) -- luaCsoundACWrapperEnvironment.Clean('.', 'frontends/CsoundAC/luaCsoundAC_wrap.h') -- CsoundAclModule = makeLuaModule(luaCsoundACWrapperEnvironment, 'luaCsoundAC', [luaCsoundACWrapper]) -- Depends(CsoundAclModule, luaCsoundACWrapper) -- Depends(CsoundAclModule, luaWrapper) -- Depends(CsoundAclModule, csoundac) -- Depends(CsoundAclModule, csnd) -+ if (luajitFound or luaFound) and commonEnvironment['buildLuaWrapper'] != '0': -+ luaCsoundACWrapperEnvironment = acWrapperEnvironment.Clone() -+ if getPlatform() == 'win32': -+ luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luaCsnd lua51 CsoundAC csnd fltk_images')) -+ else: -+ luaCsoundACWrapperEnvironment.Prepend(LIBS = [luaWrapper]) -+ if commonEnvironment['useLuaJIT'] == '1': -+ luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luajit-5.1 CsoundAC csnd fltk_images')) -+ else: -+ luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('lua CsoundAC csnd fltk_images')) -+ luaCsoundACWrapper = luaCsoundACWrapperEnvironment.SharedObject( -+ 'frontends/CsoundAC/luaCsoundAC.i', SWIGFLAGS = [swigflags, Split('-lua ')]) -+ luaCsoundACWrapperEnvironment.Clean('.', 'frontends/CsoundAC/luaCsoundAC_wrap.h') -+ CsoundAclModule = makeLuaModule(luaCsoundACWrapperEnvironment, 'luaCsoundAC', [luaCsoundACWrapper]) -+ Depends(CsoundAclModule, luaCsoundACWrapper) -+ Depends(CsoundAclModule, luaWrapper) -+ Depends(CsoundAclModule, csoundac) -+ Depends(CsoundAclModule, csnd) - - - # Build CsoundVST diff --git a/media-sound/csound/metadata.xml b/media-sound/csound/metadata.xml index 539a9f1945ab..b34cf2a60132 100644 --- a/media-sound/csound/metadata.xml +++ b/media-sound/csound/metadata.xml @@ -22,6 +22,5 @@ <flag name="stk">Build the stk opcodes</flag> <flag name="tcl">Build the tcl interface and clients</flag> <flag name="utils">Build stand-alone executables for utilities that can also be used via `csound -U`</flag> - <flag name="vst">Build the CsoundVST frontend</flag> </use> </pkgmetadata> |