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