wok annotate bzflag/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | 1d9e2a91579d |
children | 6b33f9da53d4 |
rev | line source |
---|---|
slaxemulator@7693 | 1 # SliTaz package receipt. |
slaxemulator@7693 | 2 |
slaxemulator@7693 | 3 PACKAGE="bzflag" |
Hans-G?nter@22574 | 4 VERSION="2.4.18" |
slaxemulator@7693 | 5 CATEGORY="games" |
slaxemulator@7693 | 6 SHORT_DESC="A multiplayer 3D tank battle game." |
slaxemulator@7693 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@22574 | 9 WEB_SITE="https://bzflag.org" |
Hans-G?nter@22574 | 10 |
slaxemulator@7693 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@7693 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7693 | 13 |
Hans-G?nter@22574 | 14 DEPENDS="c-ares curl gcc83-lib-base glew libsdl mesa" |
Hans-G?nter@22574 | 15 BUILD_DEPENDS="c-ares-dev curl-dev gcc83 glew-dev libsdl-dev |
Hans-G?nter@22574 | 16 mesa-dev util-linux-uuid-dev" |
pascal@14996 | 17 |
pascal@24340 | 18 # What is the latest version available today? |
pascal@24340 | 19 current_version() |
pascal@24340 | 20 { |
pascal@24340 | 21 wget -O - https://sourceforge.net/projects/bzflag/files/bzflag%20source/ 2>/dev/null | \ |
pascal@24340 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 23 sed '/scope="row/!d;s|.*/bzflag-||;s|.tar.*||;q' |
pascal@24340 | 24 } |
pascal@24340 | 25 |
slaxemulator@7693 | 26 # Rules to configure and make the package. |
slaxemulator@7693 | 27 compile_rules() |
slaxemulator@7693 | 28 { |
Hans-G?nter@22574 | 29 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@22574 | 30 package/Makefile* |
Hans-G?nter@22574 | 31 # src/other/glew/config/Makefile.linux |
Hans-G?nter@22574 | 32 |
pascal@19771 | 33 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ltinfo" |
Hans-G?nter@22574 | 34 |
Hans-G?nter@22574 | 35 ./configure \ |
Hans-G?nter@22574 | 36 CC=gcc-83 \ |
Hans-G?nter@22574 | 37 CXX=g++-83 \ |
slaxemulator@7693 | 38 $CONFIGURE_ARGS && |
Hans-G?nter@22574 | 39 make && |
Hans-G?nter@22574 | 40 make DESTDIR=$DESTDIR install |
slaxemulator@7693 | 41 } |
slaxemulator@7693 | 42 |
slaxemulator@7693 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7693 | 44 genpkg_rules() |
slaxemulator@7693 | 45 { |
slaxemulator@7693 | 46 mkdir -p $fs/usr/share |
Hans-G?nter@22574 | 47 |
Hans-G?nter@22574 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22574 | 49 cp -a $install/usr/share/bzflag $fs/usr/share |
slaxemulator@7693 | 50 } |