fsogsmd: should now depend on msmcomm-specs rather than msmcommd-specs
[openembedded.git] / recipes / openttd / openttd.inc
blobe9bb8c367ea22adda6f02efbef8929e8c01217ed
1 # Note: OpenTTD's build system changed considerably in 0.6.x
2 # This include file is written towards the newer versions.
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"
10 DEPENDS = "libsdl-net libpng zlib freetype fontconfig"
12 SRC_URI = "http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2"
14 APPIMAGE = "media/openttd.48.png"
16 inherit siteinfo sdl
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 ...
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_ENDIANNESS} \
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}
44 do_install() {
45     oe_runmake install
48 FILES_${PN} += "${datadir}/*"