wok-4.x annotate openttd/receipt @ rev 10630
linux-libre: should build now
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 22:55:44 2011 +0200 (2011-05-26) |
parents | 8a6f547599c0 |
children |
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." |
gokhlayeh@8064 | 7 DEPENDS="libsdl lzo zlib libpng icu" |
pascal@10590 | 8 BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng-dev liblzma-dev" |
devl547@6024 | 9 MAINTAINER="devl547@gmail.com" |
slaxemulator@10548 | 10 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
devl547@6024 | 11 WEB_SITE="http://www.openttd.org" |
devl547@6024 | 12 WGET_URL="http://us.binaries.openttd.org/binaries/releases/$VERSION/$TARBALL" |
devl547@6024 | 13 |
devl547@6024 | 14 # Rules to configure and make the package. |
devl547@6024 | 15 compile_rules() |
devl547@6024 | 16 { |
devl547@6024 | 17 cd $src |
devl547@6024 | 18 ./configure \ |
devl547@6024 | 19 --prefix-dir=/usr \ |
devl547@6024 | 20 --binary-dir=/usr/games \ |
devl547@6024 | 21 --man-dir=/usr/share/man \ |
devl547@6024 | 22 --enable-strip \ |
devl547@6024 | 23 --with-zlib \ |
devl547@6024 | 24 --with-liblzo2 \ |
devl547@6024 | 25 --with-png \ |
devl547@6024 | 26 --with-sdl \ |
devl547@6024 | 27 --without-freetype \ |
devl547@6024 | 28 $CONFIGURE_ARGS && |
devl547@6024 | 29 make |
devl547@6024 | 30 } |
devl547@6024 | 31 |
devl547@6024 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@6024 | 33 genpkg_rules() |
devl547@6024 | 34 { |
devl547@6024 | 35 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games |
devl547@6024 | 36 cp -a $src/bin/openttd $fs/usr/games |
devl547@6024 | 37 cp -a $src/bin/ai $fs/usr/share/games/openttd |
devl547@6024 | 38 cp -a $src/bin/data $fs/usr/share/games/openttd |
devl547@6024 | 39 cp -a $src/bin/gm $fs/usr/share/games/openttd |
devl547@6024 | 40 cp -a $src/bin/lang $fs/usr/share/games/openttd |
devl547@6024 | 41 cp -a $src/bin/scripts $fs/usr/share/games/openttd |
devl547@6024 | 42 cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps |
devl547@6024 | 43 cp $src/media/$PACKAGE.desktop $fs/usr/share/applications |
devl547@6024 | 44 } |