2013-10-26 00:28:26 +00:00
|
|
|
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
2016-08-06 15:12:19 +00:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
2013-10-26 00:28:26 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2019-06-28 12:24:53 +00:00
|
|
|
# - use PIC with AArch64
|
2013-10-26 00:28:26 +00:00
|
|
|
|
|
|
|
pkgname=gpac
|
2019-06-28 12:24:53 +00:00
|
|
|
pkgver=0.8.0
|
2020-07-10 01:18:18 +00:00
|
|
|
pkgrel=2
|
2015-04-23 12:20:29 +00:00
|
|
|
epoch=1
|
2016-08-06 15:12:19 +00:00
|
|
|
pkgdesc='A multimedia framework based on the MPEG-4 Systems standard'
|
2019-06-28 12:24:53 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url=https://gpac.wp.imt.fr/
|
|
|
|
license=(LGPL)
|
|
|
|
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'
|
|
|
|
)
|
|
|
|
provides=(libgpac.so)
|
|
|
|
options=(staticlibs)
|
|
|
|
source=(git+https://github.com/gpac/gpac.git#tag=v${pkgver})
|
|
|
|
sha256sums=('SKIP')
|
2013-10-26 00:28:26 +00:00
|
|
|
|
|
|
|
build() {
|
2019-06-28 12:24:53 +00:00
|
|
|
cd gpac
|
2016-08-06 15:12:19 +00:00
|
|
|
|
2019-06-28 12:24:53 +00:00
|
|
|
[[ $CARCH == 'aarch64' ]] && CONFIG='--enable-pic'
|
2016-08-06 15:12:19 +00:00
|
|
|
|
|
|
|
./configure \
|
2019-06-28 12:24:53 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--X11-path=/usr \
|
|
|
|
--use-js=no $CONFIG
|
2013-10-26 00:28:26 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-06-28 12:24:53 +00:00
|
|
|
cd gpac
|
2016-08-06 15:12:19 +00:00
|
|
|
|
2019-06-28 12:24:53 +00:00
|
|
|
make DESTDIR="${pkgdir}" STRIP=true install install-lib
|
2013-10-26 00:28:26 +00:00
|
|
|
}
|
2016-08-06 15:12:19 +00:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|