wok-current annotate warmux/receipt @ rev 21993
updated swig (2.0.4 -> 4.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 16 17:12:53 2019 +0100 (2019-10-16) |
parents | e4fd343fd7b8 |
children | 05c8d8d9d934 |
rev | line source |
---|---|
slaxemulator@8993 | 1 # SliTaz package receipt. |
slaxemulator@8993 | 2 |
slaxemulator@8993 | 3 PACKAGE="warmux" |
slaxemulator@9843 | 4 VERSION="11.04.1" |
slaxemulator@8993 | 5 CATEGORY="games" |
al@16885 | 6 SHORT_DESC="Warmux game" |
slaxemulator@8993 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15363 | 8 LICENSE="GPL2" |
al@16885 | 9 WEB_SITE="http://www.wormux.org/" |
slaxemulator@8993 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@8993 | 11 WGET_URL="http://download.gna.org/warmux/$TARBALL" |
slaxemulator@8993 | 12 PROVIDE="wormux" |
al@16885 | 13 SUGGESTED="warmux-music" |
slaxemulator@8993 | 14 |
slaxemulator@9843 | 15 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \ |
al@16885 | 16 curl freetype libxml2 libxml++ gcc-lib-base gettext-base" |
pascal@10611 | 17 BUILD_DEPENDS="libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev \ |
pascal@10611 | 18 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \ |
pascal@10611 | 19 pkg-config" |
slaxemulator@9843 | 20 |
slaxemulator@8993 | 21 # Rules to configure and make the package. |
slaxemulator@8993 | 22 compile_rules() |
slaxemulator@8993 | 23 { |
al@16885 | 24 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in |
slaxemulator@8993 | 25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp |
slaxemulator@8993 | 26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile* |
pascal@21881 | 27 sed -i 's|SDLNet_Read32(buffer|SDLNet_Read32(const_cast<char*>(buffer)|' \ |
pascal@21881 | 28 lib/warmux/action/action.cpp |
slaxemulator@8993 | 29 mkdir -p $DESTDIR/usr/share/warmux |
al@16885 | 30 |
slaxemulator@8993 | 31 ./configure \ |
slaxemulator@8993 | 32 --bindir=/usr/games \ |
slaxemulator@10066 | 33 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \ |
slaxemulator@10066 | 34 $CONFIGURE_ARGS && |
slaxemulator@8993 | 35 make && |
slaxemulator@8993 | 36 make -j1 install |
slaxemulator@8993 | 37 } |
slaxemulator@8993 | 38 |
slaxemulator@8993 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8993 | 40 genpkg_rules() |
slaxemulator@8993 | 41 { |
slaxemulator@8993 | 42 mkdir -p $fs/usr/share |
pascal@15363 | 43 cp -a $install/usr/games $fs/usr |
pascal@15363 | 44 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15363 | 45 cp -a $install/usr/share/warmux $fs/usr/share |
al@16885 | 46 |
slaxemulator@8993 | 47 # Remove unecessary files |
slaxemulator@8993 | 48 rm -rf $fs/usr/share/warmux/font |
slaxemulator@8993 | 49 rm -rf $fs/usr/share/warmux/music |
slaxemulator@8993 | 50 #rm -rf $fs/usr/share/warmux/sound |
slaxemulator@8993 | 51 } |