diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-02-20 22:38:07 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-02-20 22:38:07 +0000 |
commit | f05fe9cdc83de4e683b510eecee5d508dbf9f8bf (patch) | |
tree | bf198a01a60b5ce7403d8b451994897159730777 /packages/openttd/openttd.inc | |
parent | d523b7b1febdde47a21f5908a78fe7dd222bd3e4 (diff) |
openttd: Various changes.
- added include recipe
- added recipe for new version 0.6.0-beta4
- fixed dependencies
Diffstat (limited to 'packages/openttd/openttd.inc')
-rw-r--r-- | packages/openttd/openttd.inc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/openttd/openttd.inc b/packages/openttd/openttd.inc new file mode 100644 index 0000000000..4c4c009296 --- /dev/null +++ b/packages/openttd/openttd.inc @@ -0,0 +1,46 @@ +# Note: OpenTTD's build system changed considerably in 0.6.x +# This include file is written towards the newer versions. + +DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition." +HOMEPAGE = "http://openttd.sf.net" +LICENSE = "GPLv2" + +DEPENDS = "libsdl-net libpng zlib freetype fontconfig" + +SRC_URI = "${SOURCEFORGE_MIRROR}/openttd/openttd-${PV}-source.tar.bz2" + +APPIMAGE = "media/openttd.48.png" + +inherit siteinfo sdl + +do_configure() { + # The way the OTTD configure system handles the application's directories + # isn't the way autotools does it. Mainly prefix is always prepended even if + # absolute binary-dir and data-dir is given. Sigh ... + + # Disabling MIDI feature for now. + ./configure \ + --build=${BUILD_SYS} \ + --host=${TARGET_SYS} \ + --windres=${MACHINE_DISPLAY_WIDTH_PIXELS}x${MACHINE_DISPLAY_HEIGHT_PIXELS} \ + --os=UNIX \ + --endian=${SITEINFO_ENDIANESS} \ + --prefix-dir=${prefix} \ + --binary-dir=bin \ + --with-midi=/bin/true \ + --with-zlib \ + --with-png \ + --with-freetype \ + --cc-build=gcc \ + --cc-host=${TARGET_SYS}-gcc \ + --cxx-build=g++ \ + --cxx-host=${TARGET_SYS}-g++ \ + --strip=${TARGET_SYS}-strip \ + --install-dir=${D} +} + +do_install() { + oe_runmake install +} + +FILES_${PN} += "${datadir}/*" |