LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-20-2006, 02:38 PM   #1
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Rep: Reputation: 30
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!
 
Old 04-20-2006, 03:05 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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.

Last edited by perfect_circle; 04-20-2006 at 03:11 PM.
 
Old 04-20-2006, 03:29 PM   #3
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
Old 04-20-2006, 05:05 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
do you wan't me to mail them to you?

Last edited by perfect_circle; 04-20-2006 at 06:58 PM.
 
Old 04-20-2006, 07:52 PM   #5
Ellops
Member
 
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124

Rep: Reputation: 15
theres a slack package in x.mame.net
 
Old 04-21-2006, 07:54 PM   #6
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
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
 
Old 04-21-2006, 08:40 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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
 
Old 04-22-2006, 01:28 AM   #8
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
Old 04-22-2006, 01:34 AM   #9
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
[OT]P.S. I tried to visit your site, perfect_circle, but it is too much difficult to interpretate.
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]
 
Old 04-22-2006, 01:49 AM   #10
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by Harp00
[OT]P.S. I tried to visit your site, perfect_circle, but it is too much difficult to interpretate.
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/
 
Old 04-22-2006, 05:24 AM   #11
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
Old 04-23-2006, 02:33 PM   #12
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I've sent you an e-mail. You need to reply so I can get your address.
 
Old 04-24-2006, 06:51 AM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,189

Rep: Reputation: Disabled
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
 
Old 04-24-2006, 07:40 AM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
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.
 
Old 04-24-2006, 09:18 AM   #15
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a generic SlackBuild shilo Slackware 46 06-19-2008 11:45 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM
KDE 3.5.1 slackbuild? bird603568 Slackware 7 02-04-2006 12:35 AM
SlackBuild guildline kaon Slackware 3 12-22-2005 10:52 AM
SlackBuild system thegeekster Slackware 7 06-01-2004 06:59 PM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration