It's an ebuild for Doom Legacy, which is a rewrite of the doom engine. Uses X and opengl. Included are 2 patches for compiling correctly.
Created attachment 5083 [details] the ebuild
Created attachment 5084 [details] patch 1, fixes makefile fixes makefile so it doesnt put stuff in ../objs and ../bins
Created attachment 5085 [details, diff] fixes a double definition (CARD8)
added to cvs, thanks http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/doomlegacy/doomlegacy-1.40.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup
you forgot the CARD8/BOOL patch! now it gives this error: In file included from /usr/X11R6/include/GL/glx.h:27, from hardware/hw_data.h:66, from w_wad.h:71, from linux_x/endtxt.c:15: /usr/X11R6/include/X11/Xmd.h:159: conflicting types for `BOOL' hardware/hw_data.h:60: previous declaration of `BOOL' make: *** [objs/endtxt.o] Error 1
bah that didnt happen to me ;)
in fact, when i include that patch, it makes my build fail ;)
weird, adding the patch fixes it for me... what's your X version? (build fails on 4.2.0-rsomething and 4.2.1 here)
root@vapier root # qpkg -I -v xfree x11-base/xfree-4.2.1 *
check /usr/X11R6/include/X11/Xmd.h for the presence of "typedef CARD8 BOOL;" at line nr 159 ?
#ifndef __EMX__ typedef CARD8 BYTE; typedef CARD8 BOOL; #else /* __EMX__ */ /* * This is bad style, but the central include file <os2.h> declares them * as well */ #define BYTE CARD8 #define BOOL CARD8 #endif /* __EMX__ */
same here... strange :/ gcc-3.2-r2 and glibc-2.3.1-r1 maybe the problem is in there?
root@vapier root # qpkg -I -v glibc sys-libs/glibc-2.3.1-r1 * root@vapier root # qpkg -I -v gcc sys-devel/gcc-3.2-r2 *
please run this and then attach the resulting logfile `emerge doomlegacy >& doomlog`
Created attachment 5220 [details] here ya go
aight i found the problem ... if you run `opengl-update nvidia` and try to emerge, it fails but if you run `opengl-update xfree` and try to emerge, it works ... it worked on my box only cause i forgot to run `opengl-update nvidia` ;)
emerge rsync and try again ? i just added one to cvs that worked when i did this: opengl-update xfree emerge doomlegacy opengl-update nvidia emerge doomlegacy http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/doomlegacy/doomlegacy-1.40.ebuild.diff?r1=1.1&r2=1.2
I was going to post a similar patch to the ebuild but you beat me to it! Good job, works like a charm :)