wok-4.x annotate freeglut/receipt @ rev 6334

Up: freeglut to 2.6.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Sep 18 20:29:53 2010 +0000 (2010-09-18)
parents 19dad1e8892c
children 07e6c84aad04
rev   line source
wcnagel@1054 1 # SliTaz package receipt.
wcnagel@1054 2
wcnagel@1054 3 PACKAGE="freeglut"
slaxemulator@6334 4 VERSION="2.6.0"
pascal@1423 5 CATEGORY="x-window"
wcnagel@1054 6 SHORT_DESC="OpenGL utility toolkit."
b1+slitaz@1802 7 MAINTAINER="b1+slitaz@nagel.org"
rcx@3701 8 DEPENDS="glibc-base libdrm libgl \
rcx@3696 9 xorg-libX11 xorg-libXau xorg-libXdamage xorg-libXdmcp \
jozee@5018 10 xorg-libXext xorg-libXi xorg-libXfixes xorg-libXxf86vm"
jozee@5018 11 SUGGESTED="nvidia"
rcx@3701 12 BUILD_DEPENDS="slitaz-toolchain mesa-dev mesa xorg-inputproto \
slaxemulator@6334 13 xorg-xproto xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev xorg-libXdmcp-dev xorg-libXext-dev xorg-libXi-dev xorg-libXfixes-dev xorg-libXxf86vm-dev libxcb-dev"
rcx@3696 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
wcnagel@1054 15 WEB_SITE="http://freeglut.sourceforge.net/"
rcx@3696 16 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
wcnagel@1054 17
wcnagel@1054 18 # Rules to configure and make the package.
wcnagel@1054 19 compile_rules()
wcnagel@1054 20 {
rcx@3701 21 if [ ! -d $src ] ; then mv $PACKAGE-2.6.0 $src ; fi
rcx@3701 22
wcnagel@1054 23 cd $src
slaxemulator@6334 24 # fixes an issue with the radeon[hd] ATI opensource drivers
slaxemulator@6334 25 # ref: http://bugs.gentoo.org/show_bug.cgi?id=295163
slaxemulator@6334 26 patch -p0 -i ../stuff/2.6.0-GFX_radeon.patch
rcx@3701 27 # sed -i 's/-Werror//' configure
rcx@3701 28 ./configure \
rcx@3701 29 --prefix=/usr \
rcx@3701 30 $CONFIGURE_ARGS &&
rcx@3701 31 # sed -i '/XF86VMODE/d' config.status
rcx@3701 32 make &&
wcnagel@1054 33 make DESTDIR=$src/_pkg install
wcnagel@1054 34 }
wcnagel@1054 35
wcnagel@1054 36 # Rules to gen a SliTaz package suitable for Tazpkg.
wcnagel@1054 37 genpkg_rules()
wcnagel@1054 38 {
wcnagel@1054 39 mkdir -p $fs/usr/lib
wcnagel@1054 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
wcnagel@1054 41 strip -s $fs/usr/lib/*
wcnagel@1054 42 }