Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / recipes / openttd / openttd.inc
1 # Note: OpenTTD's build system changed considerably in 0.6.x
2 # This include file is written towards the newer versions.
3
4 DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition. \
5 This package provides the engine only.  You will need to get the data file elsewhere \
6 through official channels."
7 HOMEPAGE = "http://openttd.sf.net"
8 LICENSE = "GPLv2"
9
10 DEPENDS = "libsdl-net libpng zlib freetype fontconfig"
11
12 SRC_URI = "http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2"
13
14 APPIMAGE = "media/openttd.48.png"
15
16 inherit siteinfo sdl
17
18 do_configure() {
19         # The way the OTTD configure system handles the application's directories
20   # isn't the way autotools does it. Mainly prefix is always prepended even if
21   # absolute binary-dir and data-dir is given. Sigh ...
22
23         # Disabling MIDI feature for now.
24   ./configure \
25     --build=${BUILD_SYS} \
26     --host=${TARGET_SYS} \
27     --windres=${MACHINE_DISPLAY_WIDTH_PIXELS}x${MACHINE_DISPLAY_HEIGHT_PIXELS} \
28     --os=UNIX \
29     --endian=${SITEINFO_ENDIANESS} \
30     --prefix-dir=${prefix} \
31     --binary-dir=bin \
32     --with-midi=/bin/true \
33     --with-zlib=${STAGING_LIBDIR} \
34     --with-png \
35     --with-freetype \
36     --cc-build=gcc \
37     --cc-host=${TARGET_SYS}-gcc \
38     --cxx-build=g++ \
39     --cxx-host=${TARGET_SYS}-g++ \
40     --strip=${TARGET_SYS}-strip \
41     --install-dir=${D}
42 }
43
44 do_install() {
45     oe_runmake install
46 }
47
48 FILES_${PN} += "${datadir}/*"