Date: Tuesday, February 12, 2013 @ 12:21:16 Author: arodseth Revision: 84156
Made gimp-gap compile again, but there are problems Added: gimp-gap/trunk/dummy.makefile Modified: gimp-gap/trunk/PKGBUILD ----------------+ PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++----------- dummy.makefile | 5 +++++ 2 files changed, 43 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-02-12 09:34:15 UTC (rev 84155) +++ PKGBUILD 2013-02-12 11:21:16 UTC (rev 84156) @@ -1,28 +1,55 @@ # $Id$ -# Maintainer: tobias <tob...@archlinux.org> +# Maintainer: Alexander Rødseth <rods...@gmail.com> +# Contributor: tobias <tob...@archlinux.org> # Contributor: Tobias Kieslich <tob...@justdreams.de> +# TODO: Try building with the latest ffmpeg sources + pkgname=gimp-gap pkgver=2.6.0 -pkgrel=3 -pkgdesc="A Plug-In collection to edit and create animations for the Gimp" -arch=('i686' 'x86_64') +pkgrel=4 +pkgdesc='Plugins for editing and creating animations with The Gimp' +arch=('x86_64' 'i686') license=('GPL') -url="http://www.gimp.org/downloads/" +url='about:blank' depends=('gimp' 'xvidcore' 'bash' 'libjpeg') makedepends=('intltool') -options=('!makeflags') -source=(ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/$pkgname-$pkgver.tar.bz2) -md5sums=('249ed829de8b78675c0fe4ef4212089f') +source=("ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/$pkgname-$pkgver.tar.bz2" + 'dummy.makefile') +sha256sums=('1483f5e17ed5f9107c1702fcac3b7a66e6834061560ccb449fc4eaca7a3c2cca' + '28ae682fe46cea74f9face0b6820b59f23e8bd3a2ac053e38c0e7e62613a4177') build() { cd "$srcdir/$pkgname-$pkgver" - [ "$CARCH" = "x86_64" ] && CFLAGS+="-fPIC" - ./configure --prefix=/usr - make + + # -lm must be one of the last libraries for the compilation to succeed + sed -i 's/-lm"/"/' configure + + # libmpeg3 is not in [extra], only libmpeg2 + # ignore the included ffmpeg library + ./configure \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib \ + --includedir=/usr/include \ + --datadir=/usr/share \ + --disable-libmpeg3 \ + --disable-libavformat + + # Create a dummy makefile for the external libraries + cat ../dummy.makefile > extern_libs/Makefile + + # Add -lm as the last library to be linked and start compiling + make LIBS+=' -lm' } package() { cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install } + +# vim:set ts=2 sw=2 et: Added: dummy.makefile =================================================================== --- dummy.makefile (rev 0) +++ dummy.makefile 2013-02-12 11:21:16 UTC (rev 84156) @@ -0,0 +1,5 @@ +all: + @true + +install: + @true