================================ jasper:source=1.900.1-1 cvc rdiff jasper -1 /weasel.rpath.org@wgl:3-devel/1.900.1-1 ================================ 1.900.1-1 Filip Brcic (brcha@xxxxxxx) Sat Jan 9 14:40:32 2010 Automatic promote by rBuild. jasper-1.900.1.zip: new jasper.recipe: new --- /dev/null +++ jasper.recipe @@ -0,0 +42 @@ +# +# Copyright (c) 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 Jasper(AutoPackageRecipe): + name = 'jasper' + version = '1.900.1' + + buildRequires = [ + 'libjpeg:devel', 'libstdc++:devel', 'unzip:runtime', 'Mesa:devel', 'libICE:devel', + 'libSM:devel', 'libX11:devel', 'libXext:devel', 'libXi:devel', 'libXmu:devel', + 'libXt:devel', + ] + + def unpack(r): + r.addArchive('http://www.ece.uvic.ca/~mdadams/jasper/software/') + + # Install docs and images + r.Move('doc/*', '%(thisdocdir)s/pdf/') + r.Move('data/*', '%(thisdocdir)s/') + + # We don't build jiv, which depends on freeglut, + # so do not install the jiv man page either + r.Replace('jiv.1', '', 'src/appl/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.Configure('--enable-shared', objDir='build32', overrideMacros=macros32) + r.Make(dir='build32', overrideMacros=macros32) + r.MakeInstall(dir='build32', overrideMacros=macros32) + + r.NormalizePkgConfig(exceptions='.*') + + def configure(r): + r.Configure('--enable-shared') Committed by: brcha