Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3655 - Xmame ebuild will not compile for PPC; here's a patch
Summary: Xmame ebuild will not compile for PPC; here's a patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bryon Roche (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-11 23:43 UTC by Derek Greentree
Modified: 2006-02-04 06:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Greentree 2002-06-11 23:43:57 UTC
Xmame is distributed such that you need to hack the Makefile slightly for
anything that's not X86 linux. Here's a patch for the Makefile that works for me:

--- Makefile.bak        Tue Jun 11 22:42:09 2002
+++ Makefile    Tue Jun 11 22:40:52 2002
@@ -99,6 +99,6 @@
 #  -malign-jumps=2 -malign-loops=2
 ### for Linux/PowerPC use following opts
-# #CFLAGS=  -Wno-unused -funroll-loops\
-#  -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char
+CFLAGS=  -Wno-unused -funroll-loops\
+  -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char
 ### for OpenStep/Intel use following opts
 # #CFLAGS= -Wno-unused -finline-functions -ffast-math \
@@ -219,5 +219,5 @@
 
 ### i386 + gnu-asm
-MY_CPU = i386
+# MY_CPU = i386
 ### i386 no asm -- needed for the Intel C++ Compiler which does not fully
 # understand gcc's inline assembly syntax (you may still enable X86_ASM_68000
@@ -231,5 +231,5 @@
 # MY_CPU = m68k
 ### generic risc (powerpc, sparc, hppa, ibm)
-# MY_CPU = risc
+MY_CPU = risc
 ### generic risc, lsb-first (RISC (ultrix machines))
 # MY_CPU = risc_lsb
@@ -281,5 +281,5 @@
 # JOY_X11 = 1
 # On iX86 based OS's, if supported, you can use standard joystick driver.
-JOY_I386 = 1
+# JOY_I386 = 1
 # Linux FM-TOWNS game PAD joystick emulation support, thanks to Osamu Kurati.
 # JOY_PAD = 1


Thanks.
Comment 1 David Chamberlain (RETIRED) gentoo-dev 2002-06-14 21:22:40 UTC
Added stuff from patch to ebuild; compiles on ppc now, though it's not much
tested (I don't have any game roms).  Thanks for the report, Derek; feedback
appreciated.