APKBUILD 2 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity
4
pkgver=2.1.1
5
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
6 7 8
pkgdesc="Multitrack audio editor"
url="http://audacity.sourceforge.net"
arch="all"
9
license="GPL-2.0"
10 11 12 13 14 15 16 17 18 19 20 21 22
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
23
	soundtouch-dev
24 25 26 27 28
	soxr-dev
	taglib-dev
	wxgtk2.8-dev
	"

Natanael Copa's avatar
Natanael Copa committed
29
subpackages="$pkgname-doc $pkgname-lang"
30
source="https://github.com/audacity/audacity/archive/Audacity-$pkgver.tar.gz
31
	musl-workaround.patch
32
	filedialog.patch
33
	"
Natanael Copa's avatar
Natanael Copa committed
34

tmpfile's avatar
tmpfile committed
35
builddir="$srcdir"/audacity-Audacity-$pkgver
Natanael Copa's avatar
Natanael Copa committed
36 37

build() {
Timo Teräs's avatar
Timo Teräs committed
38 39
	local _arch

tmpfile's avatar
tmpfile committed
40
	cd "$builddir"
Timo Teräs's avatar
Timo Teräs committed
41 42 43 44 45

	case "$CTARGET" in
	x86|x86_64) _arch="--enable-sse";;
	*) _arch="--disable-sse";;
	esac
46
	export CXXFLAGS="$CXXFLAGS -std=gnu++98"
47 48
	LIBNYQUIST_USE_LOCAL=yes \
	CFLAGS="$CFLAGS -fPIC" \
49 50 51 52
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
53 54
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
55
		--with-expat=system \
56
		--with-lib-preference=system \
Natanael Copa's avatar
Natanael Copa committed
57
		--with-libsndfile=system \
58 59
		--with-libflac=system \
		--with-coundtouch=system \
60 61 62 63 64 65
		--with-soxr=system \
		--with-id3tag=system \
		--with-libvorbis=system \
		--with-portaudio=system \
		--with-libmad=system \
		--with-widgetextra=local \
Natanael Copa's avatar
Natanael Copa committed
66
		--without-libresample \
67 68
		--without-libsamplerate \
		--without-ffmpeg \
69
		--enable-nyquist \
tmpfile's avatar
tmpfile committed
70
		$_arch
71 72

	for i in ffmpeg libsoxr libvamp portaudio-v19; do
tmpfile's avatar
tmpfile committed
73
		rm -r lib-src/$i
74
	done
tmpfile's avatar
tmpfile committed
75
	make
Natanael Copa's avatar
Natanael Copa committed
76 77 78
}

package() {
tmpfile's avatar
tmpfile committed
79 80
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
81 82
}

83 84 85
sha512sums="00b0a037ffefb670e7148414224c60330c4fb915a892cb635537caeba82815d0113c5bb07f7b2805ed9b42a1a75106ef6fdc2f1602fd5042c48cc5e111a34ffb  Audacity-2.1.1.tar.gz
b5488a7f5398c07fe986e090b8d61353ecba594ed23fda6a4444e59718f7d1e8bd5c716047ce139350983d5609b5810362a78a2fd5d85e9b1730d196c57c685b  musl-workaround.patch
7f10b5f53ada9faa7ad887400a5729a41228f8970ee4cc045291e9b203a9f7f068b09f709e23f7f2a15724acf82ed0e4bccfd163b2232b430d2c89b86ccc2751  filedialog.patch"