wok annotate mesa-demos/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (2022-05-20)
parents 89c8d8b6cf48
children
rev   line source
pankso@4421 1 # SliTaz package receipt.
pankso@4421 2
pankso@4421 3 PACKAGE="mesa-demos"
gokhlayeh@6993 4 VERSION="8.0.1"
pankso@4421 5 CATEGORY="development"
pankso@4421 6 SHORT_DESC="Mesa GLX demos progs."
pankso@4421 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15610 8 LICENSE="MIT"
pascal@20669 9 WEB_SITE="https://www.mesa3d.org/"
gokhlayeh@6993 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@6993 11 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"
gokhlayeh@6993 12
pascal@13796 13 DEPENDS="glew"
pascal@13810 14 BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libegl-mesa pkg-config udev-dev"
pascal@13796 15
pascal@24476 16 # What is the latest version available today?
pascal@24476 17 current_version()
pascal@24476 18 {
pascal@24614 19 wget -O - 'https://gitlab.freedesktop.org/mesa/demos/-/tags?sort=updated_desc' 2>/dev/null | \
pascal@24614 20 sed '/item-title/!d;s|.*">[a-z-]*||;s|<.*||;q'
pascal@24476 21 }
pascal@24476 22
gokhlayeh@6993 23 # Rules to configure and make the package.
gokhlayeh@6993 24 compile_rules()
gokhlayeh@6993 25 {
gokhlayeh@6993 26 cd $src
pascal@12761 27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
gokhlayeh@6993 29 ./configure \
gokhlayeh@6993 30 --prefix=/usr \
gokhlayeh@6993 31 $CONFIGURE_ARGS &&
gokhlayeh@6993 32 make &&
pascal@13796 33 make DESTDIR=$DESTDIR install
gokhlayeh@6993 34 }
pankso@4421 35
pankso@4421 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4421 37 genpkg_rules()
pankso@4421 38 {
pankso@4421 39 mkdir -p $fs/usr/bin
pascal@13796 40 cp $install/usr/bin/glxinfo $fs/usr/bin
pascal@13796 41 cp $install/usr/bin/glxgears $fs/usr/bin
pankso@4421 42 }