================================ libogg:source=1.1.4-1 cvc rdiff libogg -1 /weasel.rpath.org@wgl:3-devel/1.1.4-1 ================================ 1.1.4-1 Filip Brcic (brcha@xxxxxxx) Wed Jan 13 11:47:47 2010 Automatic promote by rBuild. libogg.recipe: new --- /dev/null +++ libogg.recipe @@ -0,0 +37 @@ +# +# Copyright (c) 2004-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 Libogg(AutoPackageRecipe): + name = 'libogg' + version = '1.1.4' + + def unpack(r): + r.addArchive('http://downloads.xiph.org/releases/ogg/') + + r.Replace((r'-L\$prefix/lib', r'-L$libdir'), + (r'OGG_CFLAGS="-I\$prefix/include"', r'OGG_CFLAGS=""'), + 'ogg.m4') + r.Replace(('-O20', '%(cflags)s'), + ('-ffast-math', ''), + 'configure') + + 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='.*') + + def policy(r): + r.Doc('doc/*.{html,txt,png}') libogg-1.1.4.tar.gz: new Committed by: brcha