wok view billardgl/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (11 months ago) |
parents | 69e1e705f038 |
children |
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }