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

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents a23978bfa665
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-demos"
4 VERSION="8.4.0"
5 CATEGORY="development"
6 SHORT_DESC="Mesa GLX demos progs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.mesa3d.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"
13 DEPENDS="glew"
14 BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libglu-mesa-dev \
15 libglw-mesa-dev libegl-mesa pkg-config udev-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - 'https://gitlab.freedesktop.org/mesa/demos/-/tags?sort=updated_desc' 2>/dev/null | \
21 sed '/item-title/!d;s|.*">[a-z-]*||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 cp $install/usr/bin/glxinfo $fs/usr/bin
42 cp $install/usr/bin/glxgears $fs/usr/bin
43 }