PKGBUILDs/extra/smpeg/PKGBUILD

27 lines
927 B
Bash

# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=smpeg
pkgver=0.4.4
pkgrel=5
pkgdesc="SDL MPEG Player Library"
arch=('arm')
url="http://icculus.org/smpeg/"
license=('LGPL')
depends=('sdl')
makedepends=('gtk' 'mesa')
optdepends=('gtk: to use gtv ' 'mesa: to use glmovie')
options=('!libtool' '!makeflags')
source=(http://mirrors.dotsrc.org/lokigames/open-source/smpeg/${pkgname}-${pkgver}.tar.gz smpeg-0.4.4-gcc41.patch)
md5sums=('59c76ac704088ef5539210190c4e1fe3' '8b979a58307d7196655758bd3d2466c4')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 < ../smpeg-0.4.4-gcc41.patch || return 1
./configure --prefix=/usr --mandir=/usr/share/man || return 1
make LDFLAGS+=-lstdc++ || return 1
make DESTDIR=${pkgdir} install || return 1
#fix aclocal warnings
sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" ${pkgdir}/usr/share/aclocal/smpeg.m4 || return 1
}