Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 8222
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mike Lundy <mike@fluffypenguin.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
quake2-0.14.1-ebuild.tar.bz2 tarball of quake2-0.14.1.ebuild and other files application/x-tbz Mike Lundy 2002-09-22 13:29 0000 8.20 KB Details
quake2-0.14.1.ebuild quake2-0.14.1.ebuild (rewritten some what) text/plain SpanKY 2002-10-24 09:57 0000 2.62 KB Details
quake2-stuff.tar.bz2 .14.1 and .15 ebuilds, plus a makefile change from what's currently in portage application/octet-stream Mike Lundy 2002-11-10 21:18 0000 7.34 KB Details
quake2-relnev-0.15-r2.ebuild quake2-relnev-0.15-r1.ebuild (A Slightly Different Approach) text/plain Daniel Mannarino 2002-12-12 01:19 0000 5.81 KB Details
sdlquake2-relnev.start files/sdlquake2-relnev.start text/plain Daniel Mannarino 2002-12-12 01:21 0000 69 bytes Details
quake2-relnev.start files/quake2-relnev.start text/plain Daniel Mannarino 2002-12-12 01:22 0000 66 bytes Details
q2ded.start files/q2ded.start text/plain Daniel Mannarino 2002-12-12 01:23 0000 57 bytes Details
quake2-qmax.tar.bz2 app-games/quake2-qmax-0.15 application/octet-stream Mike Lundy 2003-03-02 05:08 0000 8.03 KB Details
Makefile. Modified Makefile to the ${filesdir} text/plain Priit Laes (IRC: plaes) 2003-06-08 13:41 0000 46.73 KB Details
Makefile. Makefile which uses CFLAGS from make.conf text/plain Priit Laes (IRC: plaes) 2003-06-08 13:51 0000 46.87 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 8222 depends on: Show dependency tree
Bug 8222 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-09-22 13:23 0000
Attached is quake2-0.14.1-ebuild.tar.bz2. This is the quake2 linux port done by 
relnev, centered at http://icculus.org/quake2/. It should probably go into 
app-games/quake2.

------- Comment #1 From Mike Lundy 2002-09-22 13:29:54 0000 -------
Created an attachment (id=4066) [details]
tarball of quake2-0.14.1.ebuild and other files

this tarball contains:

-Edited Makefile
quake2/files/Makefile

-Start scripts for the bin dir
quake2/files/sdlquake2.start
quake2/files/quake2.start
quake2/files/q2ded.start

-Readme for installing data and other bits
quake2/files/README-postinstall

-The ebuild
quake2/quake2-0.14.1.ebuild

What it does not contain:
The data paks. Those you have to buy :)

------- Comment #2 From SpanKY 2002-09-22 13:34:58 0000 -------
nice, ill take a look at it after the 1.4 freeze ;)

------- Comment #3 From SpanKY 2002-10-23 11:17:32 0000 -------
instead of doing:
tarball_version=`echo $P | sed -e 's/quake2-//'`
name=quake2-r${tarball_version}
S=${WORKDIR}/$name
SRC_URI="http://icculus.org/quake2/files/$name.tar.gz"

you can use the built in bash replacement:
MY_P="${P/-/-r}"
S="${WORKDIR}/${MY_P}"
SRC_URI="http://icculus.org/quake2/files/${MY_P}.tar.gz"

------- Comment #4 From SpanKY 2002-10-23 11:17:55 0000 -------
also, now we use virtual/x11 for X

------- Comment #5 From SpanKY 2002-10-23 11:21:19 0000 -------
instead of using syntax like this:
if (use sdl); then

try this:
if [ `use sdl` ] ; then

the reason for this is that () executes a new copy of the bash shell and if you 
were to use statements in there like 'die', it would only affect that sub 
shell ...
(die blah) would kill the subshell, not the main shell that is executing the 
ebuild

------- Comment #6 From SpanKY 2002-10-23 12:47:18 0000 -------
are you running Gentoo 1.4 ?
you commented out the aalib section saying it didnt work for you, but when i
uncommented it, it worked on my machine ...

------- Comment #7 From Mike Lundy 2002-10-24 02:46:59 0000 -------
No, I'm still using 1.2. Is there a way to test for the compiler version (other 
than the obvious gcc --version, of course)? Also, I've made the changes you  
suggested in my own tree, and I'm almost done with a 0.15 ebuild- i think I've  
figured out the qmax thing, so I'll attach a new tarball when i'm done. 

------- Comment #8 From SpanKY 2002-10-24 09:57:45 0000 -------
Created an attachment (id=4974) [details]
quake2-0.14.1.ebuild (rewritten some what)

here, check this for some suggestions ;)

------- Comment #9 From Daniel Mannarino 2002-10-29 18:20:26 0000 -------
*sigh*
It looks like in the time it was just sitting on my computer, someone else DID 
make an ebuild.  Heh.  Well, mine (#9927) appears redudant now.  I didn't 
think to look again before I submitted it (only, apparently, immediately 
after). Check it out for my approach.  Will look at yours.  ::)

------- Comment #10 From SpanKY 2002-10-30 00:10:51 0000 -------
*** Bug 9927 has been marked as a duplicate of this bug. ***

------- Comment #11 From SpanKY 2002-11-06 00:05:11 0000 -------
ah well i guess ill just add it and let users bitch about it ;)

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/quake2/quake2-0.14.1.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup

------- Comment #12 From Mike Lundy 2002-11-10 21:18:12 0000 -------
Created an attachment (id=5565) [details]
.14.1 and .15 ebuilds, plus a makefile change from what's currently in	portage

Here's the newer stuff- all that's left is the QMAX build that I'm still
kicking around. This contains:

quake2-0.14.1.ebuild
quake2-0.15.ebuild
files/Makefile

------- Comment #13 From SpanKY 2002-11-18 07:42:18 0000 -------
done 
and might i add, if only all games had linux ports this fscking good 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/quake2/quake2-0.15.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup 

------- Comment #14 From Daniel Mannarino 2002-12-02 22:28:05 0000 -------
Hiya ::)

I am still using my personal Quake 2 ebuild (which turned-out to be redundant).  Well,
an evolved version anyway.  Here are some reasons why:

1.  There are multiple Quake 2 source-ports, and there will be more.  Refering to this
one as simply "quake2" implies that it is The Official Quake 2.  I suggest calling it 
"quake2-relnev"

2.  Mine stores it's data in a source-port-independent location, and in a
source-port-independent way.  It does so using by keeping it's data seperately, in
/usr/share/games/quake2-relnev and linking to the basic Quake 2 data in
/usr/share/games/quake2-data.  I finally just submitted my quake2-data ebuild, to pull
the data off of CD or out of a user-specified location.

3.  Style:  I'm a snob, and prefer my way to yours.  :;)

  I would say that the first two warrant changes, whether or not the third does is
less clear.  ::)

  I just submitted bug #11506 ( at http://bugs.gentoo.org/show_bug.cgi?id=11506), which
installs the Quake 2 data from CD or otherwise.  I think it would be good if this
ebuild was slightly modified to use it.  Try adding lines such as this to src_install():

# Now populate baseq2 with symlinks and source-port specific files
dosym /usr/share/games/quake2-data/baseq2/pak0.pak /usr/share/games/quake2-relnev/baseq2/pak0.pak
dosym /usr/share/games/quake2-data/baseq2/pak1.pak /usr/share/games/quake2-relnev/baseq2/pak1.pak
dosym /usr/share/games/quake2-data/baseq2/pak2.pak /usr/share/games/quake2-relnev/baseq2/pak2.pak
dosym /usr/share/games/quake2-data/baseq2/players /usr/share/games/quake2-relnev/baseq2/players
dosym /usr/share/games/quake2-data/baseq2/video /usr/share/games/quake2-relnev/baseq2/video

...
and the same for ctf, rogue, and xatrix sub-directories

  Are the gamei386.so files portable across source-ports (and redundant, rather than
conflicting)?  If so, one could just symlink baseq3 instead of the individual paks (any
additional ones will need to be individually sym-linked by hand - not a big deal, but it
would be nice if one didn't have to).
  Sorry, I was going to re-write the ebuild with most of my complaints fixed and attach
it, but it is late and I wanted to at least mention my new quake2-data ebuild.  I kept
getting lost trying to modify the quake2 ebuild to change the things I had mentioned,
and the result would have looked more like the one I already have than the one in
Portage.  If you want me to, I will attach mine after I
incorporate changes from yours.  I was not confident that all I USE flags would work in
all cases.  Which brings me to my last complaint  for this comment  ::)
  Why use a custom Makefile, when you can use sed to modify the existing one?  It is more
self-contained, using fewer Gentoo-specific downloads, and you don't have to replace the
file and try to figure-out what you cut last-time when a new version comes-out.

  Counter-comments welcome  ::)
- Daniel Mannarino

------- Comment #15 From SpanKY 2002-12-03 01:11:21 0000 -------
ill look at these suggestions when i have time 

------- Comment #16 From Daniel Mannarino 2002-12-12 01:19:48 0000 -------
Created an attachment (id=6427) [details]
quake2-relnev-0.15-r1.ebuild (A Slightly Different Approach)

Okay, here's my attempt to merge the best of our ebuilds.

- Daniel

------- Comment #17 From Daniel Mannarino 2002-12-12 01:21:52 0000 -------
Created an attachment (id=6428) [details]
files/sdlquake2-relnev.start

Here's the script to start the sdl binary

------- Comment #18 From Daniel Mannarino 2002-12-12 01:22:38 0000 -------
Created an attachment (id=6429) [details]
files/quake2-relnev.start

Here's the script to start the plain binary

------- Comment #19 From Daniel Mannarino 2002-12-12 01:23:35 0000 -------
Created an attachment (id=6430) [details]
files/q2ded.start

And here's the dedicated server script

------- Comment #20 From SpanKY 2003-03-02 02:47:13 0000 -------
from e-mail: look into QMAX support

------- Comment #21 From Mike Lundy 2003-03-02 05:06:48 0000 -------
Ok, did the QMAX stuff. I don't mean to ignore your changes, Daniel, but I'm
just going with 
what's currently in there. Some of your changes I agree with, some I don't.
Just in response to 
your points, though: 

1. Really, the only other port that could qualify for the "quake2" name without
suffix is 
quakeforge's, but it's not really any better than this (and, actually, I'd say
worse, just because of 
the mess they had to make to get it to use autoconf). There won't ever be an
"official" quake2, 
per se, because the official one won't compile on linux :) 

2. I did something much the same, except I made quake2-qmax depend on quake2,
and left the 
data in /usr/share/games/quake2, then symlinked it. 

3. eh :) To answer one of your lower questions, no, the game*.so isn't even
compatible across 
compiles, heh. It breaks savegames if you recompile. Also, your point about sed
vs a new 
Makefile is well taken, but I find sed code evil and ugly. More personal
preference :) 

Anyway, this one installs a QMAX-version of quake2. It's set up to be installed
in 
app-games/quake2-qmax. Data is symlinked from app-games/quake2, which this
depends on, so 
that's good. Start scripts installed as <script>-qmax. Also, i patched the
source to use 
$HOME/.quake2-qmax as the config dir, so it doesn't touch the normal quake2
config. None of 
the vid_ref drivers really appear to work except for sdlgl, but I left the X
one in case I was just 
unlucky. Running sdlquake2-qmax will get you sdlgl by default, since softsdl
doesn't seem to 
work either. Eh, YMMV. Test! 

------- Comment #22 From Mike Lundy 2003-03-02 05:08:33 0000 -------
Created an attachment (id=8872) [details]
app-games/quake2-qmax-0.15

See comment above.

------- Comment #23 From Daniel Mannarino 2003-03-05 18:16:45 0000 -------
   Hiya
   Actually, you know, I've been meaning (literally for weeks, yikes) to
visit this again to say "Hi: I don't really remember what most of my changes
did; it probably introduced new problems (even though it seems to work for me); yours seems to work fine anyway; just forget I posted :;)"
   There is only one change that I really feel strongly about, and that is
the name.  I think it should be quake2-relnev.  The seperate quake2-data
ebuild is perhaps a little much.  Requiring manual sym-linking is probably
not too much to ask of the user: It's too much space for me to have multiple
Quake 2 data sets though.
   Making a QuakeForge 2 ebuild is going to require more ambition than I
have at the moment (though the tarball is sitting amongst a pile of others
I had intended to make ebuilds for in my home directory). qfusion I
successfully compiled/ran, but it is somewhat confusing as to where it stands
(based on Quake 2 source, but adds in many Quake 3 features, and uses Quake 3
data - actually requires Quake 3!).  Anyway, I'm rambling now.  I withdraw
objections to this ebuild, except for the name.  ::)

-- Daniel Mannarino

------- Comment #24 From Priit Laes (IRC: plaes) 2003-06-08 13:41:33 0000 -------
Created an attachment (id=12953) [details]
Modified Makefile to the ${filesdir}

This Makefile uses the CFLAGS from make.conf

------- Comment #25 From Priit Laes (IRC: plaes) 2003-06-08 13:51:19 0000 -------
Created an attachment (id=12954) [details]
Makefile which uses CFLAGS from make.conf

Tested only on x86. RELEASE_CFLAGS could be merged into one linem because
portage takes care of CFLAGS.

------- Comment #26 From SpanKY 2003-06-28 22:22:14 0000 -------
ok, it is now called quake2-revnel and has been totally reworked 
 
try the sob out :) 
 
oh and lets open problems with this ebuild as new bugs, danke 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/quake2-revnel/quake2-revnel-0.15.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup 

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug