================================ libexif:source=0.6.17-1 cvc rdiff libexif -1 /weasel.rpath.org@wgl:3-devel/0.6.17-1 ================================ 0.6.17-1 Filip Brcic (brcha@xxxxxxx) Fri Jan 29 23:06:34 2010 Automatic promote by rBuild. libexif-0.6.17.tar.bz2: new libexif.recipe: new --- /dev/null +++ libexif.recipe @@ -0,0 +38 @@ +# +# Copyright (c) 2005-2007 rPath, Inc. +# This file is distributed under the terms of the MIT license +# A copy is available at http://www.rpath.com/permanent/mit-license.html +# + +class Libexif(AutoPackageRecipe): + name = 'libexif' + version = '0.6.17' + + buildRequires = [ + 'gettext:runtime', 'intltool:runtime', + ] + + def unpack(r): + r.disableParallelMake() + r.addArchive('mirror://sourceforge/%(name)s/') + + r.Replace('^Cflags: -I\$\{includedir\}', + 'Cflags: -I${includedir}/libexif -I${includedir}', + 'libexif.pc.in') + + r.Run("sed -i 's/^install-data-local/@HAVE_DOXYGEN_TRUE@&/' doc/Makefile.in") + + if Arch.x86_64: + # First build 32bit version + macros32 = r.macros.copy() + macros32.cc = '"gcc -m32"' + macros32.cxx = '"g++ -m32"' + macros32.libdir = '%(prefix)s/lib' + + r.Run('cp -a %(builddir)s %(builddir)s/../32bit') + + r.Configure(dir='../32bit', overrideMacros=macros32) + r.Make(dir='../32bit', overrideMacros=macros32) + r.MakeInstall(dir='../32bit', overrideMacros=macros32) + + r.NormalizePkgConfig(exceptions='.*') Committed by: brcha