summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-28 18:18:30 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-28 18:18:30 +0000
commit0647051b80592b22e9ebc698e427dd83cb24205b (patch)
tree6a869f3fa940917ecaa79fb159133f6937e51957
parentKeyworded on alpha, bug #280281 (diff)
downloadgentoo-2-0647051b80592b22e9ebc698e427dd83cb24205b.tar.gz
gentoo-2-0647051b80592b22e9ebc698e427dd83cb24205b.tar.bz2
gentoo-2-0647051b80592b22e9ebc698e427dd83cb24205b.zip
Version bump wrt #280649.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
-rw-r--r--media-sound/amsynth/ChangeLog8
-rw-r--r--media-sound/amsynth/amsynth-1.2.2.ebuild54
-rw-r--r--media-sound/amsynth/files/amsynth-1.2.2-asneeded.patch64
3 files changed, 125 insertions, 1 deletions
diff --git a/media-sound/amsynth/ChangeLog b/media-sound/amsynth/ChangeLog
index f57879655f93..89b8b7a4c784 100644
--- a/media-sound/amsynth/ChangeLog
+++ b/media-sound/amsynth/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/amsynth
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/amsynth/ChangeLog,v 1.32 2009/08/01 06:21:29 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/amsynth/ChangeLog,v 1.33 2009/08/28 18:18:30 ssuominen Exp $
+
+*amsynth-1.2.2 (28 Aug 2009)
+
+ 28 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> +amsynth-1.2.2.ebuild,
+ +files/amsynth-1.2.2-asneeded.patch:
+ Version bump wrt #280649.
01 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> amsynth-1.2.0.ebuild:
Remove built_with_use check for media-libs/alsa-lib[midi].
diff --git a/media-sound/amsynth/amsynth-1.2.2.ebuild b/media-sound/amsynth/amsynth-1.2.2.ebuild
new file mode 100644
index 000000000000..0178ad0e4f69
--- /dev/null
+++ b/media-sound/amsynth/amsynth-1.2.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/amsynth/amsynth-1.2.2.ebuild,v 1.1 2009/08/28 18:18:30 ssuominen Exp $
+
+EAPI=2
+MY_P=${P/ams/amS}
+inherit autotools eutils
+
+DESCRIPTION="Virtual analogue synthesizer."
+HOMEPAGE="http://amsynthe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/amsynthe/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="alsa debug jack oss sndfile"
+
+RDEPEND=">=dev-cpp/gtkmm-2.4
+ sndfile? ( >=media-libs/libsndfile-1 )
+ alsa? ( media-libs/alsa-lib
+ media-sound/alsa-utils )
+ jack? ( media-sound/jack-audio-connection-kit )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with oss) \
+ $(use_with alsa) \
+ $(use_with jack) \
+ $(use_with sndfile) \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS README
+}
+
+pkg_postinst() {
+ elog
+ elog "amSynth has been installed normally. If you would like to use"
+ elog "the virtual keyboard option, then do:"
+ elog "# emerge vkeybd"
+ elog "and make sure you emerged amSynth with alsa support (USE=alsa)"
+ elog
+}
diff --git a/media-sound/amsynth/files/amsynth-1.2.2-asneeded.patch b/media-sound/amsynth/files/amsynth-1.2.2-asneeded.patch
new file mode 100644
index 000000000000..8e6ba99e293d
--- /dev/null
+++ b/media-sound/amsynth/files/amsynth-1.2.2-asneeded.patch
@@ -0,0 +1,64 @@
+diff -ur amSynth-1.2.2.orig/configure.in amSynth-1.2.2/configure.in
+--- amSynth-1.2.2.orig/configure.in 2009-07-12 19:40:37.000000000 +0300
++++ amSynth-1.2.2/configure.in 2009-08-28 21:13:09.000000000 +0300
+@@ -5,7 +5,7 @@
+
+
+ addCXXFLAGS="-D_REENTRANT"
+-CXXFLAGS="-Wall"
++CXXFLAGS="$CXXFLAGS -Wall"
+
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+@@ -117,11 +117,6 @@
+ profiling=no
+ fi
+
+-if test $profiling = "no"; then
+- if test $debugging = "no"; then
+- CXXFLAGS="$CXXFLAGS -O3 -ffast-math -fno-exceptions -fomit-frame-pointer"
+- fi
+-fi
+
+
+ dnl
+@@ -153,17 +148,19 @@
+ fi
+ if test "$with_alsa" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -Dwith_alsa"
+- LDFLAGS="$LDFLAGS -lasound"
++ LIBS="$LIBS -lasound"
+ fi
+ if test "$with_jack" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -Dwith_jack"
+- LDFLAGS="$LDFLAGS -ljack"
++ LIBS="$LIBS -ljack"
+ fi
+ if test "$with_sndfile" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -Dwith_sndfile"
+- LDFLAGS="$LDFLAGS -lsndfile"
++ LIBS="$LIBS -lsndfile"
+ fi
+
++AC_SUBST(LIBS)
++
+ AC_OUTPUT([
+ Makefile
+ src/Makefile
+diff -ur amSynth-1.2.2.orig/src/Makefile.am amSynth-1.2.2/src/Makefile.am
+--- amSynth-1.2.2.orig/src/Makefile.am 2009-07-12 19:40:37.000000000 +0300
++++ amSynth-1.2.2/src/Makefile.am 2009-08-28 21:14:08.000000000 +0300
+@@ -16,12 +16,10 @@
+
+ SUBDIRS = drivers VoiceBoard GUI Effects
+
+-amSynth_LDADD = drivers/libdrivers.a VoiceBoard/libVoiceBoard.a GUI/libGUI.a Effects/libEffects.a
++amSynth_LDADD = drivers/libdrivers.a VoiceBoard/libVoiceBoard.a GUI/libGUI.a Effects/libEffects.a -lstdc++ -lm -lpthread $(DEPS_LIBS) $(LIBS)
+
+ amSynth_CFLAGS = $(CFLAGS) -DENABLE_BINRELOC
+ amSynth_CXXFLAGS = $(CXXFLAGS) -DENABLE_BINRELOC
+-amSynth_LIBS = -lstdc++ -lm -lpthread
+-amSynth_LDFLAGS = $(DEPS_LIBS)
+
+ install-exec-hook):
+ chown root $(DESTDIR)$(bindir)/amSynth;\