wok-next view openttd/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openttd"
4 VERSION="1.7.1"
5 CATEGORY="games"
6 SHORT_DESC="Clone of Transport Tycoon Deluxe"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.openttd.org/en/"
11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
12 WGET_URL="http://us.binaries.openttd.org/binaries/releases/$VERSION/$TARBALL"
14 BUILD_DEPENDS="sdl-dev lzo-dev zlib-dev libpng-dev xz-dev icu-dev"
16 compile_rules() {
17 ./configure \
18 --prefix-dir=/usr \
19 --binary-dir=/usr/games \
20 --man-dir=/usr/share/man \
21 --enable-strip \
22 --with-zlib \
23 --with-liblzo2 \
24 --with-png \
25 --with-sdl \
26 --without-freetype \
27 $CONFIGURE_ARGS &&
28 make || return 1
30 mkdir -p \
31 $install/usr/share/pixmaps \
32 $install/usr/share/applications \
33 $install/usr/share/games/openttd \
34 $install/usr/games
35 cp -a $src/bin/openttd $install/usr/games
36 cp -a $src/bin/*/ $install/usr/share/games/openttd
37 cp $src/media/$PACKAGE.32.png $install/usr/share/pixmaps
38 cp $src/media/$PACKAGE.desktop $install/usr/share/applications
39 }
41 genpkg_rules() {
42 copy @std
43 DEPENDS="sdl lzo zlib libpng icu"
44 }