mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/gpac to 0.8.0-1
This commit is contained in:
parent
37c546eb21
commit
2ec1497c1d
1 changed files with 40 additions and 37 deletions
|
@ -1,58 +1,61 @@
|
||||||
# $Id$
|
|
||||||
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
||||||
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - use PIC with armv7 and AArch64
|
# - use PIC with AArch64
|
||||||
|
|
||||||
pkgname=gpac
|
pkgname=gpac
|
||||||
pkgver=0.7.1
|
pkgver=0.8.0
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc='A multimedia framework based on the MPEG-4 Systems standard'
|
pkgdesc='A multimedia framework based on the MPEG-4 Systems standard'
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url='https://gpac.wp.imt.fr/'
|
url=https://gpac.wp.imt.fr/
|
||||||
license=('LGPL')
|
license=(LGPL)
|
||||||
depends=('ffmpeg' 'glu' 'libxv')
|
depends=(
|
||||||
makedepends=('git' 'jack' 'a52dec' 'freetype2' 'faad2' 'libmad' 'mesa' 'sdl2')
|
ffmpeg
|
||||||
optdepends=('jack: for jack support'
|
glu
|
||||||
'a52dec: for A52 support'
|
libxv
|
||||||
'faad2: for AAC support'
|
)
|
||||||
'libmad: for mp3 support'
|
makedepends=(
|
||||||
'sdl2: for sdl support')
|
git
|
||||||
provides=('libgpac.so')
|
jack
|
||||||
options=('staticlibs' '!makeflags')
|
a52dec
|
||||||
source=("gpac-${pkgver}.tar.gz::https://github.com/gpac/gpac/archive/v${pkgver}.tar.gz"
|
freetype2
|
||||||
'gpac-openssl-1.1.patch'
|
faad2
|
||||||
'gpac-ffmpeg-4.0.patch')
|
libmad
|
||||||
sha256sums=('c7a18b9eea1264fee392e7222d16b180e0acdd6bb173ff6b8baadbf50b3b1d7f'
|
mesa
|
||||||
'3a8b7b51192424df5aee3bf11a0207c9374aabcfba4db90522af2e3bbc37bbbe'
|
sdl2
|
||||||
'23e8555ae2d21a587d6a796acef7b96eff6ce01afd148eff5beb6370f830b316')
|
)
|
||||||
|
optdepends=(
|
||||||
prepare() {
|
'jack: for jack support'
|
||||||
cd gpac-${pkgver}
|
'a52dec: for A52 support'
|
||||||
|
'faad2: for AAC support'
|
||||||
patch -p1 -i ../gpac-openssl-1.1.patch
|
'libmad: for mp3 support'
|
||||||
patch -p1 -i ../gpac-ffmpeg-4.0.patch
|
'sdl2: for sdl support'
|
||||||
}
|
)
|
||||||
|
provides=(libgpac.so)
|
||||||
|
options=(staticlibs)
|
||||||
|
source=(git+https://github.com/gpac/gpac.git#tag=v${pkgver})
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd gpac-${pkgver}
|
cd gpac
|
||||||
|
|
||||||
[[ $CARCH == 'armv7h' || $CARCH == 'aarch64' ]] && CONFIG='--enable-pic'
|
[[ $CARCH == 'aarch64' ]] && CONFIG='--enable-pic'
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix='/usr' \
|
--prefix=/usr \
|
||||||
--mandir='/usr/share/man' \
|
--mandir=/usr/share/man \
|
||||||
--X11-path='/usr' \
|
--X11-path=/usr \
|
||||||
--use-js='no' $CONFIG
|
--use-js=no $CONFIG
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd gpac-${pkgver}
|
cd gpac
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install install-lib
|
make DESTDIR="${pkgdir}" STRIP=true install install-lib
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et:
|
# vim: ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue