1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="MPEG-4 multimedia framework"
7 url="http://gpac.sourceforge.net/"
9 depends=('alsa-lib' 'zlib')
10 optdepends=('wxgtk: GUI Osmo4' 'openssl' 'ffmpeg' 'freetype2' 'libmad>=0.15' 'libxml2: SVG parsing'
11 'freeglut: OpenGL' 'faad2: AAC' 'xvidcore: MPEG4-ASP' 'libjpeg: JPEG image'
12 'libpng: PNG image' 'libvorbis: OGG vorbis' 'libtheora: OGG theora' 'spidermonkey: scripting')
13 makedepends=('subversion')
19 _svntrunk="https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac"
24 msg "Connecting to $_svnmod.sourceforge.net SVN server...."
25 if [ -d $_svnmod/.svn ]; then
26 cd $_svnmod && svn up -r $pkgver
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 if [ -e "$srcdir"/$_svnmod-build ]; then
34 rm -rf "$srcdir"/$_svnmod-build
37 cp -r "$srcdir"/$_svnmod "$srcdir"/$_svnmod-build
38 cd "$srcdir"/$_svnmod-build
41 # sed -i 's|png_infopp_NULL|NULL|' src/media_tools/img.c
43 # use /usr/lib instead of /usr/lib64
44 sed -i 's|lib64|lib|' configure
45 ./configure --prefix=/usr --mandir=/usr/share/man --X11-path=/usr
47 export MAKEFLAGS=`echo $MAKEFLAGS | sed 's|-j[1-9][0-9]*|-j1'`
49 make DESTDIR="$pkgdir" install
53 cd "$srcdir"/$_svnmod-build
54 make DESTDIR="$pkgdir" install
55 # gm_x11_out.so is broken and causes Osmo4 to crash
56 rm "$pkgdir"/usr/lib/gpac/gm_x11_out.so