summaryrefslogtreecommitdiff
path: root/community/dumb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dumb/PKGBUILD')
-rw-r--r--community/dumb/PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/community/dumb/PKGBUILD b/community/dumb/PKGBUILD
index 2ddfc6153..00551dd5f 100644
--- a/community/dumb/PKGBUILD
+++ b/community/dumb/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=dumb
pkgver=0.9.3
pkgrel=6
pkgdesc="An IT, XM, S3M and MOD player library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom:dumb' 'GPL')
url="http://dumb.sourceforge.net/"
depends=('glibc' 'allegro4')
@@ -19,7 +19,7 @@ md5sums=('f48da5b990aa8aa822d3b6a951baf5c2'
build() {
cd "$srcdir/$pkgname-$pkgver"
- [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+ [ "${CARCH}" != "i686" ] && export CFLAGS="${CFLAGS} -fPIC"
# Fix CVE-2006-3668 (Patch found in Gentoo and other distros).
patch -p1 < "$srcdir/CVE-2006-3668.patch"
@@ -41,7 +41,8 @@ ALL_TARGETS := core core-examples core-headers
ALL_TARGETS += allegro allegro-examples allegro-headers
PREFIX := "$pkgdir/usr"
EOF
-
+ # For some reason -lm is not linked for Allegro examples.
+ sed -ri 's/^(LINK_ALLEGRO := .+)$/\1 -lm/' make/unix.inc
# Upstream's makefile ignores our CFLAGS. They put -I directives in
# their own CFLAGS, so we can't just say
# make CFLAGS=...