Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50612 - new ebuild: icculus.org freespace2
Summary: new ebuild: icculus.org freespace2
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://icculus.org/projects/freespace2/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-05-10 02:37 UTC by Dizzy
Modified: 2018-12-03 12:58 UTC (History)
4 users (show)

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


Attachments
freespace2 20040510 snapshot ebuild (freespace2-20040510.ebuild,1.36 KB, text/plain)
2004-05-10 02:38 UTC, Dizzy
Details
freespace2-cvs-0.ebuild (freespace2-cvs-0.ebuild,3.37 KB, text/plain)
2005-10-18 18:56 UTC, James Le Cuirot
Details
freespace2-cvs-1.ebuild (freespace2-cvs-1.ebuild,3.48 KB, text/plain)
2006-01-28 15:58 UTC, Ivan Yosifov
Details
freespace2-cvs-0.ebuild (freespace2-cvs-0.ebuild,3.20 KB, text/plain)
2006-09-17 04:49 UTC, James Le Cuirot
Details
freespace1-data-1.06.ebuild (freespace1-data-1.06.ebuild,3.16 KB, text/plain)
2006-09-17 04:57 UTC, James Le Cuirot
Details
freespace1-demo-data-1.20.ebuild (freespace1-demo-data-1.20.ebuild,1.12 KB, text/plain)
2006-09-17 05:03 UTC, James Le Cuirot
Details
silent-threat-data-1.06.ebuild (silent-threat-data-1.06.ebuild,1.45 KB, text/plain)
2006-09-17 05:08 UTC, James Le Cuirot
Details
freespace1-demo-data-1.20.ebuild (freespace1-demo-data-1.20.ebuild,1.13 KB, text/plain)
2006-09-17 05:12 UTC, James Le Cuirot
Details
freespace1 License (freespace1,6.54 KB, text/plain)
2006-09-17 05:37 UTC, James Le Cuirot
Details
freespace1-demo License (freespace1-demo,2.49 KB, text/plain)
2006-09-17 05:38 UTC, James Le Cuirot
Details
freespace2-demo-data-1.10.ebuild (freespace2-demo-data-1.10.ebuild,591 bytes, text/plain)
2006-09-17 13:35 UTC, James Le Cuirot
Details
freespace2-demo License (freespace2-demo,2.67 KB, text/plain)
2006-09-17 13:36 UTC, James Le Cuirot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dizzy 2004-05-10 02:37:12 UTC
Hi

Just made a quick ebuild for my favourite game and my favourite distribution :)

Because icculus.org doesnt offer snapshots of the codes (only CVS), I have made such a snapshot and put it on one of my websites. If this ebuild is commited I would prefer to have the snapshot into gentoo's distfiles mirroring system.
Snapshot URL: http://dizzy.roedu.net/fs2/freespace2-20040510.tar.bz2

One "problem" unsolved with this ebuild file is the license. I dont know exactly what to put in there, the only license information I got so far are this words from every source file:
Based on the Freespace 2 source code:
Copyright (C) Volition, Inc. 1999.  All rights reserved.

All source code herein is the property of Volition, Inc. You may not sell
or otherwise commercially exploit the source or things you created based on
the source.

Please see the attached ebuild file.
Comment 1 Dizzy 2004-05-10 02:38:12 UTC
Created attachment 31086 [details]
freespace2 20040510 snapshot ebuild
Comment 2 Dizzy 2004-05-10 13:39:45 UTC
Ok, about license, this is one answer from one of the main developers:

"So if you don't make any money off of it and accept that Volition can
pretty much do what they want with any changes to the game then there is
no problem distributing the source.  Game data is another issue though,
it's definitely not free.  But if you just distribute the source you
shouldn't have any problems."

Any hints what should I put in the license variable of the ebuild ?
Comment 3 Daniel Pierce 2004-07-25 10:44:46 UTC
The ebuild worked great for me.  I am able to play multiplayer against the open source windows client as well, provided that I'm the host.  I think there are case sensitivity issues with the mission files when I am a client connecting to a windows host.
Comment 4 Dizzy 2004-08-30 05:02:27 UTC
Ok... so do I need to fix anything to get it into portage ? It's been almost 3 months now :)
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-09-13 01:18:55 UTC
Reopen when they actually make a release please.
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2005-09-23 14:51:54 UTC
They have a tarball release now:

