wok annotate wormux/receipt @ rev 6847

Fir depends: Xorg proto packages doesn 't depends on Xorg
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Oct 20 12:12:16 2010 +0200 (2010-10-20)
parents 4897058add72
children
rev   line source
pankso@1103 1 # SliTaz package receipt.
pankso@1103 2
pankso@1103 3 PACKAGE="wormux"
slaxemulator@6272 4 VERSION="0.9.2.1"
pankso@1103 5 CATEGORY="games"
pankso@1103 6 SHORT_DESC="Wormux game."
pankso@3079 7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
slaxemulator@6272 8 curl freetype libxml2 libxml++ gcc-lib-base gettext"
pankso@3079 9 BUILD_DEPENDS="$DEPENDS xorg-dev libsdl-gfx-dev libsdl-image-dev \
slaxemulator@6272 10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf-dev curl-dev pkg-config libxml2-dev libxml++-dev"
pankso@3079 11 SUGGESTED="wormux-music"
pankso@1103 12 MAINTAINER="pankso@slitaz.org"
pankso@1103 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@1103 14 WEB_SITE="http://www.wormux.org/"
pankso@1103 15 WGET_URL="http://download.gna.org/wormux/$TARBALL"
pankso@1103 16
pankso@1103 17 # Rules to configure and make the package.
pankso@1103 18 compile_rules()
pankso@1103 19 {
pankso@1103 20 cd $src
slaxemulator@6272 21 #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
slaxemulator@6272 22 # Makefile
erjo@1399 23 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
erjo@1399 24 data/Makefile.in
pascal@1540 25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
pascal@1540 26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
pascal@1540 27 mkdir -p _pkg/usr/share/wormux
pankso@1103 28 ./configure \
pankso@1103 29 --prefix=/usr \
pankso@1103 30 --bindir=/usr/games \
pankso@1103 31 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
erjo@1399 32 $CONFIGURE_ARGS &&
erjo@1399 33 make &&
pankso@1103 34 make DESTDIR=$PWD/_pkg install
pankso@1103 35 }
pankso@1103 36
pankso@1103 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1103 38 genpkg_rules()
pankso@1103 39 {
pankso@1103 40 mkdir -p $fs/usr/share
pankso@1103 41 cp -a $_pkg/usr/games $fs/usr
pankso@3079 42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
pankso@1103 43 cp -a $_pkg/usr/share/wormux $fs/usr/share
pankso@1103 44 # Remove unecessary files
pankso@1103 45 rm -rf $fs/usr/share/wormux/font
pankso@3079 46 rm -rf $fs/usr/share/wormux/music
pankso@3079 47 #rm -rf $fs/usr/share/wormux/sound
pankso@1103 48 }