wok-6.x annotate openttd/receipt @ rev 8006
Up: file to 5.05.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 18 15:37:33 2011 +0000 (2011-01-18) |
parents | c9b78a2b9690 |
children | 87a2b5ab272f |
rev | line source |
---|---|
devl547@6024 | 1 # SliTaz package receipt. |
devl547@6024 | 2 |
devl547@6024 | 3 PACKAGE="openttd" |
slaxemulator@7512 | 4 VERSION="1.0.5" |
devl547@6024 | 5 CATEGORY="games" |
devl547@6024 | 6 SHORT_DESC="OpenTTD is a clone of Transport Tycoon Deluxe." |
devl547@6024 | 7 DEPENDS="libsdl lzo zlib libpng" |
devl547@6024 | 8 BUILD_DEPENDS="libsdl libsdl-dev lzo-dev zlib-dev libpng-dev" |
devl547@6024 | 9 MAINTAINER="devl547@gmail.com" |
devl547@6024 | 10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" |
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 } |