summaryrefslogtreecommitdiff
path: root/extra/ardour/PKGBUILD
blob: 3f20433d9f3f0faf96beea78e1a36d197aa7286e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# $Id: PKGBUILD 165179 2012-08-12 12:56:20Z schiv $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

# ardour, liblrdf and raptor are heavily dependent on each other. Updating of
# one package mostly will require an update of all the other packages. I vote
# for fixed dependencies speaking in terms of versions -- tobias

# SYSLIBS enabled, support still valid; see ardour 2.8.13 rel notes

pkgname=ardour
pkgver=2.8.14
pkgrel=1
pkgdesc="A multichannel hard disk recorder and digital audio workstation"
arch=('i686' 'x86_64' 'mips64el')
url="http://ardour.org/"
license=('GPL')
depends=('liblrdf' 'libusb-compat' 'liblo' 'soundtouch'
         'aubio' 'lilv' 'suil' 'libgnomecanvasmm')
         # -libgnomecanvas(+libgnomecanvasmm)
         # +soundtouch (these +/- changes are for SYSLIBS=1)
         # cwiid removed for https://bugs.archlinux.org/task/28344
makedepends=('scons' 'boost')
changelog=$pkgname.changelog
source=("ftp://ftp.archlinux.org/other/ardour/$pkgname-$pkgver.tar.bz2"
        "$pkgname.desktop")
md5sums=('c79219ba10735d0b061d53a84ae611a4'
         '8aeaf433ebf781733db48e5a16b0c4da')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  sed -i '/-O3/d' SConstruct

  # work around boost linking error (see ardour3 svn r13081)
  # thanks to Harry Harren for the heads-up
  CFLAGS+=" -DBOOST_SYSTEM_NO_DEPRECATED"
  CXXFLAGS+=" -DBOOST_SYSTEM_NO_DEPRECATED"
  export CFLAGS CXXFLAGS

  scons $MAKEFLAGS ARCH="$CFLAGS -O3" \
                   PREFIX="/usr" \
                   DIST_LIBDIR="lib" \
                   FREEDESKTOP=0 \
                   FREESOUND=1 \
                   SYSLIBS=1 \
                   DESTDIR="$pkgdir"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  scons DESTDIR="$pkgdir" install

  # install some freedesktop.org compatibility
  install -Dm644 "$srcdir/$pkgname.desktop" \
    "$pkgdir/usr/share/applications/$pkgname.desktop"

  # upstream will not do this
  # install templates
  cp -r templates "$pkgdir/usr/share/ardour2/"
}

# vim:set ts=2 sw=2 et: