From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/lensfun/PKGBUILD | 21 +++++++++++++++++++++ extra/lensfun/lensfun-0.2.3-as-needed.patch | 13 +++++++++++++ extra/lensfun/lensfun-0.2.3-glibc-2.10.patch | 11 +++++++++++ 3 files changed, 45 insertions(+) create mode 100644 extra/lensfun/PKGBUILD create mode 100644 extra/lensfun/lensfun-0.2.3-as-needed.patch create mode 100644 extra/lensfun/lensfun-0.2.3-glibc-2.10.patch (limited to 'extra/lensfun') diff --git a/extra/lensfun/PKGBUILD b/extra/lensfun/PKGBUILD new file mode 100644 index 000000000..965b46875 --- /dev/null +++ b/extra/lensfun/PKGBUILD @@ -0,0 +1,21 @@ +# $Id: PKGBUILD 81449 2010-05-30 16:39:15Z tpowa $ +# Maintainer: Tobias Powalowski + +pkgname=lensfun +pkgver=0.2.5 +pkgrel=1 +pkgdesc="Database of photographic lenses and a library that allows advanced access to the database" +arch=(i686 x86_64) +url="http://lensfun.berlios.de/" +license=('LGPL3') +depends=('glibc' 'glib2') +makedepends=('python' 'libpng') +source=(http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib || return 1 + make all || return 1 + make INSTALL_PREFIX="$pkgdir" install || return 1 +} +md5sums=('a10438dffae68a5988fc54b0393a3755') diff --git a/extra/lensfun/lensfun-0.2.3-as-needed.patch b/extra/lensfun/lensfun-0.2.3-as-needed.patch new file mode 100644 index 000000000..12287dba2 --- /dev/null +++ b/extra/lensfun/lensfun-0.2.3-as-needed.patch @@ -0,0 +1,13 @@ +diff -ru lensfun-0.2.3.orig/build/mak/compiler/gcc.mak lensfun-0.2.3/build/mak/compiler/gcc.mak +--- lensfun-0.2.3.orig/build/mak/compiler/gcc.mak 2009-03-15 02:42:40.000000000 +0100 ++++ lensfun-0.2.3/build/mak/compiler/gcc.mak 2009-03-15 02:43:37.000000000 +0100 +@@ -71,7 +71,7 @@ + endef + + LINK.GCC.AR = $(GCC.AR) $(GCC.ARFLAGS) $@ $^ +-LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2 ++LINK.GCC.EXEC = $(GCC.LD) $(LDFLAGS) $^ $2 $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $(GCC.LDFLAGS) $1 -o $@ + define LINK.GCC.SO + $(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(basename $(basename $(SHARED.$3)))" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2 + ln -fs $(notdir $@.$(SHARED.$3)) $@.$(basename $(basename $(SHARED.$3))) +Only in lensfun-0.2.3/out/posix/release: deps diff --git a/extra/lensfun/lensfun-0.2.3-glibc-2.10.patch b/extra/lensfun/lensfun-0.2.3-glibc-2.10.patch new file mode 100644 index 000000000..41a29563a --- /dev/null +++ b/extra/lensfun/lensfun-0.2.3-glibc-2.10.patch @@ -0,0 +1,11 @@ +--- lensfun-0.2.3.orig/tools/makedep/cppsetup.cpp 2009-07-04 21:20:49.000000000 +0200 ++++ lensfun-0.2.3/tools/makedep/cppsetup.cpp 2009-07-04 22:19:18.000000000 +0200 +@@ -195,7 +195,7 @@ + } + while (s); + +- eol = strchr (var, 0); ++ eol = (char *)strchr (var, 0); + + // Skip parentheses which Microsoft likes so much + if (*var == '(') -- cgit v1.2.3-54-g00ecf