wok-next view openttd/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 0fcf48f89432
children 9d604775ef23
line source
1 # SliTaz package receipt.
3 PACKAGE="openttd"
4 VERSION="1.7.1"
5 CATEGORY="games"
6 SHORT_DESC="OpenTTD is a clone of Transport Tycoon Deluxe."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
10 WEB_SITE="http://www.openttd.org"
11 WGET_URL="http://us.binaries.openttd.org/binaries/releases/$VERSION/$TARBALL"
13 DEPENDS="libsdl lzo zlib libpng16 icu"
14 BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng16-dev xz-dev icu-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --prefix-dir=/usr \
21 --binary-dir=/usr/games \
22 --man-dir=/usr/share/man \
23 --enable-strip \
24 --with-zlib \
25 --with-liblzo2 \
26 --with-png \
27 --with-sdl \
28 --without-freetype \
29 $CONFIGURE_ARGS &&
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games
37 cp -a $src/bin/openttd $fs/usr/games
38 cp -a $src/bin/*/ $fs/usr/share/games/openttd
39 cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps
40 cp $src/media/$PACKAGE.desktop $fs/usr/share/applications
41 }