Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

exactimage 0.8.8 PKGBUILD with alternate download URL

By: lowfatcomputing on Aug 3rd, 2013  |  syntax: Bash  |  size: 3.72 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Volker Schmidt <flashrom42 AT gmail DOT com>
  2. pkgname=exactimage
  3. pkgver=0.8.8
  4. pkgrel=1
  5. pkgdesc="ExactImage --- A fast, modern and generic image processing library"
  6. arch=('i686' 'x86_64')
  7. url="http://www.exactcode.com/site/open_source/exactimage/"
  8. license=('GPL')
  9. provides=('exactimage')
  10. conflicts=('exactimage-svn')
  11. depends=('openexr' 'agg' 'giflib' 'jasper' 'libpng' 'lcms')
  12. optdepends=('python2' 'lua' 'ruby')
  13. #http://dl.exactcode.de/oss/exact-image/exact-image-$pkgver.tar.bz2
  14. source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz
  15.         makefile-cflags.patch
  16.         agg-missing-includes.patch
  17.         utility-timer-dead-code.diff
  18.         libpng15.patch
  19.         g++-4.7.patch
  20.         patch-lib__ContourUtility.cc
  21.         patch-lib__ContourMatching.cc
  22.         patch-codecs__xpm.cc
  23.         patch-codecs__jpeg.cc
  24.         patch-bardecode__code128.hh
  25.         patch-codecs__bmp.cc
  26.         patch-lib__ImageIterator2.hh
  27.         patch-edisplay_edisplay.cc
  28.         patch-codecs__gif.cc
  29. )
  30. md5sums=('867b601af4c6e2341c091b1a658dd6bc'
  31.          'f544064d1c61557ea012b83c62f17ded'
  32.          'fe7fca67f0edc9cf30b5aba0087527bf'
  33.          '979d724b1e32c55db22350fb9111853d'
  34.          '8fd2c794c34b9e6c1c8d3c0ee738c4f3'
  35.          '5a7843adf5b3f9d1573cbe65b9136ec5'
  36.          '014d1beb64ab8bb75056b39c9fb35852'
  37.          '38ce3ec2f03b4e7461af94174e617e3e'
  38.          '9f8857903ec5d0e0670816b003e50a81'
  39.          '2b44285a26cc75a616e7f2e3837c5a34'
  40.          '025a3f28556fb85ffbc0393937fae4f7'
  41.          'ad9203bc6d6ac517c1c9aceace9cb3e9'
  42.          'ece059112e3bc15113ed8869b61001d1'
  43.          '00e04fdd07109534d1bfa8ec16954e4a'
  44.          'e2b0b1a7e92c7eee5d97c8984805abb9')
  45.  
  46. build() {
  47.   cd "$srcdir/$pkgname-$pkgver"
  48.  
  49.   msg "Patching for Makefile CFLAGS --> From DEBIAN Project."
  50.   patch -p1 -EN < ../makefile-cflags.patch
  51.  
  52.   msg "Patching for missing includes --> From DEBIAN Project."
  53.   patch -p1 -EN < ../agg-missing-includes.patch
  54.  
  55.   msg "Patching for dead code in utility/Timer.cc --> From DEBIAN Project."
  56.   patch -p1 -EN < ../utility-timer-dead-code.diff
  57.  
  58.   msg "Patching for compiling w/libpng-1.5 --> From DEBIAN Project."
  59.   patch -p1 -EN < ../libpng15.patch
  60.  
  61.   #msg "Patching for compiling w/gcc++-4.7 --> From DEBIAN Project."
  62.   #patch -p1 -EN < ../g++-4.7.patch
  63.  
  64.   msg "Patching for ContourUtility.cc --> From FreeBSDProject."
  65.   patch -p0 -EN < ../patch-lib__ContourUtility.cc
  66.  
  67.   msg "Patching for ContourMatching.cc --> From FreeBSDProject."
  68.   patch -p0 -EN < ../patch-lib__ContourMatching.cc
  69.  
  70.   msg "Patching for codecs__xpm.cc --> From FreeBSDProject."
  71.   patch -p0 -EN < ../patch-codecs__xpm.cc
  72.  
  73.   msg "Patching for codecs__jpeg.cc --> From FreeBSDProject."
  74.   patch -p0 -EN < ../patch-codecs__jpeg.cc
  75.  
  76.   msg "Patching for bardecode__code128.hh --> From FreeBSDProject."
  77.   patch -p0 -EN < ../patch-bardecode__code128.hh
  78.  
  79.   msg "Patching for codecs__bmp.cc --> From FreeBSDProject."
  80.   patch -p0 -EN < ../patch-codecs__bmp.cc
  81.  
  82.   msg "Patching for lib__ImageIterator2.hh --> From FreeBSDProject."
  83.   patch -p0 -EN < ../patch-lib__ImageIterator2.hh
  84.  
  85.   msg "Patching for edisplay_edisplay.cc --> From FreeBSDProject."
  86.   patch -p0 -EN < ../patch-edisplay_edisplay.cc
  87.  
  88.   msg "Patching for codecs__gif.cc --> From FreeBSDProject (Partly!)."
  89.   patch -p0 -EN < ../patch-codecs__gif.cc
  90.  
  91.   msg "Patching for python2..."
  92.   sed -i "s/python -V/python2 -V/" configure
  93.   sed -i "s/python-config --includes/python2-config --includes/" configure
  94.   sed -i "s/shell python -c/shell python2 -c/" api/python/Makefile
  95.  
  96.   ./configure --prefix=/usr --with-libungif=-lgif
  97.   make
  98. }
  99.  
  100. package() {
  101.   cd "$srcdir/$pkgname-$pkgver"
  102.   make DESTDIR="$pkgdir/" install
  103. }
  104.  
  105. # vim:set ts=2 sw=2 et: