wok-current annotate billardgl/receipt @ rev 13606
Up: sylpheed (3.3.0) and clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 10 19:55:12 2012 +0100 (2012-11-10) |
parents | |
children | a2c3b45bfc8b |
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@11217 | 8 SOURCE="BillardGL" |
pascal@11217 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@11217 | 10 WEB_SITE="http://www.billardgl.de/" |
pascal@11217 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11217 | 12 |
pascal@11217 | 13 DEPENDS="libglu-mesa freeglut" |
pascal@11217 | 14 BUILD_DEPENDS="libglu-mesa xorg-libXmu-dev xorg-libXi-dev mesa-dev freeglut-dev" |
pascal@11217 | 15 |
pascal@11217 | 16 # Rules to configure and make the package. |
pascal@11217 | 17 compile_rules() |
pascal@11217 | 18 { |
pascal@11217 | 19 cd $src/src |
pascal@11217 | 20 sed -i 's/stream.h/stream/' bmp.cpp |
pascal@11217 | 21 grep -q namespace bmp.cpp || |
pascal@11217 | 22 sed -i 's/"bmp.h"/"bmp.h"\nusing namespace std;/' bmp.cpp |
pascal@11217 | 23 make || return 1 |
pascal@11217 | 24 mkdir -p $DESTDIR/usr/share/BillardGL $DESTDIR/usr/games |
pascal@11217 | 25 cp $src/src/BillardGL $DESTDIR/usr/games |
pascal@11217 | 26 cp -R $src/src/Texturen $DESTDIR/usr/share/BillardGL |
pascal@11217 | 27 cp -R $src/src/lang $DESTDIR/usr/share/BillardGL |
pascal@11217 | 28 cp -R $src/src/README $DESTDIR/usr/share/BillardGL |
pascal@11217 | 29 } |
pascal@11217 | 30 |
pascal@11217 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11217 | 32 genpkg_rules() |
pascal@11217 | 33 { |
pascal@11217 | 34 cp -a $_pkg/usr $fs |
pascal@11217 | 35 } |
pascal@11217 | 36 |