wok view bzflag/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 5f6c5106b1f5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="bzflag"
4 VERSION="2.4.18"
5 CATEGORY="games"
6 SHORT_DESC="A multiplayer 3D tank battle game."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://bzflag.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="c-ares curl gcc83-lib-base glew libsdl mesa"
15 BUILD_DEPENDS="c-ares-dev curl-dev gcc83 glew-dev libsdl-dev
16 mesa-dev util-linux-uuid-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/bzflag/files/bzflag%20source/ 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|.*/bzflag-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|uname -m|echo i486|' \
30 package/Makefile*
31 # src/other/glew/config/Makefile.linux
33 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ltinfo"
35 ./configure \
36 CC=gcc-83 \
37 CXX=g++-83 \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share/bzflag $fs/usr/share
50 }