wok-next view warmux/receipt @ rev 21212
updated barnyard2 (1.9 -> 2.1.13)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 02 17:16:10 2019 +0100 (2019-12-02) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="warmux"
4 VERSION="11.04.1"
5 CATEGORY="games"
6 SHORT_DESC="Warmux game"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.wormux.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://download.gna.org/warmux/$TARBALL"
13 BUILD_DEPENDS="sdl-dev sdl-gfx-dev sdl-image-dev sdl-mixer-dev \
14 sdl-net-dev sdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev"
15 SPLIT="$PACKAGE-music"
17 compile_rules() {
18 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/' data/Makefile.in
19 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
20 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
21 mkdir -p $install/usr/share/warmux
23 ./configure \
24 --bindir=/usr/games \
25 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
26 $CONFIGURE_ARGS &&
27 make &&
28 make -j1 install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 warmux)
34 PROVIDE="wormux"
35 SUGGESTED="warmux-music"
36 DEPENDS="sdl-gfx sdl-image sdl-mixer sdl-net \
37 sdl-ttf curl freetype libxml2 libxml++ gcc-lib-base \
38 gettext-base"
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/games $fs/usr
41 cp -a $install/usr/share/pixmaps $fs/usr/share
42 cp -a $install/usr/share/warmux $fs/usr/share
44 # Remove unecessary files
45 rm -rf $fs/usr/share/warmux/font
46 rm -rf $fs/usr/share/warmux/music
47 #rm -rf $fs/usr/share/warmux/sound
48 ;;
49 *-music)
50 CAT="games|game music (~35Mb)"
51 DEPENDS="warmux"
52 mkdir -p $fs/usr/share/warmux
53 cp -a $install/usr/share/warmux/music $fs/usr/share/warmux
54 ;;
55 esac
56 }