summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2011-09-15 18:17:23 +0000
committerAlexis Ballier <aballier@gentoo.org>2011-09-15 18:17:23 +0000
commit1c0205620fad693b0922bf61e0b6084dad036185 (patch)
tree31d5230fbcd81ac5871c9cd9f255220f44e34b59 /media-libs/stk
parentFix bug #382673 (diff)
downloadgentoo-2-1c0205620fad693b0922bf61e0b6084dad036185.tar.gz
gentoo-2-1c0205620fad693b0922bf61e0b6084dad036185.tar.bz2
gentoo-2-1c0205620fad693b0922bf61e0b6084dad036185.zip
version bump
(Portage version: 2.2.0_alpha58/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/stk')
-rw-r--r--media-libs/stk/ChangeLog10
-rw-r--r--media-libs/stk/files/stk-4.4.3/010_all_removeForcedFlags.patch13
-rw-r--r--media-libs/stk/files/stk-4.4.3/020_all_noExamplesOrDemo.patch29
-rw-r--r--media-libs/stk/files/stk-4.4.3/030_all_sharedlib.patch13
-rw-r--r--media-libs/stk/stk-4.4.3.ebuild63
5 files changed, 127 insertions, 1 deletions
diff --git a/media-libs/stk/ChangeLog b/media-libs/stk/ChangeLog
index 168a69e112c0..ed959fde4527 100644
--- a/media-libs/stk/ChangeLog
+++ b/media-libs/stk/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/stk
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/ChangeLog,v 1.7 2011/02/27 17:16:22 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/ChangeLog,v 1.8 2011/09/15 18:17:23 aballier Exp $
+
+*stk-4.4.3 (15 Sep 2011)
+
+ 15 Sep 2011; Alexis Ballier <aballier@gentoo.org> +stk-4.4.3.ebuild,
+ +files/stk-4.4.3/010_all_removeForcedFlags.patch,
+ +files/stk-4.4.3/020_all_noExamplesOrDemo.patch,
+ +files/stk-4.4.3/030_all_sharedlib.patch:
+ version bump
27 Feb 2011; Alexis Ballier <aballier@gentoo.org> -stk-4.3.1.ebuild,
-files/stk-4.3.1-cflags-lib.patch, -files/stk-4.3.1-fpic.patch,
diff --git a/media-libs/stk/files/stk-4.4.3/010_all_removeForcedFlags.patch b/media-libs/stk/files/stk-4.4.3/010_all_removeForcedFlags.patch
new file mode 100644
index 000000000000..3fcc28fb763c
--- /dev/null
+++ b/media-libs/stk/files/stk-4.4.3/010_all_removeForcedFlags.patch
@@ -0,0 +1,13 @@
+Index: stk-4.4.3/configure.ac
+===================================================================
+--- stk-4.4.3.orig/configure.ac
++++ stk-4.4.3/configure.ac
+@@ -65,7 +65,7 @@ if test "$debug" = "yes"; then
+ else
+ AC_SUBST( debug, [no] )
+ AC_SUBST( cppflag, [] )
+- AC_SUBST( cxxflag, [-O3] )
++ AC_SUBST( cxxflag, [] )
+ AC_SUBST( object_path, [Release] )
+ fi
+ AC_MSG_RESULT($debug)
diff --git a/media-libs/stk/files/stk-4.4.3/020_all_noExamplesOrDemo.patch b/media-libs/stk/files/stk-4.4.3/020_all_noExamplesOrDemo.patch
new file mode 100644
index 000000000000..ed522450fd2f
--- /dev/null
+++ b/media-libs/stk/files/stk-4.4.3/020_all_noExamplesOrDemo.patch
@@ -0,0 +1,29 @@
+Index: stk-4.4.3/Makefile.in
+===================================================================
+--- stk-4.4.3.orig/Makefile.in
++++ stk-4.4.3/Makefile.in
+@@ -4,24 +4,12 @@ RM = /bin/rm
+
+ all :
+ cd src && $(MAKE)
+- cd projects/demo && $(MAKE) libdemo
+- cd projects/effects && $(MAKE) libeffects
+- cd projects/ragamatic && $(MAKE) libragamat
+- cd projects/examples && $(MAKE) -f libMakefile
+
+ clean :
+ $(RM) -f *~
+ cd src && $(MAKE) clean
+- cd projects/demo && $(MAKE) clean
+- cd projects/effects && $(MAKE) clean
+- cd projects/ragamatic && $(MAKE) clean
+- cd projects/examples && $(MAKE) clean
+
+ distclean: clean
+ $(RM) -rf config.log config.status autom4te.cache Makefile
+ cd src && $(MAKE) distclean
+- cd projects/demo && $(MAKE) distclean
+- cd projects/effects && $(MAKE) distclean
+- cd projects/ragamatic && $(MAKE) distclean
+- cd projects/examples && $(MAKE) distclean
+
diff --git a/media-libs/stk/files/stk-4.4.3/030_all_sharedlib.patch b/media-libs/stk/files/stk-4.4.3/030_all_sharedlib.patch
new file mode 100644
index 000000000000..726847bc8a10
--- /dev/null
+++ b/media-libs/stk/files/stk-4.4.3/030_all_sharedlib.patch
@@ -0,0 +1,13 @@
+Index: stk-4.4.3/src/Makefile.in
+===================================================================
+--- stk-4.4.3.orig/src/Makefile.in
++++ stk-4.4.3/src/Makefile.in
+@@ -64,7 +64,7 @@ DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\
+ %.o : ../src/include/%.cpp
+ $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
+
+-all : $(STATICLIB)
++all : $(STATICLIB) $(SHAREDLIB)
+
+ $(STATICLIB) : $(OBJECTS)
+ $(RM) -f $(STATICLIB)
diff --git a/media-libs/stk/stk-4.4.3.ebuild b/media-libs/stk/stk-4.4.3.ebuild
new file mode 100644
index 000000000000..c40dd20e2f15
--- /dev/null
+++ b/media-libs/stk/stk-4.4.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/stk-4.4.3.ebuild,v 1.1 2011/09/15 18:17:23 aballier Exp $
+
+EAPI="2"
+inherit eutils autotools
+
+DESCRIPTION="Synthesis ToolKit in C++"
+HOMEPAGE="http://ccrma.stanford.edu/software/stk/"
+SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug doc jack oss"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ dev-lang/perl"
+
+src_prepare() {
+ EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${PF}"
+ eautoreconf
+}
+
+src_configure() {
+ #breaks with --disable-foo...uses as --enable-foo
+ local myconf
+ if use debug; then
+ myconf="${myconf} --enable-debug"
+ fi
+ if use oss; then
+ myconf="${myconf} --with-oss"
+ fi
+ if use alsa; then
+ myconf="${myconf} --with-alsa"
+ fi
+ if use jack; then
+ myconf="${myconf} --with-jack"
+ fi
+
+ econf ${myconf} \
+ RAWWAVE_PATH=/usr/share/stk/rawwaves/
+}
+
+src_install() {
+ dodoc README || die "Failed to install README"
+ # install the lib
+ dolib src/libstk.* || die "Failed to install libstk.*"
+ # install headers
+ insinto /usr/include/stk || die "Failed to create header directory."
+ doins include/*.h include/*.msg include/*.tbl \
+ || die "Failed to install msg, tbl and h files."
+ # install rawwaves
+ insinto /usr/share/stk/rawwaves || die "Failed to create rawwave directory."
+ doins rawwaves/*.raw || die "Failed to install rawwave files."
+ # install docs
+ if use doc; then
+ dohtml -r doc/html/* || die "Failed to install docs."
+ fi
+}