summaryrefslogtreecommitdiff
path: root/community/gpac/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gpac/PKGBUILD')
-rw-r--r--community/gpac/PKGBUILD44
1 files changed, 26 insertions, 18 deletions
diff --git a/community/gpac/PKGBUILD b/community/gpac/PKGBUILD
index 080c51871..06b3b1c50 100644
--- a/community/gpac/PKGBUILD
+++ b/community/gpac/PKGBUILD
@@ -1,35 +1,43 @@
-# $Id: PKGBUILD 58399 2011-11-12 17:17:21Z ibiru $
+# $Id: PKGBUILD 61715 2012-01-06 22:18:07Z ebelanger $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=gpac
-pkgver=0.4.5
-pkgrel=9
+pkgver=3824
+pkgrel=1
pkgdesc="A multimedia framework based on the MPEG-4 Systems standard"
arch=('i686' 'x86_64' 'mips64el')
url="http://gpac.sourceforge.net"
-depends=('wxgtk' 'libmad' 'faad2' 'ffmpeg' 'freeglut')
license=('LGPL')
+depends=('ffmpeg' 'libjpeg' 'libpng' 'mesa')
+makedepends=('jack' 'a52dec' 'freetype2' 'libxv' 'faad2' 'libmad')
+optdepends=('jack: for jack support' 'a52dec: for A52 support'
+ 'faad2: for AAC support' 'libmad: for mp3 support')
options=('!makeflags')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
- libpng14-infopp-null.patch openjpeg14.patch)
-sha1sums=('2ec03c1d7dc3f4d10c0f7b47696cc1e753a56fc8'
- '00ba08808ec46ef6b8301ede26e500b3449253c1'
- '95747ca98cdf0efc33ec776764401f5a83818ab5')
+source=(ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+sha1sums=('bf7039c2585d539475babc7996851627efd7ec59')
+
+# source PKGBUILD && mksource
+mksource() {
+ [[ -x /usr/bin/svn ]] || (echo "svn not found. Install subversion." && return 1)
+ _svnver=$pkgver
+ _svntrunk="https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac"
+ _svnmod="$pkgname-$pkgver"
+ mkdir ${pkgname}-$pkgver
+ pushd ${pkgname}-$pkgver
+ svn co $_svntrunk --config-dir ./ -r $_svnver $_svnmod
+ echo "#define GPAC_SVN_REVISION \"$_svnver\"" > ${pkgname}-$pkgver/include/gpac/version.h
+ find . -depth -type d -name .svn -exec rm -rf {} \;
+ tar -cJf ../${pkgname}-$pkgver.tar.xz ${pkgname}-$pkgver/*
+ popd
+}
build() {
- cd "${srcdir}/${pkgname}"
- chmod +x configure
- sed -i 's|--warn-common||' configure
- sed -i 's#lib64#lib#g' configure
- patch -p1 -i "${srcdir}/libpng14-infopp-null.patch"
- patch -p1 -i "${srcdir}/openjpeg14.patch"
-
- export LDFLAGS=${LDFLAGS/,--as-needed/}
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man --X11-path=/usr --use-js=no
make
}
package() {
- cd "${srcdir}/${pkgname}"
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install install-lib
}