LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   xmame slackbuild (https://www.linuxquestions.org/questions/slackware-14/xmame-slackbuild-437198/)

Harp00 04-20-2006 02:38 PM

xmame slackbuild
 
Could anybody help me to find a slackbuild for xmame?
I can not write it on my own, so S. O. S.
Thank you!

perfect_circle 04-20-2006 03:05 PM

Quote:

Originally Posted by Harp00
Could anybody help me to find a slackbuild for xmame?
I can not write it on my own, so S. O. S.
Thank you!

The problem with xmame is that it does not use the gnu ./configure stuff.

It only contains a makefile.unix you need to alter suitable for your system.

I can give you mine makefile.unix/slackbuild but it's for athlon xp and I don't use /tmp for creating the slackware package but /slack_pack. Also in slackware current there is a new gcc so instead of -mcpu there is -mtune in the files.

Harp00 04-20-2006 03:29 PM

I am thinking to type meke and make install in order to have xmame installed because I am waiting since too much time.
If you like your makefile would be apreciated, also because i have a Athlon processor too.
TNX, Franco.

perfect_circle 04-20-2006 05:05 PM

do you wan't me to mail them to you?

Ellops 04-20-2006 07:52 PM

theres a slack package in x.mame.net

Harp00 04-21-2006 07:54 PM

Trying with this Slackbuild:
#!/bin/sh
#
# SlackBuild for xmame
#
##################################
## Creator: Stefano Stabellini ##
## stefano@stabellini.net ##
## http://www.stabellini.net ##
##################################
#

CWD=`pwd`
if [ "$TMP" = "" ]; then
TMP=/tmp
fi

if [ ! -d $TMP ]; then
mkdir -p $TMP # location to build the source
fi
PKG=/tmp/package-xmame

VERSION=0.103
ARCH=${ARCH:-athlon-xp}
BUILD=Hrp

if [ "$ARCH" = "athlon-xp" ]; then
SLKCFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387 -mcpu=athlon-xp"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi

rm -rf $PKG
mkdir -p $PKG/usr
echo "+================+"
echo "| xmame-$VERSION |"
echo "+================+"
cd $TMP
rm -rf xmame-$VERSION
tar xvjf $CWD/xmame-$VERSION.tar.bz2
cd xmame-$VERSION
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 700 -exec chmod 755 {} \;
find . -perm 744 -exec chmod 755 {} \;
find . -perm 666 -exec chmod 644 {} \;
find . -perm 664 -exec chmod 644 {} \;
find . -perm 600 -exec chmod 644 {} \;
cp $CWD/makefile.unix ./
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
make install
strip $PKG/usr/bin/*
chown -R root.bin $PKG/usr/bin
gzip -9 $PKG/usr/man/man6/*
mkdir -p $PKG/usr/doc/xmame-$VERSION
cp doc/* $PKG/usr/doc/xmame-$VERSION
cp README $PKG/usr/doc/xmame-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
#cat $CWD/slack-required > $PKG/install/slack-required
requiredbuilder $PKG
cd $PKG
makepkg -l y -c n ../xmame-$VERSION-$ARCH-$BUILD.tgz




I unfortunately receive this error

Compiling src/machine/segacrpt.c ...
cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [xmame.obj/machine/segacrpt.o] Error 1


What should i do to fix it?
Thanks

perfect_circle 04-21-2006 08:40 PM

of course. look at this:
Code:

cp $CWD/makefile.unix ./
The guy has a makefile.unix file suitably altered and it replaces the default one.

You need the makefile.unix file also

Harp00 04-22-2006 01:28 AM

:newbie: Sorry!!
You are right.
Ok. I put makefile.unix in CWD and now it seems to work.
I left my PC compiling at home while i am working.
I will tell you if it will work.

Harp00 04-22-2006 01:34 AM

[OT]P.S. I tried to visit your site, perfect_circle, but it is too much difficult to interpretate. :confused:
I saw you linked www.slacky.it. I appreciate it.
We are a grat Slackware community with a lot of good packages. A sudamerican review just wrote few lines about it. Everybody is happy about it.[/OT]

perfect_circle 04-22-2006 01:49 AM

Quote:

Originally Posted by Harp00
[OT]P.S. I tried to visit your site, perfect_circle, but it is too much difficult to interpretate. :confused:
I saw you linked www.slacky.it. I appreciate it.
We are a grat Slackware community with a lot of good packages. A sudamerican review just wrote few lines about it. Everybody is happy about it.[/OT]

slacky.it is realy great. I appreciate the fact that they also offer slackbuilds. I'm always compiling this by myself since I'm in slackware-current to make use of the new stuff. I always take a look of the slacky.it slackbuilds.

too bad it's in italian only :).

If I find the time I may translate my site in english too. But the only usefull thing in there is a guide for greek support in slackware, so it's only usefull for Greeks I guess....

I wan't also to include some slackbuilds there.
We 'll see.

If you care about slackbuilds here are some sites I have bookmarked:
http://home.tele2.fr/solsTiCe/build/
http://slackbuild.strangeworlds.co.uk/

Harp00 04-22-2006 05:24 AM

Quote:

Originally Posted by perfect_circle
slacky.it is realy great. I appreciate the fact that they also offer slackbuilds. I'm always compiling this by myself since I'm in slackware-current to make use of the new stuff. I always take a look of the slacky.it slackbuilds.

too bad it's in italian only :).

If I find the time I may translate my site in english too. But the only usefull thing in there is a guide for greek support in slackware, so it's only usefull for Greeks I guess....

I wan't also to include some slackbuilds there.
We 'll see.

If you care about slackbuilds here are some sites I have bookmarked:
http://home.tele2.fr/solsTiCe/build/
http://slackbuild.strangeworlds.co.uk/

We all Slacky.it members are waiting for third edition of Slackware for dummies. A great manual written principally by a moderator (Samiel) of Slacky.it with the help of a lot of members.
I think that project will be translated in english too. (about 250 pages)

P.S. Let talk about xmame.
Could you please send me your Slackbuild and makefile.unix?
Or could you link it to me?
I can not understand a word og greek in your site.
:-)
Thank you.

perfect_circle 04-23-2006 02:33 PM

I've sent you an e-mail. You need to reply so I can get your address.

Alien Bob 04-24-2006 06:51 AM

I'll have a look at producing a working xmame.SlackBuild - boy that xmame is a fat bastard (pardon le mot) to build!
Looks like it will take some time, but when the build is ready (for a Slackware 10.2 system) I'll post a link to the package, so you can verify if it works (I don't use MAME myself).

I am building with SDL graphics, and ALSA/SDL sound, and generic/SDL/USB joystick support. The build is for i386 platform but I think I wrote the SlackBuild so that it will be correct for other hardware platforms as well.

Eric

rkelsen 04-24-2006 07:40 AM

Quote:

Originally Posted by Alien Bob
I'll have a look at producing a working xmame.SlackBuild - boy that xmame is a fat bastard (pardon le mot) to build!

Wait until you see the size of the binary.

Mine is ~ 40 megs stripped. Shocking.

Harp00 04-24-2006 09:18 AM

Quote:

Originally Posted by Alien Bob
I'll have a look at producing a working xmame.SlackBuild - boy that xmame is a fat bastard (pardon le mot) to build!
Looks like it will take some time, but when the build is ready (for a Slackware 10.2 system) I'll post a link to the package, so you can verify if it works (I don't use MAME myself).

I am building with SDL graphics, and ALSA/SDL sound, and generic/SDL/USB joystick support. The build is for i386 platform but I think I wrote the SlackBuild so that it will be correct for other hardware platforms as well.

Eric

Yeah, it sounds nice.
Waiting for your TGZ and Slackbuild.
Thank you very much.


All times are GMT -5. The time now is 05:27 AM.