From 139460a7a8b085588b699c488fd19b166db18a74 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 10 Jul 2011 23:13:07 +0000 Subject: Sun Jul 10 23:13:07 UTC 2011 --- extra/ardour/PKGBUILD | 29 ++++++++++++++++++++++------- extra/ardour/ardour.changelog | 14 +++++++++++++- extra/ardour/gcc46.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 extra/ardour/gcc46.patch (limited to 'extra/ardour') diff --git a/extra/ardour/PKGBUILD b/extra/ardour/PKGBUILD index cee3fc185..89fa98ad1 100644 --- a/extra/ardour/PKGBUILD +++ b/extra/ardour/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 110738 2011-02-21 22:15:44Z schiv $ +# $Id: PKGBUILD 130903 2011-07-08 19:43:04Z schiv $ # Maintainer: tobias # Maintainer: Ray Rashif # Contributor: Giovanni Scafora @@ -9,29 +9,41 @@ pkgname=ardour pkgver=2.8.11 -pkgrel=3 +pkgrel=4 pkgdesc="A multichannel hard disk recorder and digital audio workstation" arch=('i686' 'x86_64') url="http://ardour.org" license=('GPL') -depends=('liblrdf>=0.4.0-7' 'liblo' 'aubio' 'libusb-compat' - 'slv2>=0.6.6-3' 'rubberband' 'libgnomecanvas') +depends=('liblrdf' 'liblo' 'aubio' 'libusb-compat' + 'libgnomecanvasmm' 'soundtouch') + # -rubberband -libgnomecanvas(+libgnomecanvasmm) + # +soundtouch -slv2 makedepends=('scons' 'boost' 'pkg-config') changelog=${pkgname}.changelog source=(ftp://ftp.archlinux.org/other/ardour/${pkgname}-${pkgver}.tar.bz2 - ${pkgname}.desktop) + ${pkgname}.desktop + gcc46.patch) md5sums=('f451a8d0abc133a1700c3932e07a5612' - '8aeaf433ebf781733db48e5a16b0c4da') + '8aeaf433ebf781733db48e5a16b0c4da' + 'd709add59911d099c813162448e4db99') build() { cd "${srcdir}/${pkgname}-${pkgver}" + + # gcc 4.6 compatibility + patch -Np1 -i "$srcdir/gcc46.patch" + sed -i '/-O3/d' SConstruct + # use syslibs until internal sigc++ issue w/ latest gcc resolves + # TODO: report upstream scons ${MAKEFLAGS} ARCH="${CFLAGS}" \ PREFIX="/usr" \ DIST_LIBDIR="lib" \ FREEDESKTOP=0 \ FREESOUND=1 \ + SYSLIBS=1 \ + LV2=0 \ DESTDIR="${pkgdir}" } @@ -41,10 +53,13 @@ package() { scons PREFIX="/usr" \ FREEDESKTOP=0 \ FREESOUND=1 \ + SYSLIBS=1 \ + LV2=0 \ DESTDIR="${pkgdir}" install # install some freedesktop.org compatibility - install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -Dm644 "${srcdir}/${pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" } # vim:set ts=2 sw=2 et: diff --git a/extra/ardour/ardour.changelog b/extra/ardour/ardour.changelog index ee9cf00bf..69d289e8f 100644 --- a/extra/ardour/ardour.changelog +++ b/extra/ardour/ardour.changelog @@ -1,7 +1,18 @@ +9 Jul 2011 (GMT+8) Ray Rashif + + * 2.8.11-4: + Fix build failures and runtime segfaults + - gcc 4.6 patch + - enable SYSLIBS due to ardour sigc++ issues + - remove slv2 dep due to ardour rasqal incompatibility [1][2] + + [1] https://bugs.archlinux.org/task/25060 + [2] https://ardour.org/node/4301 + 22 Feb 2011 (GMT+8) Ray Rashif * 2.8.11-2 : - raptor rebuild + raptor rebuild 9 Aug 2010 (GMT+8) Ray Rashif @@ -21,6 +32,7 @@ * ardour.changelog : Added this changelog. + Only important changes will be logged. * ardour.install : Removed install scriptlet; old and deprecated information. diff --git a/extra/ardour/gcc46.patch b/extra/ardour/gcc46.patch new file mode 100644 index 000000000..d01610d1d --- /dev/null +++ b/extra/ardour/gcc46.patch @@ -0,0 +1,42 @@ +diff -rupN ardour-2.8.11.old/libs/ardour/enums.cc ardour-2.8.11/libs/ardour/enums.cc +--- ardour-2.8.11.old/libs/ardour/enums.cc 2010-04-20 13:28:37.000000000 -0400 ++++ ardour-2.8.11/libs/ardour/enums.cc 2011-02-13 11:23:02.000000000 -0500 +@@ -31,7 +31,8 @@ + + using namespace std; + using namespace PBD; +-using namespace ARDOUR; ++namespace ARDOUR ++{ + + void + setup_enum_writer () +@@ -362,3 +363,5 @@ setup_enum_writer () + REGISTER (_Track_FreezeState); + + } ++ ++} +diff -rupN ardour-2.8.11.old/libs/rubberband/rubberband/RubberBandStretcher.h ardour-2.8.11/libs/rubberband/rubberband/RubberBandStretcher.h +--- ardour-2.8.11.old/libs/rubberband/rubberband/RubberBandStretcher.h 2009-03-26 10:25:40.000000000 -0400 ++++ ardour-2.8.11/libs/rubberband/rubberband/RubberBandStretcher.h 2011-02-09 21:41:04.000000000 -0500 +@@ -19,6 +19,7 @@ + #define RUBBERBAND_API_MAJOR_VERSION 2 + #define RUBBERBAND_API_MINOR_VERSION 0 + ++#include + #include + + /** +diff -rupN ardour-2.8.11.old/libs/surfaces/wiimote/wiimote.cc ardour-2.8.11/libs/surfaces/wiimote/wiimote.cc +--- ardour-2.8.11.old/libs/surfaces/wiimote/wiimote.cc 2009-02-24 07:38:19.000000000 -0500 ++++ ardour-2.8.11/libs/surfaces/wiimote/wiimote.cc 2011-02-13 11:23:24.000000000 -0500 +@@ -177,7 +177,7 @@ wiimote_discovery: + std::cerr << "Wiimote: discovering, press 1+2" << std::endl; + + while (!wiimote_handle && !main_thread_quit) { +- bdaddr = *BDADDR_ANY; ++ bdaddr = (bdaddr_t) {{0, 0, 0, 0, 0, 0}}; + callback_thread_registered_for_ardour = false; + wiimote_handle = cwiid_open(&bdaddr, 0); + -- cgit v1.2.3-54-g00ecf