diff options
-rw-r--r-- | conf/checksums.ini | 12 | ||||
-rw-r--r-- | recipes/openttd/files/openttd.cfg | 4 | ||||
-rw-r--r-- | recipes/openttd/openttd-gfx_0.1.1.bb | 16 | ||||
-rw-r--r-- | recipes/openttd/openttd-sfx_0.1.0.bb | 16 | ||||
-rw-r--r-- | recipes/openttd/openttd_0.7.4-RC1.bb | 49 |
5 files changed, 97 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini index 57551085de..ccb96e2900 100644 --- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -5578,6 +5578,14 @@ sha256=0eac6d12388b3d9ed78684529c1b0d9346fa2abbe406c4d4a3eb5a023c98a484 md5=bbf981a5f4a64e94cc6f2a693f96c21a sha256=8955fad7d9e7aef36f7a82f9577c3ae4901db1ded6ce57aec0d93e39c8899b65 +[http://bundles.openttdcoop.org/download.php?file=opengfx%2Freleases%2Fopengfx-0.1.1.zip] +md5=1f959407f2d4a1ab0e84c2e89438c922 +sha256=c0eefb2dda166f91e1bfb317cf681165029f6f2709fa966d84dc568ffef6a31e + +[http://bundles.openttdcoop.org/download.php?file=opensfx%2Freleases%2Fopensfx-0.1.0.zip] +md5=1a43ee0a2026b7fecfd47c7c7e4b056f +sha256=ea0d90e3e049aec2e0884bc117a46e5fb78411b7e3633b3802d4c5af8f29300c + [ftp://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.13.22.tar.gz] md5=0fc9fffc2c2cfa7107d8f422815078c1 sha256=c33aeb300d93eaeac55927ce81dc6f3a1cf74b3b759b65182c9bfca31b75b98f @@ -20210,6 +20218,10 @@ sha256=56e844da580761ddbb580683fc455a8d9eb3179df631568c26b7188d1ff16363 md5=d05b9ebf67c83f07e8286d0d2b1fc293 sha256=2d60e8a08768a9c81f37e699df6890c12d53f4d56b5562724c3a9ffa302c7197 +[http://binaries.openttd.org/releases/0.7.4-RC1/openttd-0.7.4-RC1-source.tar.bz2] +md5=416a2ec6aa01b322100fb4e2f039f992 +sha256=8f57475e37a7b8544741c563bdc34463ce98e43ed3c1a7543a3fdd35647b8ea1 + [http://downloads.sourceforge.net/openvpn/openvpn-1.5.0.tar.gz] md5=55d7ce958bb2ccf3d3204d1350c27179 sha256=d34d0a1a29de12cbb4fc6f8d80eced7b674ee3574e3df3d678fb0467283f7826 diff --git a/recipes/openttd/files/openttd.cfg b/recipes/openttd/files/openttd.cfg new file mode 100644 index 0000000000..614ce1e539 --- /dev/null +++ b/recipes/openttd/files/openttd.cfg @@ -0,0 +1,4 @@ +[misc] +resolution = 480,640 +[gui] +left_mouse_btn_scrolling = true
\ No newline at end of file diff --git a/recipes/openttd/openttd-gfx_0.1.1.bb b/recipes/openttd/openttd-gfx_0.1.1.bb new file mode 100644 index 0000000000..f791a8835e --- /dev/null +++ b/recipes/openttd/openttd-gfx_0.1.1.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Grafik files for openttd" +HOMEPAGE = "http://bundles.openttdcoop.org/opengfx/" +LICENSE = "GPLv2" + +PACKAGE_ARCH = "all" + +SRC_URI = "http://bundles.openttdcoop.org/download.php?file=opengfx%2Freleases%2Fopengfx-${PV}.zip" + +do_install() { + mv ${WORKDIR}/docs/license.txt ${WORKDIR}/gfx_license.txt + install -d ${D}${datadir}/games/openttd/data/ + install -m 0644 ${WORKDIR}/opengfx-${PV}.tar ${D}${datadir}/games/openttd/data/ + install -m 0644 ${WORKDIR}/gfx_license.txt ${D}${datadir}/games/openttd/data/ +} + +FILES_${PN} = "${datadir}" diff --git a/recipes/openttd/openttd-sfx_0.1.0.bb b/recipes/openttd/openttd-sfx_0.1.0.bb new file mode 100644 index 0000000000..05dd021372 --- /dev/null +++ b/recipes/openttd/openttd-sfx_0.1.0.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Sound files for openttd" +HOMEPAGE = "http://bundles.openttdcoop.org/opensfx/" +LICENSE = "CC Sampling Plus 1.0" + +PACKAGE_ARCH = "all" + +SRC_URI = "http://bundles.openttdcoop.org/download.php?file=opensfx%2Freleases%2Fopensfx-${PV}.zip" + +do_install() { + mv ${WORKDIR}/license.txt ${WORKDIR}/sfx_license.txt + install -d ${D}${datadir}/games/openttd/data/ + install -m 0644 ${WORKDIR}/opensfx-${PV}.tar ${D}${datadir}/games/openttd/data/ + install -m 0644 ${WORKDIR}/sfx_license.txt ${D}${datadir}/games/openttd/data/ +} + +FILES_${PN} = "${datadir}" diff --git a/recipes/openttd/openttd_0.7.4-RC1.bb b/recipes/openttd/openttd_0.7.4-RC1.bb new file mode 100644 index 0000000000..bbb570352b --- /dev/null +++ b/recipes/openttd/openttd_0.7.4-RC1.bb @@ -0,0 +1,49 @@ +DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition." +HOMEPAGE = "http://www.openttd.org" +LICENSE = "GPLv2" +DEPENDS = "libsdl-net libpng zlib freetype fontconfig" +RRECOMMENDS = "openttd-gfx openttd-sfx" + +inherit siteinfo sdl + +SRC_URI ="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2 " +SRC_URI_append_shr = " file://openttd.cfg" + +APPIMAGE = "media/openttd.128.png" + +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. + + ${S}/configure \ + --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=${STAGING_LIBDIR} \ + --with-png \ + --with-freetype \ + --without-icu \ + --without-allegro \ + --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 +} + +do_install_append_shr() { + install -d ${D}${datadir}/games/openttd/ + install -m 0644 ${WORKDIR}/openttd.cfg ${D}${datadir}/games/openttd/ +} + +FILES_${PN} += "${datadir}" |