Bug 25921 - PORT UPDATE: emulators/xmame and emulators/xmess
Summary: PORT UPDATE: emulators/xmame and emulators/xmess
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-19 15:40 UTC by stijn
Modified: 2001-03-30 11:17 UTC (History)
1 user (show)

See Also:


Attachments
xmamemess.shar.gz (7.47 KB, text/plain)
2001-03-19 15:40 UTC, stijn
no flags Details
xmame-20010327.patch (858 bytes, patch)
2001-03-27 07:57 UTC, stijn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stijn 2001-03-19 15:40:01 UTC
This PR supercedes PR ports/25283.

- Update to the version 0.37b12.1 of xmame/xmess
- Make emulators/xmess a slave port of emulators/xmame
- Add SDL support (enabled by default)
- Add DGA support for non-SDL builds
- Define spool directory to /var/games/x{mame,mess}, and install binary
  setgid games to avoid creating a world writable directory
- Add hiscore.dat, history.dat, and cheat.dat support for xmame
- Convert patch-ab into ${SED} in ports Makefile
- Add CPS-2 patches for xmame; this enables more games
- Enable optimization for xmame/xmess by default
- Add support for new xwpcmame port (included) as a slave port of
  emulators/xmame

NOTE: current maintainers for xmame/xmess CC'd

How-To-Repeat: 
See attached shar file; I didn't use diffs because those would be
bigger than this shar file.
Comment 1 Jimmy Olgeni freebsd_committer freebsd_triage 2001-03-19 20:39:52 UTC
Responsible Changed
From-To: freebsd-ports->olgeni

I'll handle this.
Comment 2 stijn 2001-03-21 11:59:14 UTC
Hi,

On Tue, Mar 20, 2001 at 10:46:16PM +0100, Jimmy Olgeni wrote:
> I just finished compiling the xmame port: looks good!

Good!

> I had some problems with xmess: it calls xmess.SDL -showconfig | grep
> -v loadconfig, and it fails in console mode (xmess.SDL will work on
> X11 only)... is there any way to make it compile in console mode?

Hmm, I couldn't reproduce this in a screen session with DISPLAY unset.
But I did see SDL using aalib; are you sure SDL doesn't use aalib by
default in a console window?

> Patches welcome :)

I'll try to patch it so that -showconfig et al. don't initialize SDL.
That should solve the problem.

What's also bugging me is that xmame does work; that seems kind of strange
to me...

I'll let you know when I've sorted these issues out.

BTW, I hope you tested PR 25921? The subject still said 25283, which was
the old one (which you already closed).

Thanks for looking at this PR!

--Stijn

-- 
The right half of the brain controls the left half of the body.  This
means that only left handed people are in their right mind.
Comment 3 stijn 2001-03-25 17:41:42 UTC
Hi,

On Tue, Mar 20, 2001 at 10:46:16PM +0100, Jimmy Olgeni wrote:
> I had some problems with xmess: it calls xmess.SDL -showconfig | grep
> -v loadconfig, and it fails in console mode (xmess.SDL will work on
> X11 only)... is there any way to make it compile in console mode?

Well, I can't reproduce this. On a fresh machine, when I make in xmess,
it builds as a dependency devel/sdl-devel, which in turn builds AAlib.
And that gets used as the SDL display target if X11 is not found.
See this extract from my build logs (without $DISPLAY):

./xmess.SDL -noloadconfig -showconfig | \
 grep -v loadconfig > doc/xmessrc.dist
Warning: Unable to initialize AAlib mouseUsing AAlib driver: Curses driver 1.0 (
curses)
SDL: Info: SDL initialized

Are you sure you have sdl-devel installed, and not 'plain' sdl?

Otherwise, can you send me the errorlogs?

--Stijn

-- 
"I'm not under the alkafluence of inkahol that some thinkle peep I am.
It's just the drunker I sit here the longer I get."
Comment 4 stijn 2001-03-27 07:57:43 UTC
Hi,

On Mon, Mar 26, 2001 at 12:04:14PM +0200, Jimmy Olgeni wrote:
> I did some tests with xmess: it does compile correctly if I run "make"
> as an ordinary user (SDL works in console too, using aalib), but fails
> when I compile it as root. Looks like an issue with SDL/aalib and the
> root user. Could it be? I have the latest sdl-devel.

Ok, I checked this out, and you're right. It seems that the SDL/svgalib
target is problematic with xmess. I really wouldn't know why though,
but I'll check with the xmess developers.

In the meantime, I think I fixed the xmess build as root on the console
by the patch attached; can you test & commit using this?

--Stijn

-- 
Nostalgia ain't what it used to be.
Comment 5 Jimmy Olgeni 2001-03-28 00:18:46 UTC
Oops, last followup got lost.

So here it is:

"I committed xmame and xmess, I still have to import xwpcmame.

Thanks!"
Comment 6 stijn 2001-03-30 10:04:30 UTC
On Tue, Mar 27, 2001 at 12:40:01PM +0200, Jimmy Olgeni wrote:
> I committed xmame and xmess, I still have to import xwpcmame.

Hmm, this can wait - it seems they renamed to pinmame, and put out
a new version. I'm busy updating it right now, so xwpcmame will
never be, but hopefully xpinmame will :)

Anyway, this PR can then be closed I guess.

--Stijn

-- 
The right half of the brain controls the left half of the body.  This
means that only left handed people are in their right mind.
Comment 7 Jimmy Olgeni freebsd_committer freebsd_triage 2001-03-30 11:13:49 UTC
State Changed
From-To: open->closed

xwpcmame (pinmame) will be imported later (originator's request)