================================ SDL:source=1.2.13-1 cvc rdiff SDL -1 /weasel.rpath.org@wgl:3-devel/1.2.13-1 ================================ 1.2.13-1 Filip Brcic (brcha@xxxxxxx) Sun Jan 17 12:45:52 2010 Automatic promote by rBuild. SDL.recipe: new --- /dev/null +++ SDL.recipe @@ -0,0 +53 @@ +# +# Copyright (c) 2004-2008 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 SDL(AutoPackageRecipe): + name = 'SDL' + version = '1.2.13' + + buildRequires = [ 'nasm:runtime', 'alsa-lib:devel', + 'glibc:devel[!bootstrap]', 'glib:devel', 'pkg-config:devel', + 'libXt:devel', 'libX11:devel', 'libXrandr:devel', 'libICE:devel', + 'libSM:devel', 'Mesa:devel', 'libusb:devel', 'libXext:devel', + 'libXrender:devel', 'automake:runtime', 'autoconf:runtime' ] + + if Arch.x86_64: + buildRequires.extend(['multiarch_wrapper:runtime']) + + def unpack(r): + r.addArchive('http://www.libsdl.org/release/') + + 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, preConfigure='USE_ARCH=32') + r.Make(dir='../32bit', overrideMacros=macros32, preMake='USE_ARCH=32') + r.MakeInstall(dir='../32bit', overrideMacros=macros32, preMake='USE_ARCH=32') + + r.Move('%(bindir)s/sdl-config', '%(bindir)s/sdl-config-32') + r.ComponentSpec('devel', '%(bindir)s/sdl-config-32') + + r.NormalizePkgConfig(exceptions='.*') + + def configure(r): + r.Run('sed -i "/-laudio/s:/lib:&64:g" configure') + r.Configure('--with-alsa-prefix=%(libdir)s') + + def policy(r): + if Arch.x86_64: + r.Move('%(bindir)s/sdl-config', '%(bindir)s/sdl-config-64') + r.ComponentSpec('devel', '%(bindir)s/sdl-config-64') + r.Symlink('%(bindir)s/multiarch_wrapper', '%(bindir)s/sdl-config') + r.DanglingSymlinks(exceptions='%(bindir)s/sdl-config') + + r.Doc('WhatsNew') + r.Doc('docs/html/*', dir='html') SDL-1.2.13.tar.gz: new Committed by: brcha