wok-current annotate freeglut/receipt @ rev 13581

Autofs: copy content to proper paths
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Nov 06 01:33:15 2012 -0200 (2012-11-06)
parents d1768332cee0
children 54f2cf52f89e
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"
slaxemulator@6970 8 DEPENDS="glibc-base libdrm mesa \
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"
slaxemulator@9475 12 BUILD_DEPENDS="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 {
pascal@12653 21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@12653 22 export LDFLAGS="-Wl,--copy-dt-needed-entries"
pascal@12653 23
rcx@3701 24 if [ ! -d $src ] ; then mv $PACKAGE-2.6.0 $src ; fi
rcx@3701 25
wcnagel@1054 26 cd $src
slaxemulator@6334 27 # fixes an issue with the radeon[hd] ATI opensource drivers
slaxemulator@6334 28 # ref: http://bugs.gentoo.org/show_bug.cgi?id=295163
slaxemulator@9700 29 patch -p0 -i $stuff/2.6.0-GFX_radeon.patch
rcx@3701 30 # sed -i 's/-Werror//' configure
rcx@3701 31 ./configure \
rcx@3701 32 --prefix=/usr \
rcx@3701 33 $CONFIGURE_ARGS &&
rcx@3701 34 # sed -i '/XF86VMODE/d' config.status
rcx@3701 35 make &&
wcnagel@1054 36 make DESTDIR=$src/_pkg install
wcnagel@1054 37 }
wcnagel@1054 38
wcnagel@1054 39 # Rules to gen a SliTaz package suitable for Tazpkg.
wcnagel@1054 40 genpkg_rules()
wcnagel@1054 41 {
wcnagel@1054 42 mkdir -p $fs/usr/lib
wcnagel@1054 43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
wcnagel@1054 44 }