wok-current view mesa-demos/receipt @ rev 12761

mesa-demos: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 12 12:04:07 2012 +0200 (2012-05-12)
parents 004e1a25e1a3
children 6b09507225ec
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-demos"
4 VERSION="8.0.1"
5 CATEGORY="development"
6 SHORT_DESC="Mesa GLX demos progs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="glew"
9 BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libegl-mesa pkg-config"
10 WEB_SITE="http://www.mesa3d.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
19 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
20 ./configure \
21 --prefix=/usr \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp $_pkg/usr/bin/glxinfo $fs/usr/bin
32 cp $_pkg/usr/bin/glxgears $fs/usr/bin
33 }