i join a ebuild proposal for machineball (http://benny.kramekweb.com/ machineball/). This is a very funny two players only game. The ebuild uses the binaries and not the sources, since sources need a lot of librairies to be compiled. I dont know if it is accepted by the gentoo system, so just say. Reproducible: Always Steps to Reproduce:
Created attachment 67077 [details] machineball 1.0 ebuild for binaries
*** Bug 104034 has been marked as a duplicate of this bug. ***
*** Bug 104033 has been marked as a duplicate of this bug. ***
Looks like it uses pretty stock libraries to me. A source-based ebuild is preferred.
ok, ive made it for sources. The author said it was the hell to compile the game, but with gentoo it is as easy as make some eggs :) ive masked (~x86) it since the README tell it has still some bugs :( so, enjoy!
Created attachment 67176 [details] Machineball 1.0 source ebuild
few comments on the ebuild: - drop the src_unpack and src_compile methods. inheriting games does this by default - set S globally (right after the depend block, before src_install)
Created attachment 68979 [details] machineball-1.0.ebuild tidied up ebuild
Source compiles good, but when i start the game (tried different resolutions and other options) i got: lazy_bum@maszyna ~ $ machineball Machine Ball Version 1.0 By Benny Kramek benny@kramekweb.com http://benny.kramekweb.com Configuration file: /home/lazy_bum/.machineballrc Shutting down Allegro due to signal #11 Segmentation fault Gentoo Base System version 1.6.14 Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14 -gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 Pentium II (Deschutes) distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable d] dev-lang/python: 2.4.2 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 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.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/t erminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/tmp/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/ distributions/gentoo" LANG="pl_PL" LC_ALL="en_US" LDFLAGS="-Wl,-O1" LINGUAS="pl" MAKEOPTS="-j2 -s" PKGDIR="/var/tmp/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cli cr ypt eds emboss encode foomaticdb fortran ftp gdbm gif gpm gstreamer gtk gtk2 iml ib ipv6 isdnlog jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls npt l ogg oggvorbis opengl pam pcre pdflib perl png pppd python qt quicktime readlin e reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev usb userlocales vorbis wxgtk1 xml xorg xv zlib elibc_glibc input_devices_mo use input_devices_keyboard kernel_linux linguas_pl userland_GNU video_cards_nv v ideo_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK The binary from home page works fine, but i want a Gentoo way! (:
Created attachment 224429 [details] machineball-1.0.ebuild Missing only DESCRIPTION but I can't really test it, because allegro's dat2c command is x86-only, and I don't have 32bit system ...
Created attachment 224431 [details] machineball-1.0.ebuild Respect LDFLAGS, try to workaround execstacks Looks dead upstream though :(
the required packages: virtual / opengl virtual / glu dev-games/ode > = media-libs/allegro-4.4.1.1 [opengl] media-libs/dumb-0.9.3-r1 media-libs/aldumb and implementation mother machinebal-1.0 are stable for x86. I would say put it in portage as stable x86.
Forgive me, but there is a problem: Mesa: User error: GL_STACK_OVERFLOW in glPushMatrix (mode = GL_PROJECTION) Mesa: User error: GL_STACK_OVERFLOW in glPushMatrix (mode = GL_PROJECTION) and fonts only come out squares instead of letters, openGL problem?
Created attachment 314053 [details] machineball-1.0-r1.ebuild i install libstdc++ libstdc++-v3 and it works without any problems on x86 platform new ebuild added this dependence:libstdc++ libstdc++-v3
Comment on attachment 314053 [details] machineball-1.0-r1.ebuild ># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=2 >inherit eutils flag-o-matic games > >DESCRIPTION="" >HOMEPAGE="http://benny.kramekweb.com/machineball/" >SRC_URI="http://benny.kramekweb.com/${PN}/${PN}-src-${PV}-1.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="" > >DEPEND="virtual/opengl > virtual/glu > dev-games/ode > >=media-libs/allegro-4.4.1.1[opengl] > media-libs/dumb > media-libs/aldumb > virtual/libstdc++-3.3 > sys-libs/libstdc++" > >S=${WORKDIR}/${PN}-src > >src_prepare() { > sed -i \ > -e 's:gcc:$(CC) $(LDFLAGS) $(CFLAGS):' \ > -e 's:-lagl:-lalleggl:' \ > Makefile || die >} > >src_compile() { > append-ldflags -Wl,-z,noexecstack > emake || die >} > >src_install() { > dogamesbin ${PN} || die > dodoc README > newicon ${PN}-icon-48x48.xpm ${PN}.xpm > make_desktop_entry ${PN} ${PN} > prepgamesdirs >} >