Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PKGBUILD
- ========
- pkgname=oyranos
- pkgver=0.4.0
- pkgrel=1
- pkgdesc="A Colour Management System (CMS) on operating system level."
- url="http://oyranos.org/"
- arch=('i686' 'x86_64')
- makedepends=()
- depends=(libxml2 libxinerama libxrandr libxfixes libxxf86vm doxygen graphviz lcms2 libraw xcalib libxcm)
- optdepends=(fltk qt elektra cups sane cairo openicc)
- source=("http://prdownloads.sourceforge.net/oyranos/$pkgname-$pkgver.tar.bz2"
- "configure_tests.patch"
- "makefile.in.patch"
- "oyranos_file.cpp.patch")
- md5sums=('4ec2c728c5ca7d450c47d95405de3ade'
- '4a40d9d548e257d88610a25c64665a1c'
- '4b21aee778054fbb0dc81cd7900d64ab'
- '24a0f440f6dbc34a49ab98f70446d455')
- license=('MIT')
- build() {
- cd $srcdir/$pkgname-$pkgver
- unset LDFLAGS
- patch -Np0 <"$srcdir"/configure_tests.patch
- patch -Np0 <"$srcdir"/makefile.in.patch
- patch -Np0 <"$srcdir"/oyranos_file.cpp.patch
- ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared || return 1
- make -j1 || return 1
- make DESTDIR=$pkgdir install
- }
- configure_tests.patch
- =====================
- --- configure_tests.sh 2012-03-10 19:28:12.016514261 +0100
- +++ configure_tests.sh.new 2012-03-10 19:30:04.230678948 +0100
- @@ -3,7 +3,7 @@
- set > testset.txt
- ERROR=0
- WARNING=0
- -STRIPOPT='s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
- +STRIPOPT='s/-Wl[^ ]*//g ; s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
- mkdir -p tests
- makefile.in.patch
- =================
- --- makefile.in 2012-03-10 22:38:33.349187985 +0100
- +++ makefile.in.new 2012-03-10 22:26:19.702186798 +0100
- @@ -999,7 +999,7 @@
- OY_MODULE_PATHS=. LD_LIBRARY_PATH=./:$(libdir):$${LD_LIBRARY_PATH} tests/test_oyranos
- examples: all
- - 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))
- + 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))
- oforms: all $(LIB_FORMS_FLTK_NAME)
- 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)
- oyranos_file.cpp.patch
- ======================
- --- examples/libraw/oyranos_file.cpp 2012-03-10 20:39:13.754934907 +0100
- +++ examples/libraw/oyranos_file.cpp.new 2012-03-10 20:39:18.317895815 +0100
- @@ -15,7 +15,7 @@
- */
- /* c++ -Wall -g oyranos_file.cpp `pkg-config --cflags --libs oyranos` -o oyranos-file */
- -#include <alpha/oyranos_alpha.h>
- +#include <oyranos_alpha.h>
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement