Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59674 - Widelands - new package
Summary: Widelands - new package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://widelands.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-07 02:13 UTC by Elias Kunnas
Modified: 2005-10-29 12:09 UTC (History)
9 users (show)

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


Attachments
widelands-0.0.8.ebuild (widelands-0.0.8.ebuild,911 bytes, text/plain)
2004-08-07 04:41 UTC, Elias Kunnas
Details
games-strategy/widelands-0.0.8 (widelands-0.0.8.ebuild,918 bytes, text/plain)
2004-12-20 08:16 UTC, Christoph Brill (egore) (RESIGNED)
Details
My ebuild for b9 of widelands (widelands-0.9.ebuild,1.51 KB, text/plain)
2005-01-14 05:53 UTC, Jan Marten Simons
Details
games-strategy/widelands-0.0.9 (widelands-0.0.9.ebuild,928 bytes, text/plain)
2005-01-21 18:35 UTC, Jan Simons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Kunnas 2004-08-07 02:13:26 UTC
Widelands is a game similar to Bluebyte's Settlers 2

Reproducible: Always
Steps to Reproduce:
Comment 1 Elias Kunnas 2004-08-07 04:41:25 UTC
Created attachment 36936 [details]
widelands-0.0.8.ebuild

Ok, here's an ebuild for this. I am not sure that on which architectures will
this run, so I just put those mentioned in sourceforge download page, x86 and
ppc.
Comment 2 Christoph Brill (egore) (RESIGNED) 2004-08-14 04:57:14 UTC
working fine for me (on x86)
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-25 14:06:08 UTC
also fine here, renamed to 0.0.8 and changed the MY_V code to:

MY_V="b${PV:4:4}"

Then it builds and runs nice(pentium 4)
Comment 4 Christoph Brill (egore) (RESIGNED) 2004-12-20 08:16:33 UTC
Created attachment 46442 [details]
games-strategy/widelands-0.0.8

Ebuild with suggestion from Comment #3 (this one actually emerges 0.0.8, not
like the one above which is only named 0.0.8 and installs 0.0.7)
Comment 5 Anton Romanov 2005-01-12 08:14:38 UTC
works fine for me with build 9
(just renaming to widelands-0.0.9.ebuild)

now when the game is finally playable think it should be in portage
Comment 6 Peter `MathFox' Roozemaal 2005-01-12 13:16:41 UTC
With a one line patch to machdep.h the game also runs on amd64.

--- src/machdep.h.orig      2005-01-12 22:15:03.815622679 +0100
+++ src/machdep.h   2005-01-12 22:11:12.486265638 +0100
@@ -32,7 +32,7 @@
 #undef P_LITTLE_ENDIAN
 #define P_BIG_ENDIAN
 #define P_ALIGNMENT
-#elif defined (__i386__)
+#elif defined (__i386__) || defined (__amd64__)
 #undef P_BIG_ENDIAN
 #define P_LITTLE_ENDIAN
 #undef P_ALIGNMENT
Comment 7 Jan Marten Simons 2005-01-14 05:53:17 UTC
Created attachment 48457 [details]
My ebuild for b9 of widelands

I've created this ebuild (as I forgot to check here first). Maybe one could
merge both.
Comment 8 Mirko D. Walter 2005-01-21 06:25:02 UTC
ebuild for b9 works here
build, too
should be in portage I think.
Comment 9 Jan Simons 2005-01-21 18:35:11 UTC
Created attachment 49156 [details]
games-strategy/widelands-0.0.9

version bump of 0.0.8-ebuild (works for me)
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-08 14:54:18 UTC
Peter: is that patch still needed on 0.0.9?
Comment 11 Peter `MathFox' Roozemaal 2005-02-08 15:08:41 UTC
I made the patch to compile and run 0.0.9 on AMD64.

The patch makes widelands ~amd64.
Comment 12 Bernard Cafarelli gentoo-dev 2005-04-01 14:25:45 UTC
Works fine on my amd64 box here too (after sed'ing the machdep.h file)
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-04 19:49:43 UTC
Added to CVS...
Comment 14 nixnut (RETIRED) gentoo-dev 2005-10-29 05:18:41 UTC
Did anyone actually test this on a ppc before adding the ~ppc keyword?
I get an architecture not supported error.

 * Applying widelands-0.0.9-amd64.patch ...                               [ ok ]

>>> Source unpacked.
mkdir -p src/native-release src src/native-release/ui/ui_fs_menus
src/native-release/ui/ui_basic src/native-release/editor
src/native-release/editor/ui_menus src/native-release/editor/tools
g++ -pipe -Wall -I/usr/include/SDL -D_REENTRANT  -finline-functions -ffast-math
-funroll-loops -funroll-all-loops -fexpensive-optimizations -O3 -DNDEBUG -Isrc
-Isrc/ui/ui_fs_menus -Isrc/ui/ui_basic -Isrc/editor -Isrc/editor/ui_menus
-Isrc/editor/tools -MMD -MP -MF src/native-release/animation.o.d -c -o
src/native-release/animation.o src/animation.cc
In file included from src/filesystem.h:26,
                 from src/cmd_queue.h:24,
                 from src/instances.h:26,
                 from src/bob.h:26,
                 from src/animation.cc:22:
src/machdep.h:44:2: #error architecture not supported
In file included from src/cmd_queue.h:24,
                 from src/instances.h:26,
                 from src/bob.h:26,
                 from src/animation.cc:22:
src/filesystem.h: In member function `short int FileRead::Signed16(int)':
src/filesystem.h:125: error: `Little16' undeclared (first use this function)
src/filesystem.h:125: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/filesystem.h: In member function `ushort FileRead::Unsigned16(int)':
src/filesystem.h:126: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `int FileRead::Signed32(int)':
src/filesystem.h:127: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `uint FileRead::Unsigned32(int)':
src/filesystem.h:128: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `float FileRead::Float(int)':
src/filesystem.h:129: error: `LittleFloat' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Signed16(short int, int)':
src/filesystem.h:180: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Unsigned16(ushort, int)':
src/filesystem.h:181: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Signed32(int, int)':
src/filesystem.h:182: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Unsigned32(uint, int)':
src/filesystem.h:183: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Float(float, int)':
src/filesystem.h:184: error: `LittleFloat' undeclared (first use this function)
make: *** [src/native-release/animation.o] Error 1

!!! ERROR: games-strategy/widelands-0.0.9 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message


emerge info:
Portage 2.0.51.22-r3 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r6 ppc)
=================================================================
System uname: 2.6.12-gentoo-r6 ppc 7447A, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo                  
       "
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec berkdb bitmap-fonts crypt cups curl dlloader dvd dvdread
eds emboss esd fam fortran gdbm gif gnome gpm gstreamer gtk gtk2 hardened imlib
ipv6 jack java jpeg junit kde libwww mad motif mozilla mp3 mpeg mplayer mysql
ncurses network nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png
postgres python qt readline sdl slang spell sqlite ssl tcpd tiff truetype
truetype-fonts type1-fonts udev unicode vorbis xine xml xml2 xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 15 Luca Barbato gentoo-dev 2005-10-29 05:55:10 UTC
sedfixed ppc, it isn't gcc4 friendly anyway...
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2005-10-29 12:09:53 UTC
This bug is about adding the package to portage.  open a new bug for any other
issues.