I made an ebuild for this great game. The only real drawback is that it doesn't save preferences in the users home directory, but that's something that the OpenTTD team will fix soon. Enjoy. :)
Created attachment 30124 [details] Initial ebuild
Created attachment 30125 [details, diff] Makefile patch to disable debugging by default
Also, the current Makefile isn't very elegant if I want to add USE flags for zlib/png(both are only available in debug mode for now), but OpenTTD will soon have a revamped Makefile.
Ok, I'm uploading a new ebuild which has USE flags for everything with the help of a revamped Makfile, and also a patch for saving settings in the users' homedir.
Created attachment 30149 [details] Improved ebuild
Created attachment 30150 [details] Revamped Makefile
Created attachment 30151 [details, diff] patch for saving settings in a user's homedir
Created attachment 30157 [details] Fixed ebuild Forgot to add libsdl dependancy
Created attachment 30158 [details] Fixed Makefile The old one didn't use SDL if built on a UNIX system(so the game compiles, but doesn't run), but this one does.
Created attachment 30180 [details] (hopefully) Final ebuild Removed french translation since it's incomplete, and other small cleanups. I think it's ready for portage.
Created attachment 30198 [details, diff] icelandic currency support
Created attachment 30274 [details] openttd-0.3.1-overlay.tar.bz2 Since I had nothing better to do, I fixed a typo and fixed a permissions problem, and put the whole overlay(including Manifest/digest) into a tarball.
Created attachment 30277 [details] openttd-0.3.1-overlay.tar.bz2 Lol, found another thing to fix, I removed the x11 dependancy since it runs perfectly in a framebuffer console. :)
would be great if you could include the "useful" package into the ebuild. they have their own start screen e.g. http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307
Latest overlay worked like a dream here. OpenTTD runs flawlessly. :)
Created attachment 30959 [details] openttd-0.3.1-overlay.tar.bz2 Ok, I added the title screen, but nothing else since there is nothing else of interest in the -useful package. :P Btw, 2 people I know couldn't run the game unless they did this(works fine here though): USE=debug emerge openttd
i'm having trouble getting network play to work. as of this openttd forum post (of mine): http://www.tt-forums.net/viewtopic.php?t=7659 it looks as if there's need to set a flag called "ENABLE_NETWORK" to make it run. maybe you could include a simple note for everyone how to start a network game too. it's quite simple "ttd -n" for the server and "ttd -n <ip>" for a client to join. i think you can give a "-p <#players>" value for the server as well.
Yes, network play is disabled for now. I tried enabling it, but that won't work because the server ALWAYS tries to save savegame snapshots in the same dir as the game executable, and that will ofcourse fail because the user doesn't have write access to that dir. This hasn't been changed in the latest svn, but the OTTD developers will hopefully fix this soon.
0.3.2 is now out: http://ttforums.owenrudge.net/viewtopic.php?t=7943
OpenTTD 0.3.2.1 got released shortly after 0.3.2: http://ttforums.owenrudge.net/viewtopic.php?t=7943
Created attachment 32585 [details] ebuild for openttd-0.3.2.1 I've updated the ebuild for openttd-0.3.2.1, but I've only tested on a ppc machine, so there might be problems on x86. I had to copy the source file from openttd-0.3.2.1.tbz to openttd-0.3.2.1.tbz2 in order to unpack. If there's a better way to do this, I'd like to know.
Created attachment 32684 [details] Updated ebuild I think this fixes the copy error. Please let me know if there are more problems.
Can you re-attach as text/plain please?
Created attachment 32788 [details] Text-Plain Sorry! Missed that, here's a text version of the ebuild.
The build system in this release is pretty messed up(the USE flags don't work, autodetection is used), but it has been fixed in SVN. I am waiting for the OpenTTD team to fix the homedir problem so that networking will actually work without playing as root. I have an ebuild ready, and as soon as this has been fixed in SVN, I'll post it alongside an svn snapshot(or just wait for the next release). The game will then finally be fully functional. :P More information here: http://sourceforge.net/tracker/index.php?func=detail&aid=949852&group_id=103924&atid=636367
I'll be waiting for that new and improved ebuild then :)
Please reopen then. I'll close this as LATER for now to get it off our reports.
i have the ebuild: /usr/local/portage/games-simulation/openttd/openttd-0.3.2.1.ebuild and in etc/make.conf: PORTDIR_OVERLAY="/usr/local/portage" emerge fails: bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge openttd .. !!! No package digest file found: /usr/local/portage/games-simulation/openttd/files/digest-openttd-0.3.2.1 !!! Type "ebuild foo.ebuild digest" to generate it. bash-2.05b# i do it: bash-2.05b# ebuild /usr/local/portage/games-simulation/openttd/openttd-0.3.2.1.ebuild digest .. >>> Generating digest file... <<< openttd-0.3.2.1.tbz !!! Given file does not appear to be readable. Does it exist? !!! File: /usr/portage/distfiles/openttd-0.3.2.1.tbz bash-2.05b# What do i wrong? wfx (teg.sf.net)
Created attachment 34229 [details] games-simulation/openttd-20040626.ebuild Ok, everything seems to work now. Please test it. The snapshot is at my ftp for now... cd /usr/local/portage wget www.simnet.is/flanders/openttd-20040626.tar.bz2
Ok, I'm moving it into portage. Great work.
Files are on their ways to the mirrors.
Files are on their way to the mirrors.
Found my prob :-) "ebuild foo.ebuild digest" search the file always on the given mirror in make.conf. i comment out it and now it works.