OpenTTD

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Playing)
(Release: Seems to be .ipk not .opk, (though 0.8 quite old I think))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages| OpenTTD}}
 +
 +
<onlyinclude>
 +
{{ApplicationBox|
 +
Name=[[OpenTTD]]|
 +
Screenshot=Openttd_snap2.png|
 +
Description=OpenTTD is railroad and transporting game.|
 +
Homepage=http://www.openttd.org/ |
 +
TestedOn=SHR-U|
 +
PackageName=[http://www.opkg.org/packages/openttd_svn17682-r0.8_armv4t.ipk]
 +
}}
 +
</onlyinclude>
 +
{|align=left
 +
|__TOC__
 +
|}
 
[[Image:Openttd_snap1.png|thumb| Landscaped]]
 
[[Image:Openttd_snap1.png|thumb| Landscaped]]
  
Line 4: Line 19:
 
OpenTTD is game about trains and transporting.
 
OpenTTD is game about trains and transporting.
  
Upstream/official homepage: http://www.openttd.org/  
+
homepage: http://www.openttd.org/  
  
Port homepage: http://openttd.projects.openmoko.org/
 
  
 
== Download ==
 
== Download ==
 
[[Image:Openttd_snap3.png|thumb| Portrait and showing multilanguage cabability]]
 
[[Image:Openttd_snap3.png|thumb| Portrait and showing multilanguage cabability]]
 
=== Release ===
 
=== Release ===
It contains now open graphics and open sounds. No proprietary data-files needed.
+
It contains open graphics and open sounds. No proprietary data-files needed.
 
   
 
   
 
Install from opkg.org:
 
Install from opkg.org:
  
opkg install http://www.opkg.org/packages/openttd_0.7.2-r0.3_armv4t.opk
+
opkg install http://www.opkg.org/packages/openttd_svn17682-r0.8_armv4t.ipk
  
 
Bitbake recipe:
 
Bitbake recipe:
  
=== Source ===
+
=== Source ===
 
  DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition."
 
  DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition."
  HOMEPAGE = "http://openttd.sf.net"
+
  HOMEPAGE = "http://www.openttd.org"
 
  LICENSE = "GPLv2"
 
  LICENSE = "GPLv2"
 
  DEPENDS = "libsdl-net libpng zlib freetype fontconfig"
 
  DEPENDS = "libsdl-net libpng zlib freetype fontconfig"
  PV = "0.7.2"
+
  PV = "svn17682"
  PR = "r0.3"
+
  PR = "r0.8"
 
   
 
   
 
  inherit siteinfo sdl
 
  inherit siteinfo sdl
Line 31: Line 45:
 
  FILES_${PN} += "${datadir}/*"
 
  FILES_${PN} += "${datadir}/*"
 
   
 
   
  SRC_URI ="svn://svn.openttd.org/;module=trunk;rev=17558;proto=http"
+
  SRC_URI ="svn://svn.openttd.org/;module=trunk;rev=17682;proto=http"
 
   
 
   
  SRC_URI += "file://openttd.desktop \
+
  SRC_URI += "file://openttd.desktop"
            file://version_check.patch"
+
 
   
 
   
 
   
 
   
Line 40: Line 53:
 
   
 
   
 
  do_patch() {
 
  do_patch() {
  mv trunk openttd-0.7.2
+
  mv trunk openttd-${PV}
  cd openttd-0.7.2
+
  cd openttd-${PV}
patch  < ../version_check.patch
+
 
   
 
   
  # GPL-Graphics! http://dev.openttdcoop.org/
+
  # GPLv2-Graphics! http://dev.openttdcoop.org/
 
  cd ..
 
  cd ..
 
  wget http://bundles.openttdcoop.org/opengfx/releases/opengfx-0.1.0-alpha6.zip
 
  wget http://bundles.openttdcoop.org/opengfx/releases/opengfx-0.1.0-alpha6.zip
 
  unzip download.php\?file\=opengfx%2Freleases%2Fopengfx-0.1.0-alpha6.zip
 
  unzip download.php\?file\=opengfx%2Freleases%2Fopengfx-0.1.0-alpha6.zip
 +
mv license.txt gfx_license.txt
 
   
 
   
  # GPL-Sound files!
+
  # CC Sampling Plus 1.0 -licensed sound files!
#this contains also license, readme, changelog
+
 
  wget http://bundles.openttdcoop.org/opensfx/releases/opensfx-0.1.0-alpha2.zip
 
  wget http://bundles.openttdcoop.org/opensfx/releases/opensfx-0.1.0-alpha2.zip
 
  unzip -n download.php\?file\=opensfx%2Freleases%2Fopensfx-0.1.0-alpha2.zip
 
  unzip -n download.php\?file\=opensfx%2Freleases%2Fopensfx-0.1.0-alpha2.zip
 +
mv license.txt sfx_license.txt
 
  }
 
  }
 
   
 
   
 
   
 
   
 
  do_configure() {
 
  do_configure() {
#in r14478 they added icu-library (it is for languages which are typed right to left)
+
  # The way the OTTD configure system handles the application's directories
#fix: enable icu-library
+
  # isn't the way autotools does it. Mainly prefix is always prepended even if
#now it is disabled --without-icu
+
  # absolute binary-dir and data-dir is given.
 
   
 
   
# The way the OTTD configure system handles the application's directories
+
  ./configure \
# isn't the way autotools does it. Mainly prefix is always prepended even if
+
    --os=UNIX \
# absolute binary-dir and data-dir is given. Sigh ...
+
    --endian=${SITEINFO_ENDIANESS} \
+
    --prefix-dir=${prefix} \
#this cause problem --build=${BUILD_SYS}
+
    --binary-dir=bin \
#it is mapped to x86_64-linux
+
    --with-zlib \
#this works with me --build=x86_64-linux-gnu \
+
    --with-png \
+
    --with-freetype \
./configure \
+
    --without-icu \
    --build=x86_64-linux-gnu \
+
    --without-allegro \
    --host=${TARGET_SYS} \
+
    --cc-build=gcc \
    --windres=${MACHINE_DISPLAY_WIDTH_PIXELS}x${MACHINE_DISPLAY_HEIGHT_PIXELS} \
+
    --cc-host=${TARGET_SYS}-gcc \
    --os=UNIX \
+
    --cxx-build=g++ \
    --endian=${SITEINFO_ENDIANESS} \
+
    --cxx-host=${TARGET_SYS}-g++ \
    --prefix-dir=${prefix} \
+
    --strip=${TARGET_SYS}-strip \
    --binary-dir=bin \
+
    --install-dir=${D}
    --with-midi=/bin/true \
+
    --with-zlib \
+
    --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() {
 
  do_install() {
    oe_runmake install
+
    oe_runmake install
 
   
 
   
    install ${WORKDIR}/openttd.desktop ${D}${datadir}/applications
+
    install ${WORKDIR}/openttd.desktop ${D}${datadir}/applications
 
   
 
   
    #add gpl-graphs
+
    #sounds
    install ${WORKDIR}/opensfx-0.1.0-alpha2.tar ../image/usr/share/games/openttd/data/
+
    install ${WORKDIR}/opensfx-0.1.0-alpha2.tar ../image/usr/share/games/openttd/data/
 +
    install ${WORKDIR}/sfx_license.txt ../image/usr/share/games/openttd/data/
 
   
 
   
    #add gpl-sounds
+
    #graphs
    install ${WORKDIR}/opengfx-0.1.0-alpha6.tar ../image/usr/share/games/openttd/data/
+
    install ${WORKDIR}/opengfx-0.1.0-alpha6.tar ../image/usr/share/games/openttd/data/
 +
    install ${WORKDIR}/gfx_license.txt ../image/usr/share/games/openttd/data/
 
   
 
   
    #there must be sample.cat-file, even empty
+
    #delete some useless icons
    touch ../image/usr/share/games/openttd/data/sample.cat
+
    cd ${WORKDIR}/image/usr/share
+
    rm -r icons
    #delete some useless icons
+
    rm pixmaps/openttd.32.xpm
    cd ${WORKDIR}/image/usr/share
+
    rm -r icons
+
    rm pixmaps/openttd.32.xpm
+
 
  }
 
  }
 +
 
   
 
   
 
  pkg_postinst_${PN}() {
 
  pkg_postinst_${PN}() {
Line 118: Line 119:
 
  echo "[gui]"  >>  ~/.openttd/openttd.cfg
 
  echo "[gui]"  >>  ~/.openttd/openttd.cfg
 
  echo "left_mouse_btn_scrolling = true" >> ~/.openttd/openttd.cfg
 
  echo "left_mouse_btn_scrolling = true" >> ~/.openttd/openttd.cfg
 
 
  }
 
  }
 +
  
 
And simple desktop file:
 
And simple desktop file:
Line 131: Line 132:
 
  Categories=Game;
 
  Categories=Game;
 
  StartupNotify=false
 
  StartupNotify=false
 
 
Look [http://openttd.projects.openmoko.org/  project page] for more information.
 
  
 
== Playing==
 
== Playing==
 
You can move screen with stylus, just point empty place and drag.
 
You can move screen with stylus, just point empty place and drag.
 
If this doesn't work, check: Advanced settings -> Interface -> Interaction ->Left-click scrolling: On
 
If this doesn't work, check: Advanced settings -> Interface -> Interaction ->Left-click scrolling: On
 
<onlyinclude>
 
{{ApplicationBox|
 
Name=[[OpenTTD]]|
 
Screenshot=Openttd_snap2.png|
 
Description=OpenTTD is railroad and transporting game.|
 
Homepage=http://openttd.projects.openmoko.org/|
 
TestedOn=FDOM, Om 2008.12|
 
PackageName=[http://www.opkg.org/packages/openttd_0.7.2-r0.3_armv4t.ipk]
 
}}
 
</onlyinclude>
 
  
 
[[Category:Gaming]]
 
[[Category:Gaming]]

Latest revision as of 12:15, 11 June 2010


Openttd snap2.png OpenTTD

OpenTTD is railroad and transporting game.


Homepage: http://www.openttd.org/
Package: [1]
Tested on: SHR-U


Contents

Landscaped

[edit] Overview

OpenTTD is game about trains and transporting.

homepage: http://www.openttd.org/


[edit] Download

Portrait and showing multilanguage cabability

[edit] Release

It contains open graphics and open sounds. No proprietary data-files needed.

Install from opkg.org:

opkg install http://www.opkg.org/packages/openttd_svn17682-r0.8_armv4t.ipk

Bitbake recipe:

[edit] Source

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"
PV = "svn17682"
PR = "r0.8"

inherit siteinfo sdl

FILES_${PN} += "${datadir}/*"

SRC_URI ="svn://svn.openttd.org/;module=trunk;rev=17682;proto=http"

SRC_URI += "file://openttd.desktop"


APPIMAGE = "media/openttd.128.png"

do_patch() {
mv trunk openttd-${PV}
cd openttd-${PV}

# GPLv2-Graphics! http://dev.openttdcoop.org/
cd ..
wget http://bundles.openttdcoop.org/opengfx/releases/opengfx-0.1.0-alpha6.zip
unzip download.php\?file\=opengfx%2Freleases%2Fopengfx-0.1.0-alpha6.zip
mv license.txt gfx_license.txt

# CC Sampling Plus 1.0 -licensed sound files!
wget http://bundles.openttdcoop.org/opensfx/releases/opensfx-0.1.0-alpha2.zip
unzip -n download.php\?file\=opensfx%2Freleases%2Fopensfx-0.1.0-alpha2.zip
mv license.txt sfx_license.txt
}


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. 

  ./configure \
    --os=UNIX \
    --endian=${SITEINFO_ENDIANESS} \
    --prefix-dir=${prefix} \
    --binary-dir=bin \
    --with-zlib \
    --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

    install ${WORKDIR}/openttd.desktop ${D}${datadir}/applications

    #sounds
    install ${WORKDIR}/opensfx-0.1.0-alpha2.tar ../image/usr/share/games/openttd/data/
    install ${WORKDIR}/sfx_license.txt ../image/usr/share/games/openttd/data/

    #graphs
    install ${WORKDIR}/opengfx-0.1.0-alpha6.tar ../image/usr/share/games/openttd/data/
    install ${WORKDIR}/gfx_license.txt ../image/usr/share/games/openttd/data/

    #delete some useless icons
    cd ${WORKDIR}/image/usr/share
    rm -r icons
    rm pixmaps/openttd.32.xpm
}


pkg_postinst_${PN}() {
mkdir ~/.openttd
touch  ~/.openttd/openttd.cfg
echo "[misc]"   >>  ~/.openttd/openttd.cfg
echo "resolution = 480,640" >> ~/.openttd/openttd.cfg
echo "[gui]"  >>  ~/.openttd/openttd.cfg
echo "left_mouse_btn_scrolling = true" >> ~/.openttd/openttd.cfg
}


And simple desktop file:

[Desktop Entry]
Name=openttd
Comment=Open source clone of the Microprose game 'Transport Tycoon Deluxe'
Exec=openttd
Icon=openttd
Type=Application
Categories=Game;
StartupNotify=false

[edit] Playing

You can move screen with stylus, just point empty place and drag. If this doesn't work, check: Advanced settings -> Interface -> Interaction ->Left-click scrolling: On

Personal tools
Landscaped

Overview

OpenTTD is game about trains and transporting.

Upstream/official homepage: http://www.openttd.org/

Port homepage: http://openttd.projects.openmoko.org/

Download

Portrait and showing multilanguage cabability

Release

It contains now open graphics and open sounds. No proprietary data-files needed.

Install from opkg.org:

opkg install http://www.opkg.org/packages/openttd_0.7.2-r0.3_armv4t.opk

Bitbake recipe:

=== Source ===
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"
PV = "0.7.2"
PR = "r0.3"

inherit siteinfo sdl

FILES_${PN} += "${datadir}/*"

SRC_URI ="svn://svn.openttd.org/;module=trunk;rev=17558;proto=http"

SRC_URI += "file://openttd.desktop \
           file://version_check.patch"


APPIMAGE = "media/openttd.128.png"

do_patch() {
mv trunk openttd-0.7.2
cd openttd-0.7.2
patch  < ../version_check.patch 

# GPL-Graphics! http://dev.openttdcoop.org/
cd ..
wget http://bundles.openttdcoop.org/opengfx/releases/opengfx-0.1.0-alpha6.zip
unzip download.php\?file\=opengfx%2Freleases%2Fopengfx-0.1.0-alpha6.zip

# GPL-Sound files!
#this contains also license, readme, changelog
wget http://bundles.openttdcoop.org/opensfx/releases/opensfx-0.1.0-alpha2.zip
unzip -n download.php\?file\=opensfx%2Freleases%2Fopensfx-0.1.0-alpha2.zip
}


do_configure() {
#in r14478 they added icu-library (it is for languages which are typed right to left)
#fix: enable icu-library
#now it is disabled --without-icu

# 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 ...

#this cause problem --build=${BUILD_SYS} 
#it is mapped to x86_64-linux
#this works with me --build=x86_64-linux-gnu \

./configure \
   --build=x86_64-linux-gnu \
   --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 \
   --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

   install ${WORKDIR}/openttd.desktop ${D}${datadir}/applications

   #add gpl-graphs
   install ${WORKDIR}/opensfx-0.1.0-alpha2.tar ../image/usr/share/games/openttd/data/

   #add gpl-sounds
   install ${WORKDIR}/opengfx-0.1.0-alpha6.tar ../image/usr/share/games/openttd/data/

   #there must be sample.cat-file, even empty
   touch ../image/usr/share/games/openttd/data/sample.cat

   #delete some useless icons
   cd ${WORKDIR}/image/usr/share
   rm -r icons
   rm pixmaps/openttd.32.xpm
}

pkg_postinst_${PN}() {
mkdir ~/.openttd
touch  ~/.openttd/openttd.cfg
echo "[misc]"   >>  ~/.openttd/openttd.cfg
echo "resolution = 480,640" >> ~/.openttd/openttd.cfg
echo "[gui]"  >>  ~/.openttd/openttd.cfg
echo "left_mouse_btn_scrolling = true" >> ~/.openttd/openttd.cfg

}

And simple desktop file:

[Desktop Entry]
Name=openttd
Comment=Open source clone of the Microprose game 'Transport Tycoon Deluxe'
Exec=openttd
Icon=openttd
Type=Application
Categories=Game;
StartupNotify=false


Look project page for more information.

Playing

You can move screen with stylus, just point empty place and drag. If this doesn't work, check: Advanced settings -> Interface -> Interaction ->Left-click scrolling: On


Openttd snap2.png OpenTTD

OpenTTD is railroad and transporting game.


Homepage: http://openttd.projects.openmoko.org/
Package: [1]
Tested on: FDOM, Om 2008.12