http://icculus.org/~taylor/fso/releases/fs2_open-3.6.7.tar.bz2
Comment 7 Dizzy 2005-09-24 03:52:44 UTC
Yes, but this is for fs2_open. I'll make another ebuild for fs2_open and submit
it with another bug entry.
Comment 8 James Le Cuirot gentoo-dev 2005-10-18 18:56:50 UTC
Created attachment 70991 [details]
freespace2-cvs-0.ebuild

I think you sometimes have to accept that some projects seldom (if ever) make a
release. This procect has already been around for ages. The game works great
and the site actually says to use the CVS version. I have therefore made a
freespace2-cvs ebuild. At least the -cvs would imply that it might not work
perfectly.

I've made a lot of other additions to the ebuild too. It now also compiles and
installs FreeSpace 1 since the engine supports that. I made use of the
cdinstall and video USE flags. cdinstall will handle Freespace 1 and the Silent
Threat add-on but I didn't do FreeSpace 2 since I don't have it. Could somebody
do this for me?

I did try fs2_open with fsport (to play FreeSpace 1) but it needs FreeSpace 2
to run at all.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-18 20:21:28 UTC
We don't like "live" CVS ebuilds.  If the chance is that there won't be a
"release" tarball at any time, then the best solution is to create a snapshot
ourselves and build an ebuild that uses that.  The reason for this is it gives
us a static target for testing/QA and also keeps the underlying build from
changing without our knowledge.  Basically, a live CVS ebuild could break at any
time, and we would receive bug reports on it, whereas a snapshot CVS ebuild
should be of a "known good" snapshot date/time, and remains the same,
independent of upstream CVS.  It means a little bit more work on our end to keep
up with upstream CVS patches, but in the end, usually ends up being less work.

While we accept that some projects will never make a release, we also tend to
avoid these, as they end up being more trouble than they're worth.  Have you
tried contacting the upstream to see if they're willing to make at least a
"known good" CVS snapshot tarball available?  I find it easier if the snapshot
comes from upstream, rather than being arbitrarily created by us, as it has a
more official feel to it.  Yeah, it's totally semantics, but with hundreds of
games packages and only a very small number of games developers, we try to avoid
adding things that will end up being a time sync.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-01 10:41:48 UTC
Games: do either of you two have these games?  I don't have either Freespace game.
Comment 11 James Le Cuirot gentoo-dev 2005-11-01 11:26:28 UTC
Ah sorry, I was going to update this but forgot. The only active maintainer told 
me that he does intend to release but not unless PXO support has been 
implemented and he wants to make sure it can compile on Windows. It probably 
won't be too long now.
Comment 12 James Le Cuirot gentoo-dev 2005-11-02 08:22:23 UTC
It's been brought to my attention that my cdinstall might only work with the 
English version of the game. Can't really look into that until someone tries to 
use another version though.
Comment 13 Ivan Yosifov 2006-01-28 15:58:17 UTC
Created attachment 78382 [details]
freespace2-cvs-1.ebuild

A modular-X-safe version of the cvs ebuild. The patch is:

--- /home/obelix/temp/freespace2-cvs-0.ebuild   2006-01-29 01:56:10.000000000 +0200
+++ ./freespace2-cvs-1.ebuild   2006-01-29 01:49:17.000000000 +0200
@@ -18,7 +18,15 @@
 KEYWORDS="~x86"
 IUSE="debug cdinstall videos"

-RDEPEND="virtual/x11
+RDEPEND="|| (
+                       (
+                               x11-libs/libX11
+                               x11-libs/libXau
+                               x11-libs/libXdmcp
+                               x11-libs/libXext
+                       )
+                       virtual/x11
+               )
        media-libs/libsdl
        media-libs/openal
        virtual/opengl"
Comment 14 James Le Cuirot gentoo-dev 2006-09-17 04:48:16 UTC
Update! I decided it would be a good idea to split the engine from the data. I didn't want to have to fetch the CDs again just to upgrade the game. I now present the following ebuilds.

- freespace2-cvs
- freespace1-data
- freespace1-demo-data
- silent-threat-data

I will describe them each as I upload them. I also intend to follow up with freespace2-demo-data. I would do freespace2-data but I still don't have the game yet. May get it soon.
Comment 15 James Le Cuirot gentoo-dev 2006-09-17 04:49:59 UTC
Created attachment 97224 [details]
freespace2-cvs-0.ebuild

