[weasel-commit] Source: lensfun=0.2.4-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Wed, 09 Jun 2010 22:39:04 -0400

================================
lensfun:source=0.2.4-1
cvc rdiff lensfun -1 /weasel.rpath.org@wgl:3-devel/0.2.4-1
================================
0.2.4-1 Filip Brcic (brcha@xxxxxxxxxxxx) Wed Jun  9 22:38:40 2010
    lensfun 0.2.4

lensfun-0.2.3-glibc-2.10.patch: new
--- /dev/null
+++ lensfun-0.2.3-glibc-2.10.patch
@@ -0,0 +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 == '(')

lensfun.recipe: new
--- /dev/null
+++ lensfun.recipe
@@ -0,0 +56 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Lensfun(AutoPackageRecipe):
+    name = 'lensfun'
+    version = '0.2.4'
+
+    buildRequires = [
+        'glib:devel', 'libpng:devel', 'pkg-config:devel',
+        'libstdc++:devel', 'gcc-c++:runtime',
+        ]
+
+    if Use.builddocs:
+        buildRequires.extend(['doxygen:runtime'])
+
+    shortDesc  = 'A library for rectifying and simulating photographic lens 
distortions'
+    longDesc   = """
+Digital photographs are not ideal. Of course, the better is your
+camera, the better the results will be, but in any case if you look
+carefully at shots taken even by the most expensive cameras equipped
+with the most expensive lenses you will see various artifacts. It is
+very hard to make ideal cameras, because there are a lot of factors
+that affect the final image quality, and at some point camera and lens
+designers have to trade one factor for another to achieve the optimal
+image quality, within the given design restrictions and budget. But we
+all want ideal shots, don't we? :) So that's what's lensfun is all
+about - rectifying the defects introduced by your photographic
+equipment.
+"""
+    url        = 'http://lensfun.berlios.de/'
+    licenses   = [ 'LGPL-3' ]
+    categories = [ 'Media/Libraries' ]
+
+    def unpack(r):
+        r.addArchive('mirror://berlios/lensfun/')
+
+        r.addPatch('lensfun-0.2.3-as-needed.patch')
+        r.addPatch('lensfun-0.2.3-glibc-2.10.patch')
+
+        # disable stripping, remove ricer CFLAGS
+        r.Replace(('-s -O3 -fomit-frame-pointer -funroll-loops', ''),
+                  ('GCC.LDFLAGS.release = -s', 'GCC.LDFLAGS.release ='),
+                  'build/mak/compiler/gcc.mak')
+
+    def configure(r):
+        r.ManualConfigure(
+            ' --prefix=%(prefix)s'
+            )
+
+    def make(r):
+        r.Make(
+            ' all V=1'
+            )
+        

lensfun-0.2.3-as-needed.patch: new
--- /dev/null
+++ lensfun-0.2.3-as-needed.patch
@@ -0,0 +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

lensfun-0.2.4.tar.bz2: new

Committed by: brcha

Other related posts: