Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49113 - Ebuild for OpenTTD
Summary: Ebuild for OpenTTD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-26 20:14 UTC by Hinrik Örn Sigurðsson
Modified: 2004-06-29 13:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Initial ebuild (openttd-0.3.1.ebuild,1.57 KB, text/plain)
2004-04-26 20:15 UTC, Hinrik Örn Sigurðsson
Details
Makefile patch to disable debugging by default (openttd-0.3.1-strip.patch,788 bytes, patch)
2004-04-26 20:16 UTC, Hinrik Örn Sigurðsson
Details | Diff
Improved ebuild (openttd-0.3.1.ebuild,1.81 KB, text/plain)
2004-04-27 07:57 UTC, Hinrik Örn Sigurðsson
Details
Revamped Makefile (openttd-0.3.1-new-Makefile,4.99 KB, text/plain)
2004-04-27 07:57 UTC, Hinrik Örn Sigurðsson
Details
patch for saving settings in a user's homedir (openttd-0.3.1-homedir_settings.patch,1.54 KB, patch)
2004-04-27 07:58 UTC, Hinrik Örn Sigurðsson
Details | Diff
Fixed ebuild (openttd-0.3.1.ebuild,1.88 KB, text/plain)
2004-04-27 08:48 UTC, Hinrik Örn Sigurðsson
Details
Fixed Makefile (openttd-0.3.1-new-Makefile,5.52 KB, text/plain)
2004-04-27 08:50 UTC, Hinrik Örn Sigurðsson
Details
(hopefully) Final ebuild (openttd-0.3.1.ebuild,1.96 KB, text/plain)
2004-04-27 14:27 UTC, Hinrik Örn Sigurðsson
Details
icelandic currency support (openttd-0.3.1-icelandic_currency.patch,2.09 KB, patch)
2004-04-27 17:27 UTC, Hinrik Örn Sigurðsson
Details | Diff
openttd-0.3.1-overlay.tar.bz2 (openttd-0.3.1-overlay.tar.bz2,5.41 KB, application/x-bzip)
2004-04-28 14:14 UTC, Hinrik Örn Sigurðsson
Details
openttd-0.3.1-overlay.tar.bz2 (openttd-0.3.1-overlay.tar.bz2,5.41 KB, application/x-bzip)
2004-04-28 14:32 UTC, Hinrik Örn Sigurðsson
Details
openttd-0.3.1-overlay.tar.bz2 (openttd-0.3.1-overlay.tar.bz2,5.49 KB, application/x-bzip)
2004-05-07 12:14 UTC, Hinrik Örn Sigurðsson
Details
ebuild for openttd-0.3.2.1 (openttd-0.3.2.1.ebuild,1.86 KB, application/octet-stream)
2004-06-03 07:18 UTC, Joe Jezak (RETIRED)
Details
Updated ebuild (openttd-0.3.2.1.ebuild,1.91 KB, application/octet-stream)
2004-06-04 23:33 UTC, Joe Jezak (RETIRED)
Details
Text-Plain (openttd-0.3.2.1.ebuild,1.91 KB, text/plain)
2004-06-06 12:15 UTC, Joe Jezak (RETIRED)
Details
games-simulation/openttd-20040626.ebuild (openttd-20040626.ebuild,2.08 KB, text/plain)
2004-06-26 14:24 UTC, Hinrik Örn Sigurðsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hinrik Örn Sigurðsson 2004-04-26 20:14:32 UTC
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. :)
Comment 1 Hinrik Örn Sigurðsson 2004-04-26 20:15:46 UTC
Created attachment 30124 [details]
Initial ebuild
Comment 2 Hinrik Örn Sigurðsson 2004-04-26 20:16:36 UTC
Created attachment 30125 [details, diff]
Makefile patch to disable debugging by default
Comment 3 Hinrik Örn Sigurðsson 2004-04-27 06:45:13 UTC
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.
Comment 4 Hinrik Örn Sigurðsson 2004-04-27 07:55:23 UTC
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.
Comment 5 Hinrik Örn Sigurðsson 2004-04-27 07:57:14 UTC
Created attachment 30149 [details]
Improved  ebuild
Comment 6 Hinrik Örn Sigurðsson 2004-04-27 07:57:55 UTC
Created attachment 30150 [details]
Revamped Makefile
Comment 7 Hinrik Örn Sigurðsson 2004-04-27 07:58:42 UTC
Created attachment 30151 [details, diff]
patch for saving settings in a user's homedir
Comment 8 Hinrik Örn Sigurðsson 2004-04-27 08:48:05 UTC
Created attachment 30157 [details]
Fixed ebuild

