summaryrefslogtreecommitdiff
path: root/extra/ardour/PKGBUILD
blob: c153916c9a35af64c09ddd0a9335ddf32d310bc3 (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
66
# $Id: PKGBUILD 176990 2013-02-03 14:59:10Z 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
# http://ardour.org/node/5263

pkgname=ardour
pkgver=2.8.16
pkgrel=1
pkgdesc="A multichannel hard disk recorder and digital audio workstation"
arch=('i686' 'x86_64')
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=('5bafe41df00d25e7a357baaa1038f16d'
         '8aeaf433ebf781733db48e5a16b0c4da')

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

  # ardour defaults to -O3; use this in CFLAGS below
  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/-O[0-9]/-O3}" \
                   PREFIX="/usr" \
                   DIST_LIBDIR="lib" \
                   FREEDESKTOP=0 \
                   FREESOUND=1 \
                   SYSLIBS=1
}

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: