mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
# $Id$
|
|
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - use PIC with armv7 and AArch64
|
|
|
|
pkgname=gpac
|
|
pkgver=0.6.1
|
|
pkgrel=2
|
|
epoch=1
|
|
pkgdesc='A multimedia framework based on the MPEG-4 Systems standard'
|
|
arch=('i686' 'x86_64')
|
|
url='https://gpac.wp.mines-telecom.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' '!makeflags')
|
|
source=("gpac-${pkgver}.tar.gz::https://github.com/gpac/gpac/archive/v${pkgver}.tar.gz" gpac-openssl-1.1.patch)
|
|
sha256sums=('67d1ac8f8b3e74da0e4e38ea926dc15bca6e9941e8f366e3538abcf13c103c09'
|
|
'3a8b7b51192424df5aee3bf11a0207c9374aabcfba4db90522af2e3bbc37bbbe')
|
|
|
|
prepare() {
|
|
cd gpac-${pkgver}
|
|
# fix build with openssl 1.1 (rpmfusion)
|
|
patch -p1 -i ../gpac-openssl-1.1.patch
|
|
}
|
|
|
|
build() {
|
|
cd gpac-${pkgver}
|
|
|
|
[[ $CARCH == 'armv7h' || $CARCH == 'aarch64' ]] && CONFIG='--enable-pic'
|
|
|
|
./configure \
|
|
--prefix='/usr' \
|
|
--mandir='/usr/share/man' \
|
|
--X11-path='/usr' \
|
|
--use-js='no' $CONFIG
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd gpac-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install install-lib
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|