games/desmume: Updated for version 0.9.5

This commit is contained in:
Larry Hajali 2010-05-13 00:26:07 +02:00 committed by Michiel van Wessem
parent 4da2e3ee47
commit 8a6d114c1e
4 changed files with 27 additions and 20 deletions

View File

@ -1,13 +1,5 @@
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games. DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games.
This requires gtkglext. DeSmuME requires gtkglext and agg.
Optionally DeSmuMe can use zziplib if installed. Optionally DeSmuMe can use zziplib and lua if installed.
Note about Nvidia drivers:
DeSmuMe doesn't compile with Nvidia's OpenGL header files. To compile DeSmuMe
on computers with SlackBuilds.org Nvidia Drivers run the following commands:
nvidia-switch --xorg
./desmume.SlackBuild
nvidia-switch --nvidia

View File

@ -1,11 +1,9 @@
#!/bin/sh #!/bin/sh
# Slackware build script for desmume # Slackware build script for desmume
# Written by Larry Hajali <larryhaja[at]gmail[dot]com> # Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=desmume PRGNAM=desmume
VERSION=${VERSION:-0.9.2} VERSION=${VERSION:-0.9.5}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -17,10 +15,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -38,16 +39,25 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
# Fix end-of-line encoding.
sed -i 's/\r//' AUTHORS ChangeLog
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/man \ --mandir=/usr/man \
--enable-osmesa \
--enable-gdb-stub \ --enable-gdb-stub \
--enable-wifi \
--with-x \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
make install-strip DESTDIR=$PKG make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man ( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \; find . -type f -exec gzip -9 {} \;
@ -55,7 +65,9 @@ make install-strip DESTDIR=$PKG
) )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION cp -a \
AUTHORS ChangeLog COPYING INSTALL README README.LIN \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
@ -63,4 +75,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,10 @@
PRGNAM="desmume" PRGNAM="desmume"
VERSION="0.9.2" VERSION="0.9.5"
HOMEPAGE="http://desmume.org/" HOMEPAGE="http://desmume.org/"
DOWNLOAD="http://downloads.sourceforge.net/desmume/desmume-0.9.2.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/sourceforge/desmume/desmume-0.9.5.tar.gz"
MD5SUM="51482de785dce04590532b946321196d" MD5SUM="aca40a8507d4104626da7086d451037b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali" MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com" EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="dsomero" APPROVED="michiel"

View File

@ -1,3 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi fi