Bug 96781 - [EBUILD] dark-oberon
Bug#: 96781 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: egore@gmx.de
Component: Games
URL:  http://dark-oberon.sf.net
Summary: [EBUILD] dark-oberon
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2005-06-22 06:26 0000
Description:   Opened: 2005-06-22 06:26 0000
I saw a nice RTS game. Wrote a quick ebuild.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Christoph Brill (egore) 2005-06-22 06:29:01 0000 -------
Created an attachment (id=61719) [details]
games-strategy/dark-oberon-1.0.ebuild

A working ebuild. I can't test the game in detail right now (I'm on MESA), but
it looks the same when I start it from my homedir.

If someone would test it for me that would be great.

------- Comment #2 From Mr. Bones. 2005-06-22 17:54:35 0000 -------
doesn't seem to compile with fmod support?

------- Comment #3 From Christoph Brill (egore) 2005-06-22 21:58:15 0000 -------
I'm not quite sure what you mean. From what I saw dark-oberon came with headers
for fmod and glfw. I took care that these headers are gone and system headers
are used (since X.org is no longer in /usr/X11R6 but in /usr, the symlink
/usr/X11R6/include contains the fmod headers, too ... ok it might be cleaner to
fix the Makefile to point to /usr/include instead of /usr/X11R6/include).

------- Comment #4 From Mr. Bones. 2005-06-22 22:53:19 0000 -------
did you look at the link line?  I don't see -lfmod there by default.  Do you
get
sound with your ebuild?

------- Comment #5 From Christoph Brill (egore) 2005-06-23 13:03:50 0000 -------
Created an attachment (id=61799) [details]
games-strategy/dark-oberon-1.0.1

updated ebuild (for 1.0.1)

------- Comment #6 From Christoph Brill (egore) 2005-06-23 13:05:01 0000 -------
Created an attachment (id=61800) [details]
files/Makefile

Makefile for sound support ... one could make a patch of it ... or create a sed
statement, but right now I'm to lazy (or to drunk) to do it ;)

------- Comment #7 From Mr. Bones. 2005-06-23 14:06:51 0000 -------
Created an attachment (id=61804) [details]
dark-oberon-1.0.1.ebuild

Here's the ebuild I'm working from.

------- Comment #8 From Mr. Bones. 2005-06-23 14:09:45 0000 -------
Created an attachment (id=61805) [details]
1.0.1-makefile.patch

patch to the Makefile which adds support for linking against libfmod.

Probably, it would be good to provide a local use flag "fmod" or "sound" for
the optional sound support. *shrug*  When they get things figured out a bit
more upstream we can address it then.

------- Comment #9 From Patrick Fehr 2005-07-11 15:05:18 0000 -------
Seems like a nice game, 
when trying ebuild and makefile patch dated 2005-06-23 I can't start oberon 
with following message: 
$ /usr/games/bin/doberon 
Crit: Can not initialize GLFW library 
 
using Linux lap_place 2.6.12-rc2-mm2 i686 Intel(R) Pentium(R) M processor 
1600MHz GenuineIntel GNU/Linux 
 
I hope this is of any help. 
 
Best Regards 
Patrick 

------- Comment #10 From Kåre Baastrup 2005-08-19 08:22:06 0000 -------
Version bumped to 1.0.2-RC1

------- Comment #11 From Kåre Baastrup 2005-08-19 11:13:41 0000 -------
you need to add -lXxf86vm in the end of the LIBRARIES in Makefile.

------- Comment #12 From Tupone Alfredo 2007-01-16 16:22:17 0000 -------
dark-oberon is now in portage. version is 1.0.2_rc1

------- Comment #13 From Marijn Schouten 2007-01-30 12:54:07 0000 -------
Doesn't compile for amd64 :(

 * dark-oberon-1.0.2-RC1.tar.gz MD5 ;-) ...                                    
                                                                               
        [ ok ]
 * dark-oberon-1.0.2-RC1.tar.gz RMD160 ;-) ...                                 
                                                                               
        [ ok ]
 * dark-oberon-1.0.2-RC1.tar.gz SHA1 ;-) ...                                   
                                                                               
        [ ok ]
 * dark-oberon-1.0.2-RC1.tar.gz SHA256 ;-) ...                                 
                                                                               
        [ ok ]
 * dark-oberon-1.0.2-RC1.tar.gz size ;-) ...                                   
                                                                               
        [ ok ]
 * checking ebuild checksums ;-) ...                                           
                                                                               
        [ ok ]
 * checking auxfile checksums ;-) ...                                          
                                                                               
        [ ok ]
 * checking miscfile checksums ;-) ...                                         
                                                                               
        [ ok ]
 * checking dark-oberon-1.0.2-RC1.tar.gz ;-) ...                               
                                                                               
        [ ok ]
nscd: Only root is allowed to use this option!
nscd: Only root is allowed to use this option!
>>> Checking dark-oberon-1.0.2-RC1.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> Compiling source in /var/tmp/portage/games-strategy/dark-oberon-1.0.2_rc1/work/dark-oberon-1.0.2-RC1 ...
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
doalloc.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
doberon.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dobuildings.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
doconfig.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dodata.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dodraw.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
doengine.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
doevents.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dofactories.cpp
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dofight.cpp
doengine.cpp: In function ‘void CreateBuildButtons()’:
doengine.cpp:3984: error: cast from ‘TBUILDING_ITEM*’ to ‘int’ loses
precision
doengine.cpp:4010: error: cast from ‘TFORCE_ITEM*’ to ‘int’ loses
precision
doengine.cpp: In function ‘void CreateOrderButtons()’:
doengine.cpp:4075: error: cast from ‘TFORCE_ITEM*’ to ‘int’ loses
precision
g++ -O2 -pipe -ggdb -I/usr/X11R6/include -I/usr/X11R6/include/GL -I../libs
-DDATA_DIR='"/usr/share/games/dark-oberon/"' -DUNIX=1 -DSOUND=0 -DDEBUG=0 -c
dofile.cpp
make: *** [doengine.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-strategy/dark-oberon-1.0.2_rc1 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_compile
  ebuild.sh, line 968:   Called qa_call 'src_compile'
  environment, line 3249:   Called src_compile
  dark-oberon-1.0.2_rc1.ebuild, line 38:   Called die

------- Comment #14 From Lefty 2008-05-30 20:40:44 0000 -------
Doesn't compile for amd64 as said...