wok-current annotate billardgl/receipt @ rev 25557

Up bzip3 (1.3.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 23 16:03:47 2023 +0000 (20 months ago)
parents ad0bc3efbf37
children
rev   line source
pascal@11217 1 # SliTaz package receipt.
pascal@11217 2
pascal@11217 3 PACKAGE="billardgl"
pascal@11217 4 VERSION="1.75"
pascal@11217 5 CATEGORY="games"
pascal@11217 6 SHORT_DESC="OpenGL billard game."
pascal@11217 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
pascal@11217 9 SOURCE="BillardGL"
pascal@11217 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@25510 11 WEB_SITE="https://sourceforge.net/projects/billardgl/"
pascal@11217 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11217 13
pascal@11217 14 DEPENDS="libglu-mesa freeglut"
pascal@13794 15 BUILD_DEPENDS="libglu-mesa xorg-libXmu-dev xorg-libXi-dev mesa-dev \
pascal@13794 16 libglu-mesa-dev freeglut-dev"
pascal@11217 17
pascal@24340 18 # What is the latest version available today?
pascal@24340 19 current_version()
pascal@24340 20 {
pascal@24340 21 wget -O - https://sourceforge.net/projects/billardgl/files/billardgl/ 2>/dev/null | \
pascal@24340 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 23 sed '/scope="row/!d;s|.*/BillardGL-||;s|.tar.*||;q'
pascal@24340 24 }
pascal@24340 25
pascal@11217 26 # Rules to configure and make the package.
pascal@11217 27 compile_rules()
pascal@11217 28 {
pascal@11217 29 cd $src/src
pascal@11217 30 sed -i 's/stream.h/stream/' bmp.cpp
pascal@11217 31 grep -q namespace bmp.cpp ||
pascal@11217 32 sed -i 's/"bmp.h"/"bmp.h"\nusing namespace std;/' bmp.cpp
pascal@11217 33 make || return 1
pascal@11217 34 mkdir -p $DESTDIR/usr/share/BillardGL $DESTDIR/usr/games
pascal@11217 35 cp $src/src/BillardGL $DESTDIR/usr/games
pascal@11217 36 cp -R $src/src/Texturen $DESTDIR/usr/share/BillardGL
pascal@11217 37 cp -R $src/src/lang $DESTDIR/usr/share/BillardGL
pascal@11217 38 cp -R $src/src/README $DESTDIR/usr/share/BillardGL
pascal@11217 39 }
pascal@11217 40
pascal@11217 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11217 42 genpkg_rules()
pascal@11217 43 {
pascal@15579 44 cp -a $install/usr $fs
pascal@11217 45 }
pascal@11217 46