wok-next view billardgl/receipt @ rev 20956
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 05 00:08:37 2018 +0300 (2018-09-05) |
parents | c0521c689857 |
children | d5aab818505e |
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="glu freeglut"
15 BUILD_DEPENDS="glu xorg-libXmu-dev xorg-libXi-dev mesa-dev \
16 glu-dev freeglut-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 sed -i 's/stream.h/stream/' bmp.cpp
23 grep -q namespace bmp.cpp ||
24 sed -i 's/"bmp.h"/"bmp.h"\nusing namespace std;/' bmp.cpp
25 make || return 1
26 mkdir -p $DESTDIR/usr/share/BillardGL $DESTDIR/usr/games
27 cp $src/src/BillardGL $DESTDIR/usr/games
28 cp -R $src/src/Texturen $DESTDIR/usr/share/BillardGL
29 cp -R $src/src/lang $DESTDIR/usr/share/BillardGL
30 cp -R $src/src/README $DESTDIR/usr/share/BillardGL
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }