Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New MAME 0.139 ebuild!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  

Do you game with MAME?
Yes, I am an arcade junkie!
52%
 52%  [ 10 ]
No, I can live without emulated games!
15%
 15%  [ 3 ]
Sometimes.
21%
 21%  [ 4 ]
What is MAME?
10%
 10%  [ 2 ]
Total Votes : 19

Author Message
SiRuS
n00b
n00b


Joined: 05 Sep 2006
Posts: 45
Location: California,USA

PostPosted: Wed Aug 04, 2010 9:06 pm    Post subject: New MAME 0.139 ebuild! Reply with quote

Hi Gentoo Users and MAME fans,

I know there are a lot of people who like MAME and regularly use it. Here is a recent posting from Belmont's website:
Quote:

Important Note on SDLMAME and SDLMESS

There are no longer separate programs called SDLMAME or SDLMESS. Instead, the SDL capability is included in MAME and MESS, and the makefile will auto-detect if you are on a non-Windows system and run accordingly. You now get the source directly from MAMEdev or MESSdev rather than from here.


The current version of sdlmame is the portage tree is 0.136. MAME is a very actively developed project and it is important to use the recent versions to get new and/or updated features. I was wondering if anyone could help adapting the current ebuild file to work with the non-sdlmame and official MAMEdev source file from this website: http://mamedev.org/release.html

Here is the 0.136 ebuild:
Code:

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.136.ebuild,v 1.4 2010/05/22 15:06:54 pacho Exp $

EAPI=2
inherit eutils flag-o-matic games

MY_PV=${PV/.}
MY_PV=${MY_PV/_p/u}
MY_P=${PN}${MY_PV}
MY_CONF_PN=${PN/sdl}
DESCRIPTION="Multiple Arcade Machine Emulator (SDL)"
HOMEPAGE="http://rbelmont.mameworld.info/?page_id=163"
# Upstream doesn't allow fetching with unknown User-Agent such as wget
SRC_URI="mirror://gentoo/${MY_P}.zip
   mirror://gentoo/${PN}-manpages.tar.gz"

LICENSE="XMAME"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="opengl"

RDEPEND=">=media-libs/libsdl-1.2.10[audio,joystick,opengl?,video]
   dev-libs/expat
   x11-libs/libXinerama
   x11-libs/gtk+:2
   gnome-base/gconf:2"
DEPEND="${RDEPEND}
   app-arch/unzip
   x11-proto/xineramaproto"

S=${WORKDIR}/${MY_P}

# Function to disable a makefile option
disable_feature() {
   sed -i \
      -e "/$1.*=/s:^:# :" \
      "${S}"/makefile \
      || die "sed failed"
}

# Function to enable a makefile option
enable_feature() {
   sed -i \
      -e "/^#.*$1.*=/s:^# ::"  \
      "${S}"/makefile \
      || die "sed failed"
}

src_prepare() {
   sed -i \
      -e '/CFLAGS += -O$(OPTIMIZE)/s:^:# :' \
      -e '/CFLAGS += -pipe/s:^:# :' \
      -e '/LDFLAGS += -s/s:^:# :' \
      -e 's:-Werror::' \
      makefile \
      || die "sed failed"
   # Don't compile zlib and expat
   einfo "Disabling embedded libraries: zlib and expat"
   disable_feature BUILD_ZLIB
   disable_feature BUILD_EXPAT

   if use amd64; then
      einfo "Enabling 64-bit support"
      enable_feature PTR64
   fi

   if use ppc; then
      einfo "Enabling PPC support"
      enable_feature BIGENDIAN
   fi
}

src_compile() {
   local make_opts

   use opengl || make_opts="${make_opts} NO_OPENGL=1"

   emake \
      NAME="${PN}" \
      OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CFLAGS}" \
      SUFFIX="" \
      ${make_opts} \
      || die "emake failed"
}

src_install() {
   dogamesbin ${PN} || die "dogamesbin ${PN} failed"

   # Follows xmame ebuild, avoiding collision on /usr/games/bin/jedutil
   exeinto "$(games_get_libdir)/${PN}"
   local f
   for f in chdman ldverify jedutil romcmp testkeys; do
      doexe "${f}" || die "doexe ${f} failed"
   done

   insinto "${GAMES_DATADIR}/${PN}"
   doins ui.bdf || die "doins ui.bdf failed"
   doins -r keymaps || die "doins -r keymaps failed"

   insinto "${GAMES_SYSCONFDIR}/${PN}"
   doins "${FILESDIR}"/{joymap.dat,vector.ini} || die "doins joymap.dat vector.ini failed"

   sed \
      -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
      -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
      "${FILESDIR}"/mame.ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/"mame.ini \
      || die "sed failed"

   dodoc docs/{config,mame,newvideo}.txt *.txt
   doman "${WORKDIR}/${PN}-manpages"/*

   keepdir \
      "${GAMES_DATADIR}/${PN}"/{roms,samples,artwork} \
      "${GAMES_SYSCONFDIR}/${PN}"/ctrlr

   prepgamesdirs
}

pkg_postinst() {
   games_pkg_postinst

   elog "It's strongly recommended that you change either the system-wide"
   elog "${MY_CONF_PN}.ini at \"${GAMES_SYSCONFDIR}/${PN}\" or use a per-user setup at \$HOME/.${PN}"

   if use opengl; then
      echo
      elog "You built ${PN} with opengl support and should set"
      elog "\"video\" to \"opengl\" in ${MY_CONF_PN}.ini to take advantage of that"
   fi
}

Within the mame0139s.zip source zip there is another zip called mame.zip. This contains all the source code. I wanted to work out a revised & working ebuild with the community before submitting anything to gentoo BugZilla or Gentoo Games team. Since the separate sdlmame package doesn't exist anymore, I was thinking a great name for the games-emulation tree entry would be simply game-emulation/mame.

Any thoughts and help is much appreciated. MAME is a great project and my main goal is to make sure all Gentoo users have access to the latest and greatest MAME packages!

Thank you!
SiRuS
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Wed Aug 04, 2010 10:06 pm    Post subject: Reply with quote

SiRuS,

You may find some help in this bug
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
SiRuS
n00b
n00b


Joined: 05 Sep 2006
Posts: 45
Location: California,USA

PostPosted: Thu Aug 05, 2010 3:08 am    Post subject: Reply with quote

Thanks NeddySeagoon! That was an extremely helpful link.

I updated the sdlmame ebuild to version 0.139 at this bug

Also qmc2, an spectacular MAME frontend, is updated to version 0.2.b16 at this bug

I have tested both of these on an AMD64 gentoo system and both build & install quite nicely.

One note, in qmc2 make sure the sdlmame executable is set to /usr/games/bin/sdlmame64 and everything should work fine.

For those who want to know more about the MAME (Multiple Arcade Machine Emulator) project head over to this link
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Fri Aug 06, 2010 10:36 am    Post subject: Reply with quote

* ERROR: games-emulation/qmc2-0.2_beta16 failed:
* make failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 3087: Called die
* The specific snippet of code:
* emake ${FLAGS} || die "make failed"

is what the ebuild for qmc2 is giving me, how did you get it to compile on amd64?

edit: not sure if i have qt4 in seeing as im using fluxbox, guessing that is the culprit
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Fri Aug 06, 2010 1:54 pm    Post subject: Reply with quote

Carps,

We need the build log file to see what broke.
The path to the log is given in the fail message you posted a part of.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Fri Aug 06, 2010 5:25 pm    Post subject: Reply with quote

have put qt4 and a few other things on, will see if that helps, i think it is the issue - will report back with info you require if it happens again

edit: it was because qt4 was missing, it compiled fine this time :-)
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Fri Aug 06, 2010 7:45 pm    Post subject: Reply with quote

Carps,

Please comment on the bug that qt4 is required and explain what you did to prove it.
The ebuild as is will work for users that have qt4 already but the ebuild should depend on it, so it gets pulled in if needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Aug 07, 2010 6:16 am    Post subject: Reply with quote

would having -kde in /etc/make.conf cause it not to pull in qt4? Only ask as i was testing various desktops on there yesterday, so the system wasn't clean to start off with, will test again with a clean system and post on the tracker, although i only have the one email address and don't like it being public, seems to show it on the tracker, so hesitant to do so.
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Sat Aug 07, 2010 11:07 am    Post subject: Reply with quote

Carps,

Nope. If a package requires qt4, its supposed to depend on it.
Setting -kde turns off optional support for KDE, in packages that have such an option.
It does not prevent dependencies for other packages being pulled in.

I thought you had to be logged in to see email addresses. I understand you not wanting to make your only email address public.

Maybe get a gmail address just for contributing to the open source community
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Aug 07, 2010 11:26 am    Post subject: Reply with quote

yes i suppose one more isnt going to hurt, like i say i shall be installing gentoo onto my main pc later, if i can find out why chromium wont see flash on my x64 laptop, if needs be i can put 32bit gentoo on there as i only have 3gb of ram, but for main pc which has 8gb losing 5gb is a bit more than i would like to lose :D
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Sat Aug 07, 2010 11:31 am    Post subject: Reply with quote

Carps,

The new flash player, fixing the security issues is not available in 64 bit.
You need to use the 32 bit plugin with a wrapper.
I don't need flash, its just another security hole, so I don't have any more detail.

There have been so many security updates to flash over the years, I'm sure its not secure yet.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Aug 07, 2010 11:49 am    Post subject: Reply with quote

I only need it for mafia wars and blogtv, i found the info i required.



Problem solved

see below
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.


Last edited by FizzyWidget on Sun Aug 08, 2010 12:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sun Aug 08, 2010 12:04 pm    Post subject: Reply with quote

Must have been where i was messing about with useflags and such when i was testing out different DE's, just installed fine on main PC :-)
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum