summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-11-24 12:41:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-11-24 12:41:13 +0000
commitbc63386ea04f28191331210a05f8e935baea7dbb (patch)
tree29106a438a1d36a257007de3c59993aa2c53acb9 /media-sound/timidity++
parentStable on x86 wrt bug #200129; remove old version (diff)
downloadhistorical-bc63386ea04f28191331210a05f8e935baea7dbb.tar.gz
historical-bc63386ea04f28191331210a05f8e935baea7dbb.tar.bz2
historical-bc63386ea04f28191331210a05f8e935baea7dbb.zip
Cleanup old versions, this is also the end of timidity-update in favour of just eselect timidity.
Package-Manager: portage-2.1.4_rc3
Diffstat (limited to 'media-sound/timidity++')
-rw-r--r--media-sound/timidity++/ChangeLog8
-rw-r--r--media-sound/timidity++/files/digest-timidity++-2.13.2-r26
-rw-r--r--media-sound/timidity++/files/digest-timidity++-2.13.2-r36
-rw-r--r--media-sound/timidity++/files/digest-timidity++-2.13.2-r46
-rw-r--r--media-sound/timidity++/files/timidity-update117
-rw-r--r--media-sound/timidity++/timidity++-2.13.2-r2.ebuild152
-rw-r--r--media-sound/timidity++/timidity++-2.13.2-r3.ebuild160
-rw-r--r--media-sound/timidity++/timidity++-2.13.2-r4.ebuild161
8 files changed, 7 insertions, 609 deletions
diff --git a/media-sound/timidity++/ChangeLog b/media-sound/timidity++/ChangeLog
index 5cf9c9b8e47b..f0b5798720a8 100644
--- a/media-sound/timidity++/ChangeLog
+++ b/media-sound/timidity++/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/timidity++
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.94 2007/11/01 18:51:21 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.95 2007/11/24 12:41:13 flameeyes Exp $
+
+ 24 Nov 2007; Diego Pettenò <flameeyes@gentoo.org> -files/timidity-update,
+ -timidity++-2.13.2-r2.ebuild, -timidity++-2.13.2-r3.ebuild,
+ -timidity++-2.13.2-r4.ebuild:
+ Cleanup old versions, this is also the end of timidity-update in favour of
+ just eselect timidity.
01 Nov 2007; Raúl Porcel <armin76@gentoo.org>
timidity++-2.13.2-r5.ebuild:
diff --git a/media-sound/timidity++/files/digest-timidity++-2.13.2-r2 b/media-sound/timidity++/files/digest-timidity++-2.13.2-r2
deleted file mode 100644
index 7a95c8bb2fb6..000000000000
--- a/media-sound/timidity++/files/digest-timidity++-2.13.2-r2
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 a82ceeb2245e22f4de2b41da21eaee32 TiMidity++-2.13.2.tar.bz2 1581230
-RMD160 0156221846a88abef9312700a050972d85084fd8 TiMidity++-2.13.2.tar.bz2 1581230
-SHA256 0a8524b789b57eaf944c3d9bce32c21a4e893016b22a02a24cd0a4c6afee7260 TiMidity++-2.13.2.tar.bz2 1581230
-MD5 31bdaea612f18e2c3d45a8a73ab44c81 timidity++-2.13.2-exiterror.patch 21406
-RMD160 6b73552e18580422ca4471f12142440a4f3760a9 timidity++-2.13.2-exiterror.patch 21406
-SHA256 ccf1a3678beff5cd143bec07b64ca35620b8eac98b093898c072459051752b77 timidity++-2.13.2-exiterror.patch 21406
diff --git a/media-sound/timidity++/files/digest-timidity++-2.13.2-r3 b/media-sound/timidity++/files/digest-timidity++-2.13.2-r3
deleted file mode 100644
index 7a95c8bb2fb6..000000000000
--- a/media-sound/timidity++/files/digest-timidity++-2.13.2-r3
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 a82ceeb2245e22f4de2b41da21eaee32 TiMidity++-2.13.2.tar.bz2 1581230
-RMD160 0156221846a88abef9312700a050972d85084fd8 TiMidity++-2.13.2.tar.bz2 1581230
-SHA256 0a8524b789b57eaf944c3d9bce32c21a4e893016b22a02a24cd0a4c6afee7260 TiMidity++-2.13.2.tar.bz2 1581230
-MD5 31bdaea612f18e2c3d45a8a73ab44c81 timidity++-2.13.2-exiterror.patch 21406
-RMD160 6b73552e18580422ca4471f12142440a4f3760a9 timidity++-2.13.2-exiterror.patch 21406
-SHA256 ccf1a3678beff5cd143bec07b64ca35620b8eac98b093898c072459051752b77 timidity++-2.13.2-exiterror.patch 21406
diff --git a/media-sound/timidity++/files/digest-timidity++-2.13.2-r4 b/media-sound/timidity++/files/digest-timidity++-2.13.2-r4
deleted file mode 100644
index 7a95c8bb2fb6..000000000000
--- a/media-sound/timidity++/files/digest-timidity++-2.13.2-r4
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 a82ceeb2245e22f4de2b41da21eaee32 TiMidity++-2.13.2.tar.bz2 1581230
-RMD160 0156221846a88abef9312700a050972d85084fd8 TiMidity++-2.13.2.tar.bz2 1581230
-SHA256 0a8524b789b57eaf944c3d9bce32c21a4e893016b22a02a24cd0a4c6afee7260 TiMidity++-2.13.2.tar.bz2 1581230
-MD5 31bdaea612f18e2c3d45a8a73ab44c81 timidity++-2.13.2-exiterror.patch 21406
-RMD160 6b73552e18580422ca4471f12142440a4f3760a9 timidity++-2.13.2-exiterror.patch 21406
-SHA256 ccf1a3678beff5cd143bec07b64ca35620b8eac98b093898c072459051752b77 timidity++-2.13.2-exiterror.patch 21406
diff --git a/media-sound/timidity++/files/timidity-update b/media-sound/timidity++/files/timidity-update
deleted file mode 100644
index 20b0f29185c5..000000000000
--- a/media-sound/timidity++/files/timidity-update
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/sh
-
-VERSION_MJ="1"
-VERSION_MN="0"
-VERSION_RV="0000"
-VERSION_AP=""
-VERSION="${VERSION_MJ}.${VERSION_MN}${VERSION_AP}"
-
-PATCHDIR="/usr/share/timidity"
-
-# Below is the user's local patchset
-HOME_TARGET="$HOME/.timidity/current"
-TARGET="${HOME_TARGET}"
-
-show_help() {
- echo "$0 ${VERSION}"
- echo "Usage: $0 [-g] -s PATCHSET"
- echo " or: $0 -r"
- echo " or: $0 [OPTION]"
- echo "Set the current timidity patch set to PATCHSET."
- echo
- echo "Mandatory arguments to long options are mandatory for short options too."
- echo " -g Change the global patch set instead of the"
- echo " user's patch set"
- echo " -r Change current user's patch set to current"
- echo " system patch set"
- echo " -s [PATCHSET] Change to patch set PATCHSET"
- echo " --help display this help and exit"
-}
-
-show_error() {
-
- echo "$0: bad or missing argument"
- echo "Try '$0 --help' for more information."
-}
-
-set_patch() {
- TARGET=$1
- PATCHSET=$2
- # If something borken, no go
- if [ ! -L ${TARGET} -a -e ${TARGET} ] || [ ! -d ${PATCHDIR}/${PATCHSET} ]; then
- if [ ! -L ${TARGET} -a -e ${TARGET} ]; then
- echo " Error: ${TARGET} exists and is not a symlink"
- return -1
- fi
- if [ ! -d ${PATCHDIR}/${PATCHSET} ]; then
- echo " Error: patch set ${PATCHSET} does not exist"
- echo " Look in ${PATCHDIR}/ for patch sets"
- return -1
- fi
- echo " Error: Undefined error."
- return -1
- fi
- echo -n " * Switching to ${PATCHSET} Timidity patch set..."
- rm -f ${TARGET} 2>/dev/null
- ln -s ${PATCHDIR}/${PATCHSET} ${TARGET} 2>/dev/null
- echo " [ OK ]"
- return 0
-}
-
-restore_patches() {
- TARGET=$1
- echo -n " * Setting up local patch set to system global..."
- rm -f ${TARGET} 2>/dev/null
- ln -s ${PATCHDIR}/current ${TARGET}
- echo " [ OK ]"
-}
-
-##############
-# Processing #
-#############
-
-# Make sure home directory is there
-if [ ! -e ${HOME}/.timidity ]; then
- mkdir -p ${HOME}/.timidity
- restore_patches $TARGET
-fi
-
-
-################
-# No arguments #
-###############
-
-if [ -z "$1" ]; then
- show_error
- exit 1
-fi
-
-#########################
-# Actual processing loop#
-########################
-while [ -n "$1" ]; do
- case "$1" in
- -g)
- TARGET="/usr/share/timidity/current"
- ;;
- -r)
- restore_patches ${HOME_TARGET}
- exit 0
- ;;
- -s)
- PATCHSET="$2"
- shift
- ;;
- --help)
- show_help
- exit 0
- ;;
- *)
- show_error
- exit 1
- ;;
- esac
- shift
-done
-
-set_patch $TARGET $PATCHSET
diff --git a/media-sound/timidity++/timidity++-2.13.2-r2.ebuild b/media-sound/timidity++/timidity++-2.13.2-r2.ebuild
deleted file mode 100644
index 94ee879d60bf..000000000000
--- a/media-sound/timidity++/timidity++-2.13.2-r2.ebuild
+++ /dev/null
@@ -1,152 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.2-r2.ebuild,v 1.22 2007/08/19 10:21:13 drac Exp $
-
-inherit eutils
-
-MY_PV=${PV/_/-}
-MY_P=TiMidity++-${MY_PV}
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
-HOMEPAGE="http://timidity.sourceforge.net/"
-SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="oss nas esd motif X gtk gtk vorbis tk slang alsa arts jack portaudio emacs ao speex flac ncurses"
-
-RDEPEND="ncurses? ( >=sys-libs/ncurses-5.0 )
- gtk? ( >=x11-libs/gtk+-2.0 )
- tk? ( >=dev-lang/tk-8.1 )
- motif? ( virtual/motif )
- esd? ( >=media-sound/esound-0.2.22 )
- nas? ( >=media-libs/nas-1.4 )
- alsa? ( media-libs/alsa-lib )
- slang? ( =sys-libs/slang-1.4* )
- arts? ( kde-base/arts )
- jack? ( media-sound/jack-audio-connection-kit )
- portaudio? ( !ppc? ( media-libs/portaudio ) )
- vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
- flac? ( ~media-libs/flac-1.1.2 )
- speex? ( >=media-libs/speex-1.1.5 )
- ao? ( >=media-libs/libao-0.8.5 )"
-
-DEPEND="${RDEPEND}
- sys-devel/autoconf"
-
-RDEPEND="${RDEPEND}
- emacs? ( virtual/emacs )"
-
-PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches )"
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd ${S}
- epatch "${DISTDIR}/${P}-exiterror.patch"
- epatch "${FILESDIR}/${P}-gtk26.patch"
- epatch "${FILESDIR}/${P}-gcc4.patch"
-
- # fix header location of speex
- sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c
-}
-
-src_compile() {
- local myconf
- local audios
-
- use flac && audios="${audios},flac"
- use speex && audios="${audios},speex"
- use vorbis && audios="${audios},vorbis"
-
- use oss && audios="${audios},oss"
- use esd && audios="${audios},esd"
- use arts && audios="${audios},arts"
- use jack && audios="${audios},jack"
- use portaudio && use !ppc && audios="${audios},portaudio"
- use ao && audios="${audios},ao"
-
- if use nas; then
- audios="${audios},nas"
- myconf="${myconf} --with-nas-library=/usr/$(get_libdir)/libaudio.so"
- fi
-
- if use alsa; then
- audios="${audios},alsa"
- myconf="${myconf} --with-default-output=alsa --enable-alsaseq"
- fi
-
- econf \
- --localstatedir=/var/state/timidity++ \
- --with-elf \
- --enable-audio=${audios} \
- --enable-server \
- --enable-network \
- --enable-dynamic \
- --enable-vt100 \
- --enable-spline=cubic \
- $(use_enable emacs) \
- $(use_enable slang) \
- $(use_enable ncurses) \
- $(use_with X x) \
- $(use_enable X spectrogram) \
- $(use_enable X wrd) \
- $(use_enable X xskin) \
- $(use_enable X xaw) \
- $(use_enable gtk) \
- $(use_enable motif) \
- $(use_enable tk tcltk) \
- ${myconf} || die
-
- emake || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
-
- dodoc AUTHORS ChangeLog*
- dodoc NEWS README* "${FILESDIR}/timidity.cfg"
-
- # these are only for the ALSA sequencer mode
- if use alsa; then
- newconfd "${FILESDIR}/conf.d.timidity" timidity
- newinitd "${FILESDIR}/init.d.timidity" timidity
- fi
-
- insinto /etc
- newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg
-
- dodir /usr/share/timidity
- dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
-
- newbin "${FILESDIR}/timidity-update" timidity-update
-
- if use emacs ; then
- dosed 's:/usr/local/bin/timidity:/usr/bin/timidity:g' /usr/share/emacs/site-lisp/timidity.el
- else
- rm "${D}/timidity.el"
- fi
-}
-
-pkg_postinst() {
- elog
- elog "A timidity config file has been installed in /etc/timidity.cfg."
- elog
- elog "Do not edit this file as it will interfere with the timidity-update tool."
- elog "You will need to emerge timidity-eawpatches or timidity-shompatches."
- elog
- elog "The tool 'timidity-update' can be used to switch between installed patchsets."
- elog
-
- if use alsa; then
- elog "An init script for the alsa timidity sequencer has been installed."
- elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
- elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
- fi
-
- if use sparc; then
- ewarn "sparc support is experimental. oss, alsa, esd, and portaudio do not work."
- ewarn "-Ow (save to wave file) does..."
- fi
-}
diff --git a/media-sound/timidity++/timidity++-2.13.2-r3.ebuild b/media-sound/timidity++/timidity++-2.13.2-r3.ebuild
deleted file mode 100644
index 5b0ddeab7962..000000000000
--- a/media-sound/timidity++/timidity++-2.13.2-r3.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.2-r3.ebuild,v 1.17 2007/02/24 15:22:18 jer Exp $
-
-inherit eutils
-
-MY_PV=${PV/_/-}
-MY_P=TiMidity++-${MY_PV}
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
-HOMEPAGE="http://timidity.sourceforge.net/"
-SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="oss nas esd motif X gtk gtk vorbis tk slang alsa arts jack portaudio emacs ao speex flac ncurses"
-
-DEPEND="ncurses? ( >=sys-libs/ncurses-5.0 )
- gtk? ( >=x11-libs/gtk+-2.0 )
- tk? ( >=dev-lang/tk-8.1 )
- motif? ( virtual/motif )
- esd? ( >=media-sound/esound-0.2.22 )
- nas? ( >=media-libs/nas-1.4 )
- alsa? ( media-libs/alsa-lib )
- slang? ( =sys-libs/slang-1.4* )
- arts? ( kde-base/arts )
- jack? ( media-sound/jack-audio-connection-kit )
- portaudio? ( media-libs/portaudio )
- vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
- flac? ( ~media-libs/flac-1.1.2 )
- speex? ( >=media-libs/speex-1.1.5 )
- ao? ( >=media-libs/libao-0.8.5 )"
-
-RDEPEND="${RDEPEND}
- app-admin/eselect-timidity
- emacs? ( virtual/emacs )"
-
-PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )"
-
-pkg_setup() {
- if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
- eerror ""
- eerror "To be able to build TiMidity++ with ALSA support you need"
- eerror "to have built media-libs/alsa-lib with midi USE flag."
- die "Missing midi USE flag on media-libs/alsa-lib"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${DISTDIR}/${P}-exiterror.patch"
- epatch "${FILESDIR}/${P}-gtk26.patch"
- epatch "${FILESDIR}/${P}-gcc4.patch"
- epatch "${FILESDIR}/${P}-flac.patch"
-
- # fix header location of speex
- sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c
-}
-
-src_compile() {
- local myconf
- local audios
-
- use flac && audios="${audios},flac"
- use speex && audios="${audios},speex"
- use vorbis && audios="${audios},vorbis"
-
- use oss && audios="${audios},oss"
- use esd && audios="${audios},esd"
- use arts && audios="${audios},arts"
- use jack && audios="${audios},jack"
- use portaudio && use !ppc && audios="${audios},portaudio"
- use ao && audios="${audios},ao"
-
- if use nas; then
- audios="${audios},nas"
- myconf="${myconf} --with-nas-library=/usr/$(get_libdir)/libaudio.so --with-x"
- use X || ewarn "Basic X11 support will be enabled because required by nas."
- fi
-
- if use alsa; then
- audios="${audios},alsa"
- myconf="${myconf} --with-default-output=alsa --enable-alsaseq"
- fi
-
- # We disable motif by default and then only enable it if it's requested.
- if use motif; then
- myconf="${myconf} --enable-motif --with-x"
- use X || ewarn "Basic X11 support will be enabled because required by motif."
- fi
-
- econf \
- --localstatedir=/var/state/timidity++ \
- --with-elf \
- --enable-audio=${audios} \
- --enable-server \
- --enable-network \
- --enable-dynamic \
- --enable-vt100 \
- --enable-spline=cubic \
- $(use_enable emacs) \
- $(use_enable slang) \
- $(use_enable ncurses) \
- $(use_with X x) \
- $(use_enable X spectrogram) \
- $(use_enable X wrd) \
- $(use_enable X xskin) \
- $(use_enable X xaw) \
- $(use_enable gtk) \
- $(use_enable tk tcltk) \
- --disable-motif \
- ${myconf} || die
-
- emake || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
-
- dodoc AUTHORS ChangeLog*
- dodoc NEWS README* "${FILESDIR}/timidity.cfg"
-
- # these are only for the ALSA sequencer mode
- if use alsa; then
- newconfd "${FILESDIR}/conf.d.timidity" timidity
- newinitd "${FILESDIR}/init.d.timidity" timidity
- fi
-
- insinto /etc
- newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg
-
- dodir /usr/share/timidity
- dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
-
- if use emacs ; then
- dosed 's:/usr/local/bin/timidity:/usr/bin/timidity:g' /usr/share/emacs/site-lisp/timidity.el
- else
- rm "${D}/timidity.el"
- fi
-}
-
-pkg_postinst() {
- elog "A timidity config file has been installed in /etc/timidity.cfg."
- elog "Do not edit this file as it will interfere with the eselect timidity tool."
- elog "The tool 'eselect timidity' can be used to switch between installed patchsets."
-
- if use alsa; then
- elog "An init script for the alsa timidity sequencer has been installed."
- elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
- elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
- fi
-
- if use sparc; then
- ewarn "sparc support is experimental. oss, alsa, esd, and portaudio do not work."
- ewarn "-Ow (save to wave file) does..."
- fi
-}
diff --git a/media-sound/timidity++/timidity++-2.13.2-r4.ebuild b/media-sound/timidity++/timidity++-2.13.2-r4.ebuild
deleted file mode 100644
index 6cf580251a49..000000000000
--- a/media-sound/timidity++/timidity++-2.13.2-r4.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.2-r4.ebuild,v 1.1 2007/03/25 21:47:48 aballier Exp $
-
-inherit eutils
-
-MY_PV=${PV/_/-}
-MY_P=TiMidity++-${MY_PV}
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
-HOMEPAGE="http://timidity.sourceforge.net/"
-SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="oss nas esd motif X gtk gtk vorbis tk slang alsa arts jack portaudio emacs ao speex flac ncurses"
-
-DEPEND="ncurses? ( >=sys-libs/ncurses-5.0 )
- gtk? ( >=x11-libs/gtk+-2.0 )
- tk? ( >=dev-lang/tk-8.1 )
- motif? ( virtual/motif )
- esd? ( >=media-sound/esound-0.2.22 )
- nas? ( >=media-libs/nas-1.4 )
- alsa? ( media-libs/alsa-lib )
- slang? ( =sys-libs/slang-1.4* )
- arts? ( kde-base/arts )
- jack? ( media-sound/jack-audio-connection-kit )
- portaudio? ( media-libs/portaudio )
- vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
- flac? ( >=media-libs/flac-1.1.2 )
- speex? ( >=media-libs/speex-1.1.5 )
- ao? ( >=media-libs/libao-0.8.5 )"
-
-RDEPEND="${RDEPEND}
- app-admin/eselect-timidity
- emacs? ( virtual/emacs )"
-
-PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )"
-
-pkg_setup() {
- if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
- eerror ""
- eerror "To be able to build TiMidity++ with ALSA support you need"
- eerror "to have built media-libs/alsa-lib with midi USE flag."
- die "Missing midi USE flag on media-libs/alsa-lib"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${DISTDIR}/${P}-exiterror.patch"
- epatch "${FILESDIR}/${P}-gtk26.patch"
- epatch "${FILESDIR}/${P}-gcc4.patch"
- epatch "${FILESDIR}/${P}-flac.patch"
- epatch "${FILESDIR}/${P}-flac113.patch"
-
- # fix header location of speex
- sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c
-}
-
-src_compile() {
- local myconf
- local audios
-
- use flac && audios="${audios},flac"
- use speex && audios="${audios},speex"
- use vorbis && audios="${audios},vorbis"
-
- use oss && audios="${audios},oss"
- use esd && audios="${audios},esd"
- use arts && audios="${audios},arts"
- use jack && audios="${audios},jack"
- use portaudio && use !ppc && audios="${audios},portaudio"
- use ao && audios="${audios},ao"
-
- if use nas; then
- audios="${audios},nas"
- myconf="${myconf} --with-nas-library=/usr/$(get_libdir)/libaudio.so --with-x"
- use X || ewarn "Basic X11 support will be enabled because required by nas."
- fi
-
- if use alsa; then
- audios="${audios},alsa"
- myconf="${myconf} --with-default-output=alsa --enable-alsaseq"
- fi
-
- # We disable motif by default and then only enable it if it's requested.
- if use motif; then
- myconf="${myconf} --enable-motif --with-x"
- use X || ewarn "Basic X11 support will be enabled because required by motif."
- fi
-
- econf \
- --localstatedir=/var/state/timidity++ \
- --with-elf \
- --enable-audio=${audios} \
- --enable-server \
- --enable-network \
- --enable-dynamic \
- --enable-vt100 \
- --enable-spline=cubic \
- $(use_enable emacs) \
- $(use_enable slang) \
- $(use_enable ncurses) \
- $(use_with X x) \
- $(use_enable X spectrogram) \
- $(use_enable X wrd) \
- $(use_enable X xskin) \
- $(use_enable X xaw) \
- $(use_enable gtk) \
- $(use_enable tk tcltk) \
- --disable-motif \
- ${myconf} || die
-
- emake || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
-
- dodoc AUTHORS ChangeLog*
- dodoc NEWS README* "${FILESDIR}/timidity.cfg"
-
- # these are only for the ALSA sequencer mode
- if use alsa; then
- newconfd "${FILESDIR}/conf.d.timidity" timidity
- newinitd "${FILESDIR}/init.d.timidity" timidity
- fi
-
- insinto /etc
- newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg
-
- dodir /usr/share/timidity
- dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
-
- if use emacs ; then
- dosed 's:/usr/local/bin/timidity:/usr/bin/timidity:g' /usr/share/emacs/site-lisp/timidity.el
- else
- rm "${D}/timidity.el"
- fi
-}
-
-pkg_postinst() {
- elog "A timidity config file has been installed in /etc/timidity.cfg."
- elog "Do not edit this file as it will interfere with the eselect timidity tool."
- elog "The tool 'eselect timidity' can be used to switch between installed patchsets."
-
- if use alsa; then
- elog "An init script for the alsa timidity sequencer has been installed."
- elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
- elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
- fi
-
- if use sparc; then
- ewarn "sparc support is experimental. oss, alsa, esd, and portaudio do not work."
- ewarn "-Ow (save to wave file) does..."
- fi
-}