wok-6.x annotate openttd/receipt @ rev 17474

syslinux/iso2exe: use always mkfloppy in init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 27 18:25:05 2014 +0100 (2014-12-27)
parents 2d7fa39f074e
children eccaeaf682e4
rev   line source
devl547@6024 1 # SliTaz package receipt.
devl547@6024 2
devl547@6024 3 PACKAGE="openttd"
slaxemulator@10224 4 VERSION="1.1.0"
devl547@6024 5 CATEGORY="games"
devl547@6024 6 SHORT_DESC="OpenTTD is a clone of Transport Tycoon Deluxe."
devl547@6024 7 MAINTAINER="devl547@gmail.com"
pascal@15590 8 LICENSE="GPL2"
slaxemulator@10548 9 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
devl547@6024 10 WEB_SITE="http://www.openttd.org"
devl547@6024 11 WGET_URL="http://us.binaries.openttd.org/binaries/releases/$VERSION/$TARBALL"
devl547@6024 12
pascal@15590 13 DEPENDS="libsdl lzo zlib libpng icu"
pascal@15590 14 BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng-dev liblzma-dev"
pascal@15590 15
devl547@6024 16 # Rules to configure and make the package.
devl547@6024 17 compile_rules()
devl547@6024 18 {
devl547@6024 19 cd $src
devl547@6024 20 ./configure \
devl547@6024 21 --prefix-dir=/usr \
devl547@6024 22 --binary-dir=/usr/games \
devl547@6024 23 --man-dir=/usr/share/man \
devl547@6024 24 --enable-strip \
devl547@6024 25 --with-zlib \
devl547@6024 26 --with-liblzo2 \
devl547@6024 27 --with-png \
devl547@6024 28 --with-sdl \
devl547@6024 29 --without-freetype \
devl547@6024 30 $CONFIGURE_ARGS &&
devl547@6024 31 make
devl547@6024 32 }
devl547@6024 33
devl547@6024 34 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@6024 35 genpkg_rules()
devl547@6024 36 {
devl547@6024 37 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games
devl547@6024 38 cp -a $src/bin/openttd $fs/usr/games
devl547@6024 39 cp -a $src/bin/ai $fs/usr/share/games/openttd
devl547@6024 40 cp -a $src/bin/data $fs/usr/share/games/openttd
devl547@6024 41 cp -a $src/bin/gm $fs/usr/share/games/openttd
devl547@6024 42 cp -a $src/bin/lang $fs/usr/share/games/openttd
devl547@6024 43 cp -a $src/bin/scripts $fs/usr/share/games/openttd
devl547@6024 44 cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps
devl547@6024 45 cp $src/media/$PACKAGE.desktop $fs/usr/share/applications
devl547@6024 46 }