Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

oyranos_0.4.0_PKGBUILD

By: a guest on Mar 11th, 2012  |  syntax: None  |  size: 3.33 KB  |  hits: 36  |  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. PKGBUILD
  2. ========
  3. pkgname=oyranos
  4. pkgver=0.4.0
  5. pkgrel=1
  6. pkgdesc="A Colour Management System (CMS) on operating system level."
  7. url="http://oyranos.org/"
  8. arch=('i686' 'x86_64')  
  9. makedepends=()
  10. depends=(libxml2 libxinerama libxrandr libxfixes libxxf86vm doxygen graphviz lcms2 libraw xcalib libxcm)
  11. optdepends=(fltk qt elektra cups sane cairo openicc)
  12. source=("http://prdownloads.sourceforge.net/oyranos/$pkgname-$pkgver.tar.bz2"
  13.         "configure_tests.patch"
  14.         "makefile.in.patch"
  15.         "oyranos_file.cpp.patch")
  16. md5sums=('4ec2c728c5ca7d450c47d95405de3ade'
  17.          '4a40d9d548e257d88610a25c64665a1c'
  18.          '4b21aee778054fbb0dc81cd7900d64ab'
  19.          '24a0f440f6dbc34a49ab98f70446d455')
  20. license=('MIT')
  21.  
  22. build() {
  23.     cd $srcdir/$pkgname-$pkgver
  24.     unset LDFLAGS
  25.     patch -Np0 <"$srcdir"/configure_tests.patch
  26.     patch -Np0 <"$srcdir"/makefile.in.patch
  27.     patch -Np0 <"$srcdir"/oyranos_file.cpp.patch
  28.  
  29.     ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared || return 1
  30.     make -j1 || return 1
  31.     make DESTDIR=$pkgdir install
  32. }
  33.  
  34. configure_tests.patch
  35. =====================
  36. --- configure_tests.sh  2012-03-10 19:28:12.016514261 +0100
  37. +++ configure_tests.sh.new      2012-03-10 19:30:04.230678948 +0100
  38. @@ -3,7 +3,7 @@
  39.  set > testset.txt
  40.  ERROR=0
  41.  WARNING=0
  42. -STRIPOPT='s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
  43. +STRIPOPT='s/-Wl[^ ]*//g ; s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
  44.  
  45.  mkdir -p tests
  46.  
  47. makefile.in.patch
  48. =================
  49. --- makefile.in 2012-03-10 22:38:33.349187985 +0100
  50. +++ makefile.in.new     2012-03-10 22:26:19.702186798 +0100
  51. @@ -999,7 +999,7 @@
  52.         OY_MODULE_PATHS=. LD_LIBRARY_PATH=./:$(libdir):$${LD_LIBRARY_PATH} tests/test_oyranos
  53.  
  54.  examples:      all
  55. -       cd examples && ($(MAKE) clean; PATH="$(PATH):$(bindir):.." LD_LIBRARY_PATH=./:$(libdir):$${LD_LIBRARY_PATH} PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(DESTDIR)$(libdir)/pkgconfig:.." INCLUDE="-I$(includedir) -I$(SRCDIR) -I../ -I$(SRCDIR)/$(GENDIR)" SRCDIR=$(SRCDIR)/examples/ CFLAGS="$(CFLAGS)" LIBS="-L$(libdir) -L../" intl="$(intl)" $(MAKE))
  56. +       cd examples && ($(MAKE) clean; PATH="$(PATH):$(bindir):.." LD_LIBRARY_PATH=./:$(libdir):$${LD_LIBRARY_PATH} PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(DESTDIR)$(libdir)/pkgconfig:.." INCLUDE="-I$(includedir) -I$(SRCDIR) -I../ -I$(SRCDIR)/$(GENDIR)" SRCDIR=$(SRCDIR)/examples/ CFLAGS="$(CFLAGS)" LIBS="-L../ -L$(libdir)" intl="$(intl)" $(MAKE))
  57.  
  58.  oforms:        all $(LIB_FORMS_FLTK_NAME)
  59.         cd oforms && (PATH="$(PATH):$(bindir):.." LD_LIBRARY_PATH=./:$(libdir):$${LD_LIBRARY_PATH} PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(DESTDIR)$(libdir)/pkgconfig:.." CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" INCLUDE="-I$(includedir) -I$(SRCDIR) -I../ -I$(SRCDIR)/$(GENDIR)" SRCDIR=$(SRCDIR)/oforms/ LDFLAGS="-L../ $(intl) $(LDFLAGS)" $(MAKE) -f oyranos_xforms.makefile)
  60.  
  61.  
  62. oyranos_file.cpp.patch
  63. ======================
  64. --- examples/libraw/oyranos_file.cpp    2012-03-10 20:39:13.754934907 +0100
  65. +++ examples/libraw/oyranos_file.cpp.new        2012-03-10 20:39:18.317895815 +0100
  66. @@ -15,7 +15,7 @@
  67.   */
  68.  /* c++ -Wall -g oyranos_file.cpp `pkg-config --cflags --libs oyranos` -o oyranos-file */
  69.  
  70. -#include <alpha/oyranos_alpha.h>
  71. +#include <oyranos_alpha.h>
  72.  #include <stdio.h>
  73.  #include <string.h>
  74.  #include <stdlib.h>