Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96249 - warzone2100-0.2.2.ebuild (new package)
Summary: warzone2100-0.2.2.ebuild (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://www.realtimestrategies.net/for...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-06-15 23:36 UTC by Denis Dupeyron (RETIRED)
Modified: 2005-10-11 17:31 UTC (History)
2 users (show)

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


Attachments
warzone2100-0.1.ebuild (warzone2100-0.1.ebuild,1.86 KB, text/plain)
2005-06-15 23:40 UTC, Denis Dupeyron (RETIRED)
Details
warzone2100-0.1-r1.ebuild (warzone2100-0.1-r1.ebuild,1.43 KB, text/plain)
2005-06-21 02:51 UTC, Denis Dupeyron (RETIRED)
Details
warzone2100-0.2.ebuild (warzone2100-0.2.ebuild,1.57 KB, text/plain)
2005-06-28 02:37 UTC, Denis Dupeyron (RETIRED)
Details
warzone2100-0.2.ebuild (warzone2100-0.2.ebuild,1.26 KB, text/plain)
2005-06-28 17:47 UTC, SpanKY
Details
warzone2100-0.2.ebuild (warzone2100-0.2.ebuild,1.28 KB, text/plain)
2005-06-29 06:42 UTC, Denis Dupeyron (RETIRED)
Details
warzone2100-0.2.1.ebuild (warzone2100-0.2.1.ebuild,1.13 KB, text/plain)
2005-07-16 16:01 UTC, Denis Dupeyron (RETIRED)
Details
patch : src/clparse.c (0.2.2-clparse.c.patch,413 bytes, patch)
2005-09-02 11:28 UTC, fabien Zouaoui
Details | Diff
warzone2001-2.2.ebuild (warzone2100-0.2.2.ebuild,1.26 KB, text/plain)
2005-09-02 11:32 UTC, fabien Zouaoui
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Dupeyron (RETIRED) gentoo-dev 2005-06-15 23:36:12 UTC
Hi,

I'm part of the development team of the Warzone 2100 ReDev project. Warzone 2100 was an innovative 3D real-time strategy game back in 1999, and most will agree it didn't enjoy the commercial success it should have had. The game's sources were liberated in december 2004, and the Warzone 2100 ReDev project was formed.

This version is still experimental, but fully functional. As far as we know, it doesn't crash that much. We have stripped the original code of anything proprietary or Windows related, and replaced with SDL, SDL-net, and openal. We have made very few game modifications (interface, mostly) as our goal right now is to release a stable cross-platform version.

At this time, it works very well in Windows and x86 GNU/Linux. We played a network game between a Windows and a Linux machine last night, and except for the fact that I lost, there was no issue. Campaign-mode, single-player skirmish (with computer AIs) and network games (also with computer AIs) work great.

Please report bugs in the game at http://developer.berlios.de/bugs/?group_id=2909. This bug entry is for the Gentoo ebuild only. You can join the Warzone 2100 Development Forum at http://www.realtimestrategies.net/forums/index.php.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-15 23:40:06 UTC
Created attachment 61316 [details]
warzone2100-0.1.ebuild
Comment 2 Anton Romanov 2005-06-16 02:09:55 UTC
i suppose necessary permissions can be set by 'prepgamesdirs'
and wrapper created by 'games_make_wrapper'
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-16 02:21:24 UTC
(In reply to comment #2)
> i suppose necessary permissions can be set by 'prepgamesdirs'
> and wrapper created by 'games_make_wrapper'

Thanks for the info. I'll check this and update the ebuild.
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-21 02:46:44 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > i suppose necessary permissions can be set by 'prepgamesdirs'
> > and wrapper created by 'games_make_wrapper'
> 
> Thanks for the info. I'll check this and update the ebuild.

I was waiting for the new release to come (0.1.1 or 0.2, we don't know yet) to
submit the cleaned-up ebuild, but I decided it could be interesting to get
feedback about it as soon as possible. So, here it is (warzone2100-0.1-r1.ebuild).
Comment 5 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-21 02:51:11 UTC
Created attachment 61617 [details]
warzone2100-0.1-r1.ebuild
Comment 6 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-28 02:37:25 UTC
Created attachment 62134 [details]
warzone2100-0.2.ebuild

Changelog:

* Uses new version 0.2 of Warzone 2100. See notes here :
http://sourceforge.net/project/shownotes.php?release_id=337805

* Makes use of the opengl USE flag, to allow for software rendering with
-opengl.

* Added dependencies to virtual/opengl, media-libs/libvorbis and
media-libs/libmad.

* Uses SourceForge mirroring system.

* Cosmetic corrections in order to fully respect ebuild writing rules.

Since it's been tested on different machines for a few days now and with no
issue, this looks pretty final to me until next version of Warzone 2100.
Comment 7 robustah 2005-06-28 12:55:15 UTC
It would be great if it was possible to make it multilib compatible. Want to run
it on amd64 ;/
Comment 8 SpanKY gentoo-dev 2005-06-28 17:13:02 UTC
considering the game is from source, multilib is pointless
Comment 9 SpanKY gentoo-dev 2005-06-28 17:47:02 UTC
Created attachment 62208 [details]
warzone2100-0.2.ebuild

try this ebuild
Comment 10 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-29 06:42:02 UTC
Created attachment 62230 [details]
warzone2100-0.2.ebuild

(In reply to comment #9)
> Created an attachment (id=62208) [edit]
> warzone2100-0.2.ebuild
> 
> try this ebuild

Thanks for the cleanup. However, this release of Warzone 2100 is far from
perfect yet, which requires two modifications :

* openal is not currently an option. 'configure --help' seems to allow doing
without openal, but it wont build.

* the content of the data directory needs to be at the same level as the
executable, or it will not run.

Both issues need to be corrected for the next release. All in all, it looks
much better like this, though. Thanks again.
Comment 11 SpanKY gentoo-dev 2005-06-29 18:33:24 UTC
that's the point of the wrapper script

it says to chdir to "${GAMES_DATADIR}/${PN}" before executing
"${GAMES_LIBDIR}"/${PN}/warzone 
Comment 12 Denis Dupeyron (RETIRED) gentoo-dev 2005-06-29 22:53:01 UTC
(In reply to comment #11)
> that's the point of the wrapper script
> 
> it says to chdir to "${GAMES_DATADIR}/${PN}" before executing
> "${GAMES_LIBDIR}"/${PN}/warzone 

I got that. But there's a bug which makes that changing to the directory is not
enough. The executable has to be installed in "${GAMES_DATADIR}/${PN}", and
the data has to be installed like this :
	doins -r data/* || die "doins data"
instead of :
	doins -r data || die "doins data"

We are doing massive code cleanups for the next release, and this will be corrected.

PS. I forgot to make the previous ebuild obsolete last time, sorry about that.
Comment 13 Dennis Schridde 2005-07-08 06:48:03 UTC
Please add USE=debug to make debugging easier once ./configure --enable-debug 
doesn't create compile-time errors anymore. I allready filed a wish for fixing 
--enable-debug to the Berlios-page. 
Comment 14 Denis Dupeyron (RETIRED) gentoo-dev 2005-07-16 16:01:31 UTC
Created attachment 63574 [details]
warzone2100-0.2.1.ebuild

New ebuild for new release. Lots of bugfixes upstream, including some which
enable a cleaner and more standard ebuild. The only peculiarity left is the
non-working 'make install' due to the data not being included in our subversion
tree. We are already working towards fixing this for next release.

Changelog for the ebuild:
* Directory structure in tarball corrected, so S=${WORKDIR} no more needed.
* Got rid of the static Makefile, so calling src_unpack() to run autogen.sh
isn't needed any more.
* The executable no more needs to be located in the same directory as the data.

* debug USE flag not added, but --enable-debug removed from configure. We are
more and more thinking that some parts of the old code are beyond fixable. The
debug code may be one of them.
Comment 15 Denis Dupeyron (RETIRED) gentoo-dev 2005-07-28 01:05:50 UTC
Version 0.2.2 has been released (bugfixes, mainly). Get the changelog here:
http://sourceforge.net/project/shownotes.php?release_id=345320

The ebuild stays the same. So, just copy warzone2100-0.2.1.ebuild to
warzone2100-0.2.2.ebuild, do a digest, and you're set.
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2005-07-28 07:11:54 UTC
Instead of the wrapper script, I'd prefer to see the source patched to correctly
find the data files.  This is the hold up in adding this package to portage.
Comment 17 Denis Dupeyron (RETIRED) gentoo-dev 2005-07-28 07:59:10 UTC
(In reply to comment #16)
> Instead of the wrapper script, I'd prefer to see the source patched to correctly
> find the data files.  This is the hold up in adding this package to portage.

Am I understanding correctly that the use of games_make_wrapper is undesirable ?
Comment 18 Mr. Bones. (RETIRED) gentoo-dev 2005-07-28 08:31:48 UTC
Yes.  It should mostly be used for things like -bin packages and java packages
where there isn't necessarily a nice executable to be run.  If we have the
source, as in this case, a patch is the way to go.
Comment 19 fabien Zouaoui 2005-09-02 11:28:51 UTC
Created attachment 67497 [details, diff]
patch : src/clparse.c

allows to search datas in $GAMES_DATADIR.
Comment 20 fabien Zouaoui 2005-09-02 11:32:21 UTC
Created attachment 67498 [details]
warzone2001-2.2.ebuild

some modifications to Charun's ebuild for applying the precedent patch
Comment 21 Netopyr 2005-09-13 11:56:49 UTC
openal is not a dependency, had to install in manually maybe you can add that..
Comment 22 Netopyr 2005-09-15 04:40:40 UTC
(In reply to comment #21)
> openal is not a dependency, had to install in manually maybe you can add that..
Sorry it is a dependecy but it didn't install it..  
Comment 23 Corey Shields 2005-10-10 10:20:04 UTC
The 2.2 ebuild works for me..  (fun game too)
Comment 24 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-11 17:31:40 UTC
Added to CVS, slightly modifed, to remove the nasty -m32 garbage from the
ebuild, since it compiles fine for me on amd64.