wok-next view billardgl/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | a3c581bf52b8 |
children | 5669e8b3be70 |
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 WEB_SITE="https://sourceforge.net/projects/billardgl/"
11 SOURCE="BillardGL"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="glu xorg-libXmu-dev xorg-libXi-dev mesa-dev glu-dev freeglut-dev"
17 compile_rules() {
18 cd $src/src
19 sed -i 's/stream.h/stream/' bmp.cpp
20 grep -q namespace bmp.cpp ||
21 sed -i 's/"bmp.h"/"bmp.h"\nusing namespace std;/' bmp.cpp
22 make || return 1
23 mkdir -p $install/usr/share/BillardGL $install/usr/games
24 cp $src/src/BillardGL $install/usr/games
25 cp -R $src/src/Texturen $install/usr/share/BillardGL
26 cp -R $src/src/lang $install/usr/share/BillardGL
27 cp -R $src/src/README $install/usr/share/BillardGL
28 }
30 genpkg_rules() {
31 cp -a $install/usr $fs
32 DEPENDS="glu freeglut"
33 }