2013-10-26 00:28:26 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-09-04 23:57:01 +00:00
|
|
|
# - use PIC with armv7 and AArch64
|
2013-10-26 00:28:26 +00:00
|
|
|
|
|
|
|
pkgname=gpac
|
2015-04-23 12:20:29 +00:00
|
|
|
pkgver=0.5.2
|
2016-03-06 16:29:19 +00:00
|
|
|
pkgrel=6
|
2015-04-23 12:20:29 +00:00
|
|
|
epoch=1
|
2013-10-26 00:28:26 +00:00
|
|
|
pkgdesc="A multimedia framework based on the MPEG-4 Systems standard"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://gpac.sourceforge.net"
|
|
|
|
license=('LGPL')
|
2015-04-23 12:20:29 +00:00
|
|
|
depends=('ffmpeg' 'glu' 'libxv')
|
|
|
|
makedepends=('git' 'jack' 'a52dec' 'freetype2' 'faad2' 'libmad' 'mesa' 'sdl2')
|
|
|
|
optdepends=('jack: for jack support'
|
|
|
|
'a52dec: for A52 support'
|
|
|
|
'faad2: for AAC support'
|
|
|
|
'libmad: for mp3 support'
|
|
|
|
'sdl2: for sdl support')
|
2013-10-26 00:28:26 +00:00
|
|
|
options=('staticlibs' '!makeflags')
|
2016-02-27 15:13:22 +00:00
|
|
|
source=(git://github.com/gpac/gpac.git#tag=v$pkgver gpac-ffmpeg3.patch)
|
|
|
|
sha1sums=('SKIP'
|
|
|
|
'2ce98b1d8aa2f8091c6581d189470250502484e7')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
# Fix build with ffmpeg 3.0 (Gentoo)
|
|
|
|
patch -p1 -i ../gpac-ffmpeg3.patch
|
|
|
|
}
|
2013-10-26 00:28:26 +00:00
|
|
|
|
|
|
|
build() {
|
2015-04-23 12:20:29 +00:00
|
|
|
cd ${pkgname}
|
2015-09-04 23:57:01 +00:00
|
|
|
[[ $CARCH == 'armv7h' || $CARCH == 'aarch64' ]] && CONFIG='--enable-pic'
|
2013-10-26 00:28:26 +00:00
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man --X11-path=/usr --use-js=no $CONFIG
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-04-23 12:20:29 +00:00
|
|
|
cd ${pkgname}
|
2013-10-26 00:28:26 +00:00
|
|
|
make DESTDIR="${pkgdir}" install install-lib
|
|
|
|
}
|