summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2016-08-06 22:06:25 -0400
committerTim Harder <radhermit@gentoo.org>2016-08-06 22:13:29 -0400
commit2adc2485e705ba9921d40f4ff7bd76cc509dd8f1 (patch)
tree34a23cc8836d1a082928d72eeac37b0f2fe7a2ae /media-sound/csound
parentmedia-sound/csound: version bump to 6.07.0 (diff)
downloadgentoo-2adc2485e705ba9921d40f4ff7bd76cc509dd8f1.tar.gz
gentoo-2adc2485e705ba9921d40f4ff7bd76cc509dd8f1.tar.bz2
gentoo-2adc2485e705ba9921d40f4ff7bd76cc509dd8f1.zip
media-sound/csound: remove old
Diffstat (limited to 'media-sound/csound')
-rw-r--r--media-sound/csound/Manifest3
-rw-r--r--media-sound/csound/csound-6.02.ebuild217
-rw-r--r--media-sound/csound/csound-6.04.ebuild214
-rw-r--r--media-sound/csound/csound-6.05.0.ebuild215
-rw-r--r--media-sound/csound/files/csound-6.05-underlinking.patch53
5 files changed, 0 insertions, 702 deletions
diff --git a/media-sound/csound/Manifest b/media-sound/csound/Manifest
index 35aecf07377..a49efeddad1 100644
--- a/media-sound/csound/Manifest
+++ b/media-sound/csound/Manifest
@@ -1,5 +1,2 @@
-DIST Csound6.02.tar.gz 23459796 SHA256 b964199642b1141d4e3253a86996c613c2420c4e2cc39cad347ad7115768c0a5 SHA512 885911561768fe4f9761b442899ba3481d09d02f095aaeb14d076a4902482269274e394517423bf8fea68c2f9e76bd3faaebe328d878ccc0a4c4a8d2d95d1dc0 WHIRLPOOL 9ee8e51c3ce224717b3b3f0cca249d2b10052defc9749abb359b862325766117ec887e07c00a1287b7d0915849c018ee7c3985bd147d4517f466b69f7e4cbdd8
-DIST Csound6.04.tar.gz 23959744 SHA256 0ff0203b87d10779dca962292a407e15ab0b284b558c9c63f892b74ed1e06080 SHA512 b19e2c4173c6d964b073ef19221f285e9ebd5a5d5d93148687b06860091bcc6e97e6b5e2223687e8f498608d9e27a33a75a50bb9d81ba83f4cd34e2eb4ceaeac WHIRLPOOL 5912e7c4e3fe42206a3914f66e24e1179e1f50337e17f407762d89a011f5f752e768faaaaf7eb34b097070bed8d28bbab37557cb6c6a1c9eebc174e0a7876dcd
-DIST csound-6.05.0.tar.gz 32094544 SHA256 2384cbc82fe37b70192c87977b52c55b336731ecbfd3be1d8d30c7223815d7b9 SHA512 a30a818e6e03b8ede0384c0bfddbde62ec9d9f1cfc33b92d6b23780c0d87a0c4e25229f9707eb2a5081971d0e53ff00c1e3465fd2af706a1c3bf2b53bc312be1 WHIRLPOOL f2e10297dbb337957dcd595b32df1a3279a504076fb113c0907374ff5ac88510e9df856c69fbef402681012adc1e36b7a03b1bf757014387b883b225d1da962f
DIST csound-6.06.0.tar.gz 33113094 SHA256 0be4d845729f9219d59f3e87b91bc2672e26838178fb0fc4a7753211984d3ef2 SHA512 6a8c2afec4ccaf27a5af37f8f847a1fa32d1800724fd0c80139ad7487288a49d19779d0ee505dc35bc7847bac34bb6c3a184da3600ddc7343531884845e6393b WHIRLPOOL 3bbbe0f27a1d104b2483c42016feaa3df28cda4488e71a15e7b1fc77360df801c6e06644f539167579055b7fa5877a937cb26b4d132ba30272c0827575eb0fe4
DIST csound-6.07.0.tar.gz 33834342 SHA256 606af463da477cf4a3f89d00a4fda63c7eb0dc7f50a8923069f009dfdc545799 SHA512 73f8f3a31f570cff309168127adc476cf78c7671d864fb0230175aba358e46b5272ba654688b2060abaf4de7ee4d68e29cc8480fdddaac48657332d5a0802a06 WHIRLPOOL 53cc86e9997088cfd1528b405b8aaf58f65a5ec6a0a4ceb20fa438ef59c96d4a0fc3996245b16da6bde72cf47bef2130d37cc8ed095cfd04e8b7948c66e6d046
diff --git a/media-sound/csound/csound-6.02.ebuild b/media-sound/csound/csound-6.02.ebuild
deleted file mode 100644
index f8bc979a373..00000000000
--- a/media-sound/csound/csound-6.02.ebuild
+++ /dev/null
@@ -1,217 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit eutils multilib java-pkg-opt-2 cmake-utils toolchain-funcs versionator python-single-r1
-
-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 curl +cxx debug double-precision dssi examples fltk +fluidsynth
-+image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio
-python samples score static-libs stk tcl test +threads +utils vim-syntax"
-
-LANGS=" de 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-cpp/eigen:3
- dev-libs/boost
- ${PYTHON_DEPS}
- )
- curl? ( net-misc/curl )
- dssi? (
- media-libs/dssi
- media-libs/ladspa-sdk
- )
- fluidsynth? ( media-sound/fluidsynth )
- fltk? ( x11-libs/fltk:1[threads?] )
- image? ( media-libs/libpng:0= )
- 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:0 )
- )
- osc? ( media-libs/liblo )
- portaudio? ( media-libs/portaudio )
- portmidi? ( media-libs/portmidi )
- pulseaudio? ( media-sound/pulseaudio )
- python? ( ${PYTHON_DEPS} )
- stk? ( media-libs/stk )
- tcl? (
- >=dev-lang/tcl-8.5:0=
- >=dev-lang/tk-8.5:0=
- )
- utils? ( !media-sound/snd )
-"
-DEPEND="${RDEPEND}
- sys-devel/flex
- virtual/yacc
- chua? ( dev-libs/boost )
- csoundac? ( dev-lang/swig )
- nls? ( sys-devel/gettext )
- test? (
- dev-util/cunit
- ${PYTHON_DEPS}
- )
-"
-REQUIRED_USE="
- java? ( cxx )
- linear? ( double-precision )
- lua? ( cxx )
- python? ( cxx )
-"
-
-# requires specific alsa settings
-RESTRICT="test"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_pretend() {
- if use openmp ; then
- tc-has-openmp || die "Please switch to an openmp compatible compiler"
- fi
-}
-
-pkg_setup() {
- if use python || use test ; then
- python-single-r1_pkg_setup
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-porttime-in-portmidi.patch
-
- sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
- -e '/-O3/d' \
- -i CMakeLists.txt || die
-
- if use python ; then
- sed -i "/set(PYTHON_MODULE_INSTALL_DIR/s#\${LIBRARY_INSTALL_DIR}#$(python_get_sitedir)#" CMakeLists.txt || die
- fi
-
- for lang in ${LANGS} ; do
- if ! use linguas_${lang} ; then
- sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die
- fi
- done
-}
-
-src_configure() {
- local myconf
-
- if use csoundac ; then
- myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex python ON OFF)"
- myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex lua ON OFF)"
- fi
-
- [[ $(get_libdir) == "lib64" ]] && myconf+=" -DUSE_LIB64=ON"
-
- local mycmakeargs=(
- $(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_use curl CURL)
- $(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 score SCORE_PARSER)
- $(cmake-utils_use_build static-libs STATIC_LIBRARY)
- $(cmake-utils_use_build stk STK_OPCODES)
- $(cmake-utils_use_build test TESTS)
- $(cmake-utils_use_build test STATIC_LIBRARY)
- $(cmake-utils_use_build tcl TCLCSOUND)
- $(cmake-utils_use_build threads MULTI_CORE)
- $(cmake-utils_use_build utils UTILITIES)
- -DBUILD_RELEASE=ON
- ${myconf}
- )
-
- cmake-utils_src_configure
-}
-
-src_test() {
- cmake-utils_src_test
-}
-
-src_install() {
- cmake-utils_src_install
-
- dodoc AUTHORS ChangeLog readme-csound6.txt What_is_New.txt \
- Release_Notes/* Known_Problems todo.txt To-fix-and-do
-
- # 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
-
- # rename extract to csound_extract (bug #247394)
- mv "${ED}"/usr/bin/{extract,csound_extract} || die
-
- use python && python_optimize
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- elog
- elog "The extract tool is now installed as csound_extract"
- elog "due to collisions with many other packages (bug #247394)."
- elog
- fi
-}
diff --git a/media-sound/csound/csound-6.04.ebuild b/media-sound/csound/csound-6.04.ebuild
deleted file mode 100644
index c95a023b075..00000000000
--- a/media-sound/csound/csound-6.04.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit eutils multilib java-pkg-opt-2 cmake-utils toolchain-funcs versionator python-single-r1
-
-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 curl +cxx debug double-precision dssi examples fltk +fluidsynth
-+image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio
-python samples score static-libs stk tcl test +threads +utils vim-syntax"
-
-LANGS=" de 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-cpp/eigen:3
- dev-libs/boost
- ${PYTHON_DEPS}
- )
- curl? ( net-misc/curl )
- dssi? (
- media-libs/dssi
- media-libs/ladspa-sdk
- )
- fluidsynth? ( media-sound/fluidsynth )
- fltk? ( x11-libs/fltk:1[threads?] )
- image? ( media-libs/libpng:0= )
- 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:0 )
- )
- osc? ( media-libs/liblo )
- portaudio? ( media-libs/portaudio )
- portmidi? ( media-libs/portmidi )
- pulseaudio? ( media-sound/pulseaudio )
- python? ( ${PYTHON_DEPS} )
- stk? ( media-libs/stk )
- tcl? (
- >=dev-lang/tcl-8.5:0=
- >=dev-lang/tk-8.5:0=
- )
- utils? ( !media-sound/snd )
-"
-DEPEND="${RDEPEND}
- sys-devel/flex
- virtual/yacc
- chua? ( dev-libs/boost )
- csoundac? ( dev-lang/swig )
- nls? ( sys-devel/gettext )
- test? (
- dev-util/cunit
- ${PYTHON_DEPS}
- )
-"
-REQUIRED_USE="
- java? ( cxx )
- linear? ( double-precision )
- lua? ( cxx )
- python? ( cxx )
-"
-
-# requires specific alsa settings
-RESTRICT="test"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_pretend() {
- if use openmp ; then
- tc-has-openmp || die "Please switch to an openmp compatible compiler"
- fi
-}
-
-pkg_setup() {
- if use python || use test ; then
- python-single-r1_pkg_setup
- fi
-}
-
-src_prepare() {
- sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
- -e '/-O3/d' \
- -i CMakeLists.txt || die
-
- if use python ; then
- sed -i "/set(PYTHON_MODULE_INSTALL_DIR/s#\${LIBRARY_INSTALL_DIR}#$(python_get_sitedir)#" CMakeLists.txt || die
- fi
-
- for lang in ${LANGS} ; do
- if ! use linguas_${lang} ; then
- sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die
- fi
- done
-}
-
-src_configure() {
- local myconf
-
- if use csoundac ; then
- myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex python ON OFF)"
- myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex lua ON OFF)"
- fi
-
- [[ $(get_libdir) == "lib64" ]] && myconf+=" -DUSE_LIB64=ON"
-
- local mycmakeargs=(
- $(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_use curl CURL)
- $(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 score SCORE_PARSER)
- $(cmake-utils_use_build static-libs STATIC_LIBRARY)
- $(cmake-utils_use_build stk STK_OPCODES)
- $(cmake-utils_use_build test TESTS)
- $(cmake-utils_use_build test STATIC_LIBRARY)
- $(cmake-utils_use_build tcl TCLCSOUND)
- $(cmake-utils_use_build threads MULTI_CORE)
- $(cmake-utils_use_build utils UTILITIES)
- -DNEED_PORTTIME=OFF
- -DBUILD_RELEASE=ON
- ${myconf}
- )
-
- cmake-utils_src_configure
-}
-
-src_test() {
- cmake-utils_src_test
-}
-
-src_install() {
- cmake-utils_src_install
- dodoc AUTHORS ChangeLog README.md Release_Notes/*
-
- # 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
-
- # rename extract to csound_extract (bug #247394)
- mv "${ED}"/usr/bin/{extract,csound_extract} || die
-
- use python && python_optimize
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- elog
- elog "The extract tool is now installed as csound_extract"
- elog "due to collisions with many other packages (bug #247394)."
- elog
- fi
-}
diff --git a/media-sound/csound/csound-6.05.0.ebuild b/media-sound/csound/csound-6.05.0.ebuild
deleted file mode 100644
index 186991fccdf..00000000000
--- a/media-sound/csound/csound-6.05.0.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-inherit eutils multilib java-pkg-opt-2 cmake-utils toolchain-funcs versionator python-single-r1
-
-DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance"
-HOMEPAGE="http://csound.github.io/"
-SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+alsa beats chua csoundac curl +cxx debug double-precision dssi examples
-fltk +fluidsynth +image jack java keyboard linear lua luajit nls osc openmp
-portaudio portmidi pulseaudio python samples score static-libs stk tcl test
-+threads +utils vim-syntax"
-
-LANGS=" de 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-cpp/eigen:3
- dev-libs/boost
- )
- curl? ( net-misc/curl )
- dssi? (
- media-libs/dssi
- media-libs/ladspa-sdk
- )
- fluidsynth? ( media-sound/fluidsynth )
- fltk? ( x11-libs/fltk:1[threads?] )
- image? ( media-libs/libpng:0= )
- jack? ( media-sound/jack-audio-connection-kit )
- java? ( virtual/jdk )
- keyboard? ( x11-libs/fltk:1[threads?] )
- linear? ( sci-mathematics/gmm )
- lua? (
- luajit? ( dev-lang/luajit:2 )
- !luajit? ( dev-lang/lua:0 )
- )
- osc? ( media-libs/liblo )
- portaudio? ( media-libs/portaudio )
- portmidi? ( media-libs/portmidi )
- pulseaudio? ( media-sound/pulseaudio )
- python? ( ${PYTHON_DEPS} )
- stk? ( media-libs/stk )
- tcl? (
- >=dev-lang/tcl-8.5:0=
- >=dev-lang/tk-8.5:0=
- )
- utils? ( !media-sound/snd )
-"
-DEPEND="${RDEPEND}
- sys-devel/flex
- virtual/yacc
- chua? ( dev-libs/boost )
- csoundac? ( dev-lang/swig )
- nls? ( sys-devel/gettext )
- test? (
- dev-util/cunit
- ${PYTHON_DEPS}
- )
-"
-REQUIRED_USE="
- csoundac? ( || ( lua python ) )
- java? ( cxx )
- linear? ( double-precision )
- lua? ( cxx )
- python? ( cxx )
-"
-
-# requires specific alsa settings
-RESTRICT="test"
-
-pkg_pretend() {
- if use openmp ; then
- tc-has-openmp || die "Please switch to an openmp compatible compiler"
- fi
-}
-
-pkg_setup() {
- if use python || use test ; then
- python-single-r1_pkg_setup
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/csound-6.05-python.patch
-
- # bug #566064
- epatch "${FILESDIR}"/csound-6.05-underlinking.patch
-
- sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
- -e '/-O3/d' \
- -i CMakeLists.txt || die
-
- if use python ; then
- sed -e 's#${REPLACE_ME}#'$(python_get_sitedir)'#' \
- -i CMakeLists.txt || die
- fi
-
- for lang in ${LANGS} ; do
- if ! use linguas_${lang} ; then
- sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die
- fi
- done
-}
-
-src_configure() {
- local myconf
-
- if use csoundac ; then
- myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex python ON OFF)"
- myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex lua ON OFF)"
- fi
-
- [[ $(get_libdir) == "lib64" ]] && myconf+=" -DUSE_LIB64=ON"
-
- local mycmakeargs=(
- $(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_use curl CURL)
- $(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 score SCORE_PARSER)
- $(cmake-utils_use_build static-libs STATIC_LIBRARY)
- $(cmake-utils_use_build stk STK_OPCODES)
- $(cmake-utils_use_build test TESTS)
- $(cmake-utils_use_build test STATIC_LIBRARY)
- $(cmake-utils_use_build tcl TCLCSOUND)
- $(cmake-utils_use_build threads MULTI_CORE)
- $(cmake-utils_use_build utils UTILITIES)
- -DNEED_PORTTIME=OFF
- -DBUILD_RELEASE=ON
- ${myconf}
- )
-
- cmake-utils_src_configure
-}
-
-src_test() {
- cmake-utils_src_test
-}
-
-src_install() {
- cmake-utils_src_install
- dodoc AUTHORS ChangeLog README.md Release_Notes/*
-
- # 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
-
- # rename extract to csound_extract (bug #247394)
- mv "${ED}"/usr/bin/{extract,csound_extract} || die
-
- use python && python_optimize
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- elog
- elog "The extract tool is now installed as csound_extract"
- elog "due to collisions with many other packages (bug #247394)."
- elog
- fi
-}
diff --git a/media-sound/csound/files/csound-6.05-underlinking.patch b/media-sound/csound/files/csound-6.05-underlinking.patch
deleted file mode 100644
index eac83f21419..00000000000
--- a/media-sound/csound/files/csound-6.05-underlinking.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-commit a4b1930b506274e328ee26cd6287965cb496062b
-Author: Steven Yi <stevenyi@gmail.com>
-Date: Mon Sep 28 18:21:22 2015 -0400
-
- modified make_utility and targets for csound-bin and mixer-bin to use add libm for linking when on Linux [fixes #526]
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 2b16079..18a6ad1 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -97,6 +97,10 @@ endfunction(make_executable)
- function(make_utility name srcs)
- make_executable(${name} "${srcs}" "${CSOUNDLIB}")
- add_dependencies(${name} ${CSOUNDLIB})
-+
-+ if(LINUX)
-+ target_link_libraries(${name} m)
-+ endif()
- endfunction()
-
-
-diff --git a/frontends/CMakeLists.txt b/frontends/CMakeLists.txt
-index d0e3a21..b31f37a 100644
---- a/frontends/CMakeLists.txt
-+++ b/frontends/CMakeLists.txt
-@@ -43,6 +43,9 @@ endfunction(make_plugin_frontend)
-
- # We need a different name to avoid clashes with float libcsound
- make_executable(csound-bin "${CS_MAIN_SRCS}" "${CSOUNDLIB}" csound)
-+if(LINUX)
-+ target_link_libraries(csound-bin m)
-+endif()
-
- message(STATUS "Building csLadspa")
-
-diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt
-index 25089cc..ebf0aa5 100644
---- a/util/CMakeLists.txt
-+++ b/util/CMakeLists.txt
-@@ -23,9 +23,11 @@ if(BUILD_UTILITIES)
- make_utility(hetro het_main.c)
- make_utility(lpanal lpc_main.c)
- make_utility(lpc_export lpcx_main.c)
-- target_link_libraries(lpc_export m)
- make_utility(lpc_import lpci_main.c)
-- make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer)
-+ if(LINUX)
-+ make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer)
-+ endif()
-+ target_link_libraries(mixer-bin m)
- make_utility(pvanal pvc_main.c)
- make_utility(pvlook pvl_main.c)
- make_utility(pv_export pvx_main.c)