freespace2-cvs is an improved version of the previous ebuild. As well as leaving the data to the other ebuilds, it now includes demo support, makes use of the system's CFLAGS and has better support for cross compiling. The demo versions are only built when the demo USE flag is enabled. The full versions are always built in case you have the full version of one game and the demo version of the other. I realise that a snapshot would be preferred but I'm going to contact the mailing list about a mildly irritating bug first. Often when you start the game, the screen is offset by a varying amount to the right. Occasionally it even segfaults. I usually have to start it a few times to get it right. I'm guessing that this only affects some graphics cards.
Comment 16 James Le Cuirot gentoo-dev 2006-09-17 04:57:33 UTC
Created attachment 97226 [details]
freespace1-data-1.06.ebuild

freespace1-data is for the full version of the first game. The cdinstall USE flag isn't used anymore, it just asks for the CDs regardless. You can always use the CD_ROOT option if you want it to copy from some other location. Linux-friendly patches for version 1.06 from http://icculus.org/~taylor/freespace/ are now used. There are patches for the American, British and German versions. You can select one of these using FS_PATCH_LANG, otherwise it doesn't do any patching. These patches are rather unusual. It seems that you can apply them repeatedly without failure so we don't need to bother checking whether the patch has already been applied. It also seems that you can even use them on languages versions that they were not intended for. As the ebuild points out, this isn't recommended. Despite the "x86" in the filenames of the patches, these will work on any architecture. They are so called because they include an x86 binary of loki_patch but we don't use that.
Comment 17 James Le Cuirot gentoo-dev 2006-09-17 05:03:10 UTC
Created attachment 97227 [details]
freespace1-demo-data-1.20.ebuild

freespace1-demo-data is for the demo version of the first game. I figured it would be cool for Portage to have the demo as well. (-: This ebuild downloads the 1.0 Windows demo from Volition's site and also the 1.20 patch from http://icculus.org/~taylor/freespace/. The Windows demo is extracted using unzip and unshield - nothing nasty there. The patch is then applied using loki_patch. The files are installed in a different directory to the full version so they can be installed at the same time without issue. A different configuration directory is also used within $HOME so that isn't an issue either.
Comment 18 James Le Cuirot gentoo-dev 2006-09-17 05:08:08 UTC
Created attachment 97228 [details]
silent-threat-data-1.06.ebuild

Finally, we have silent-threat-data for the first game's Silent Threat add-on. This also uses a patch from http://icculus.org/~taylor/freespace/ but this patch doesn't appear to be repeatedly applicable like before. For this reason, the ebuild checks the md5sum of the file (there's only one file) to see whether the patch has already been applied. This is straightforward because there only seems to be one language version of Silent Threat. The installation continues even if the patch fails so the check is largely cosmetic.
Comment 19 James Le Cuirot gentoo-dev 2006-09-17 05:12:26 UTC
Created attachment 97229 [details]
freespace1-demo-data-1.20.ebuild

Oops. Realised that I should have included app-arch/unzip in the dependencies.
Comment 20 James Le Cuirot gentoo-dev 2006-09-17 05:37:56 UTC
Created attachment 97230 [details]
freespace1 License

Nearly forgot the licenses!
Comment 21 James Le Cuirot gentoo-dev 2006-09-17 05:38:51 UTC
Created attachment 97232 [details]
freespace1-demo License
Comment 22 James Le Cuirot gentoo-dev 2006-09-17 13:35:58 UTC
Created attachment 97276 [details]
freespace2-demo-data-1.10.ebuild

freespace2-demo-data as promised. (-: This one was simpler than I expected. Even though the only demo package available is for version 1.0, the patch to 1.1 does not affect the data files and hence it is not needed. Despite the demo package being for Windows, all I needed to retrieve the files was unzip! Note that fs2_open does not support the demo version and so this package is only good for the icculus.org version. Finally, I was not able to provide a URL for the demo package because the only "reliable" mirrors that host the file are FilePlanet, FileShack, PlanetMirror and the like. Hopefully hosting this 60MB file on Gentoo mirrors won't be a problem. Otherwise fetch restrictions should probably be enabled.
Comment 23 James Le Cuirot gentoo-dev 2006-09-17 13:36:47 UTC
Created attachment 97277 [details]
freespace2-demo License
Comment 24 Mike McQuaid 2007-04-07 02:05:42 UTC
Added a new data ebuild for Freespace 2 to http://bugs.gentoo.org/show_bug.cgi?id=107081