aboutsummaryrefslogtreecommitdiffstats
path: root/main/audacity/APKBUILD
blob: ee7d62bf406701faae8853cc5e5adc886bf1bc9e (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity
pkgver=2.1.0
pkgrel=0
pkgdesc="Multitrack audio editor"
url="http://audacity.sourceforge.net"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev
	alsa-lib-dev
	bash
	expat-dev
	flac-dev
	jack-dev
	lame-dev
	libid3tag-dev
	libmad-dev
	libogg-dev
	libsndfile-dev
	libvorbis-dev
	portaudio-dev
	soxr-dev
	taglib-dev
	wxgtk2.8-dev
	"

install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://sourceforge.net/projects/audacity/files/audacity-minsrc-$pkgver.tar.xz
	musl-workaround.patch
	"

_builddir="$srcdir"/audacity-minsrc-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	local _arch

	cd "$_builddir"

	case "$CTARGET" in
	x86|x86_64) _arch="--enable-sse";;
	*) _arch="--disable-sse";;
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--with-lib-preference=system \
		--with-libsndfile=system \
		--with-soxr=system \
		--with-id3tag=system \
		--with-libvorbis=system \
		--with-portaudio=system \
		--with-libmad=system \
		--with-widgetextra=local \
		--without-libresample \
		--without-libsamplerate \
		--without-ffmpeg \
		$_arch \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="d21a794cc1e2a1567d3d75b53b1f2f02  audacity-minsrc-2.1.0.tar.xz
f4d0e4b195c2f604cea8e8d696ffcc17  musl-workaround.patch"
sha256sums="b0d98d89b38be233e88af81e1add649732484b6f8feec95dc5977accdde042b3  audacity-minsrc-2.1.0.tar.xz
888e2a0c0055f11300ecaa550aff5ab1991dbce3b2dab0d05596c3b304b2c675  musl-workaround.patch"
sha512sums="5ed441b567bc72a794d9d5a1248db137d1a6d019b5fcdcb8b536a509ecacbf5d85b50c2a0cad484f84053dff4ffa662027cca157fde4b18f9d53b2bd106c34b4  audacity-minsrc-2.1.0.tar.xz
b5488a7f5398c07fe986e090b8d61353ecba594ed23fda6a4444e59718f7d1e8bd5c716047ce139350983d5609b5810362a78a2fd5d85e9b1730d196c57c685b  musl-workaround.patch"