diff options
author | William Pitcock <nenolod@dereferenced.org> | 2010-12-16 10:39:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-16 12:29:45 +0000 |
commit | e4242fb10fcadd724e1ef3adec17eec9a1b12f64 (patch) | |
tree | f5a45bd3a97cf88e746dbb747e4f0a01106212b4 | |
parent | 027fc6a04c9ad2b7026f2c0e4821dbd74ee944a0 (diff) | |
download | alpine_aports-e4242fb10fcadd724e1ef3adec17eec9a1b12f64.tar.bz2 alpine_aports-e4242fb10fcadd724e1ef3adec17eec9a1b12f64.tar.xz alpine_aports-e4242fb10fcadd724e1ef3adec17eec9a1b12f64.zip |
testing/audacious: fix depends, add uclibc patch
-rw-r--r-- | testing/audacious/APKBUILD | 52 | ||||
-rw-r--r-- | testing/audacious/uclibc-execinfo.patch | 23 |
2 files changed, 75 insertions, 0 deletions
diff --git a/testing/audacious/APKBUILD b/testing/audacious/APKBUILD new file mode 100644 index 0000000000..d503bec5d0 --- /dev/null +++ b/testing/audacious/APKBUILD | |||
@@ -0,0 +1,52 @@ | |||
1 | # Contributor: William Pitcock <nenolod@dereferenced.org> | ||
2 | # Maintainer: William Pitcock <nenolod@dereferenced.org> | ||
3 | pkgname=audacious | ||
4 | pkgver=2.4.2 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="playlist-oriented media player with multiple interfaces" | ||
7 | url="http://audacious-media-player.org/" | ||
8 | arch="all" | ||
9 | license="ISC" | ||
10 | depends= | ||
11 | makedepends="libmowgli-dev libmcs-dev libguess-dev gtk+-dev dbus-glib-dev libxml2-dev" | ||
12 | install= | ||
13 | subpackages="$pkgname-dev" | ||
14 | source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz | ||
15 | uclibc-execinfo.patch" | ||
16 | |||
17 | _builddir="$srcdir"/$pkgname-$pkgver | ||
18 | |||
19 | prepare() { | ||
20 | cd "$_builddir" | ||
21 | |||
22 | for i in $source; do | ||
23 | case $i in | ||
24 | *.patch) | ||
25 | msg "Applying $i..." | ||
26 | patch -s -p1 -N -i "$srcdir"/$i || return 1 | ||
27 | ;; | ||
28 | esac | ||
29 | done | ||
30 | } | ||
31 | |||
32 | build() { | ||
33 | cd "$_builddir" | ||
34 | ./configure --prefix=/usr \ | ||
35 | --sysconfdir=/etc \ | ||
36 | --mandir=/usr/share/man \ | ||
37 | --infodir=/usr/share/info \ | ||
38 | --enable-chardet | ||
39 | make || return 1 | ||
40 | } | ||
41 | |||
42 | package() { | ||
43 | cd "$_builddir" | ||
44 | |||
45 | # bleah... | ||
46 | mkdir $pkgdir/usr/bin | ||
47 | |||
48 | make DESTDIR="$pkgdir" install | ||
49 | } | ||
50 | |||
51 | md5sums="bffdee15653595a7e9126246dee444e5 audacious-2.4.2.tgz | ||
52 | b200db2ce2f3949deb4fdfa98f0b193d uclibc-execinfo.patch" | ||
diff --git a/testing/audacious/uclibc-execinfo.patch b/testing/audacious/uclibc-execinfo.patch new file mode 100644 index 0000000000..803f273ef8 --- /dev/null +++ b/testing/audacious/uclibc-execinfo.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | --- audacious-2.4.2.orig/src/libaudcore/audstrings.c | ||
2 | +++ audacious-2.4.2/src/libaudcore/audstrings.c | ||
3 | @@ -230,9 +230,8 @@ | ||
4 | return dirname; | ||
5 | } | ||
6 | |||
7 | -#if defined(__GLIBC__) && (__GLIBC__ >= 2) | ||
8 | -#define HAVE_EXECINFO 1 | ||
9 | -#include <execinfo.h> | ||
10 | +#ifdef HAVE_EXECINFO_H | ||
11 | +# include <execinfo.h> | ||
12 | #endif | ||
13 | |||
14 | /** | ||
15 | @@ -258,7 +257,7 @@ | ||
16 | |||
17 | /* already UTF-8? */ | ||
18 | if (!g_utf8_validate(str, -1, NULL)) { | ||
19 | -#ifdef HAVE_EXECINFO | ||
20 | +#ifdef HAVE_EXECINFO_H | ||
21 | gint i, nsymbols; | ||
22 | const gint nsymmax = 50; | ||
23 | void *addrbuf[nsymmax]; | ||