Forgot to add libsdl dependancy
Comment 9 Hinrik Örn Sigurðsson 2004-04-27 08:50:03 UTC
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.
Comment 10 Hinrik Örn Sigurðsson 2004-04-27 14:27:32 UTC
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.
Comment 11 Hinrik Örn Sigurðsson 2004-04-27 17:27:50 UTC
Created attachment 30198 [details, diff]
icelandic currency support
Comment 12 Hinrik Örn Sigurðsson 2004-04-28 14:14:55 UTC
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.
Comment 13 Hinrik Örn Sigurðsson 2004-04-28 14:32:21 UTC
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. :)
Comment 14 Alexander Jenisch 2004-05-03 13:57:55 UTC
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
Comment 15 Charles Goodwin 2004-05-05 21:19:28 UTC
Latest overlay worked like a dream here.  OpenTTD runs flawlessly. :)
Comment 16 Hinrik Örn Sigurðsson 2004-05-07 12:14:23 UTC
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
Comment 17 Alexander Jenisch 2004-05-15 10:09:59 UTC
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.
Comment 18 Hinrik Örn Sigurðsson 2004-05-16 12:31:03 UTC
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.
Comment 19 Charles Goodwin 2004-05-24 03:52:29 UTC
0.3.2 is now out:
http://ttforums.owenrudge.net/viewtopic.php?t=7943
Comment 20 Charles Goodwin 2004-05-27 07:17:05 UTC
OpenTTD 0.3.2.1 got released shortly after 0.3.2:
http://ttforums.owenrudge.net/viewtopic.php?t=7943
Comment 21 Joe Jezak (RETIRED) gentoo-dev 2004-06-03 07:18:32 UTC
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.
Comment 22 Joe Jezak (RETIRED) gentoo-dev 2004-06-04 23:33:13 UTC
Created attachment 32684 [details]
Updated ebuild

I think this fixes the copy error.  Please let me know if there are more
problems.
Comment 23 Mr. Bones. (RETIRED) gentoo-dev 2004-06-05 22:03:03 UTC
Can you re-attach as text/plain please?
Comment 24 Joe Jezak (RETIRED) gentoo-dev 2004-06-06 12:15:20 UTC
Created attachment 32788 [details]
Text-Plain

Sorry!	Missed that, here's a text version of the ebuild.
Comment 25 Hinrik Örn Sigurðsson 2004-06-06 20:47:15 UTC
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
Comment 26 David Holm (RETIRED) gentoo-dev 2004-06-21 00:54:06 UTC
I'll be waiting for that new and improved ebuild then :)
Comment 27 Mr. Bones. (RETIRED) gentoo-dev 2004-06-21 01:14:34 UTC
Please reopen then.  I'll close this as LATER for now to get it off our
reports.
Comment 28 Wolfgang 2004-06-26 10:51:52 UTC
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)
Comment 29 Hinrik Örn Sigurðsson 2004-06-26 14:24:37 UTC
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
Comment 30 David Holm (RETIRED) gentoo-dev 2004-06-26 15:14:49 UTC
Ok, I'm moving it into portage. Great work.
Comment 31 David Holm (RETIRED) gentoo-dev 2004-06-26 15:44:56 UTC
Files are on their ways to the mirrors.
Comment 32 David Holm (RETIRED) gentoo-dev 2004-06-26 15:45:33 UTC
Files are on their way to the mirrors.
Comment 33 Wolfgang 2004-06-29 13:33:33 UTC
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.