You are not logged in.

#1 2008-07-12 16:35:04

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

[DONE] CXMame. ncurses frontend for mame

Homepage:
http://yeeking.net/cxmame/

From that page:

Introduction
CXmame is a simple console based frontend for xmame, written in C using the ncurses library. It should run on all GNU/linux boxes, and hopefully other Unices

I started building this because I thought it would be nice to have a console based frontend for xmame.svgalib, especially for people who want to run xmame on a machine without X. But I suppose something like this is ideal for someone who just wants a minimal frontend - I like typing the game names to jump to them in the menu ;=)

Screenshots:
http://yeeking.net/cxmame/images/cxmame-0.png
http://yeeking.net/cxmame/images/cxmame-1.png

Source:
http://yeeking.net/cxmame/files/cxmame- … rc.tar.bz2

Installation:

Just unpack the tarball anywhere you have write permissions, eg

$ tar zxf cxmame-0.4.src.tar.gz
or
$ tar xfj cxmame-0.4.src.tar.bz2

then cd to the directory and:

make
make install

note - make install needs to be done as root.

Before you run cxmame you have to create a ~/.cxmamerc file containing the name of the xmame exectable you want to use (with full path if its not in your PATH ), followed by a ';'. For example my ~/.cxmamerc looks like this.

xmame.svgalib;

Then, the first time you run cxmame it will scan your roms and
build a gamelist from them. This could take a little while depending on how
many roms you've got in your rompath, but it only happens the first time.
( you have to set your rompath as per normal , eg in your xmamerc file ).

So far i try to make the PKGBUILD, with no sucess tongue

# Contributor: Leandro Chescotta <leandro.chescotta@gmail.com>
pkgname=cxmame
pkgver=0.4.2
pkgrel=1
pkgdesc="CXmame is a simple console based frontend for xmame, written in C using the ncurses library"
arch=('i686' 'x86_64')
url="http://yeeking.net/cxmame/"
license=('GPL')
groups=()
depends=()
makedepends=()
provides=(cxmame)
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://yeeking.net/cxmame/files/$pkgname-$pkgver.src.tar.bz2)
noextract=()
md5sums=('b8242450d947db73e35bcb602a71cba7') #generate with 'makepkg -g'

build() {
    cd "$srcdir/$pkgname-$pkgver"

    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install

TNX for read!

Last edited by leo2501 (2009-02-28 19:38:18)


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2008-07-12 17:04:02

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: [DONE] CXMame. ncurses frontend for mame

This software doesn't use the GNU autotools so ./configure etc is not applicable.  The Makefile also hard codes the location of the 'install' program to /usr/bin/install whereas on Arch it is at /bin/install so we need to patch the Makefile slightly.  Try the following build function in your PKGBUILD:

build() {
    cd "$srcdir/$pkgname-$pkgver" || return 1
# correct location of install in the Makefile
    sed -i 's/\/usr\/bin\/install/\/bin\/install/' Makefile || return 1
# create intended target directory
    install -m755 -d $pkgdir/usr/bin || return 1

    make || return 1
    make INSTALL_DIR=$pkgdir/usr/bin install || return 1
}

You may also want a 'cxmame.install' file to tell users to create a ~/.cxname file as per the README.

Last edited by ghostHack (2008-07-12 17:08:39)

Offline

#3 2008-07-12 19:42:19

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [DONE] CXMame. ncurses frontend for mame

it works great! i just upload it to AUR, it's my first package! lol tongue

still don't know how to edit the .xmamerc file to get the roms loaded neutral


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#4 2008-07-12 20:05:23

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [DONE] CXMame. ncurses frontend for mame

this do the trick...

sdlmame -showconfig > ~/.xmame/xmamerc

but still can't get mame to show me the roms sad


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

Board footer

Powered by FluxBB