diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-12 23:29:16 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:29:16 +0200 |
commit | a5067fbcceb21542536a1f438eb401f69eadf9c3 (patch) | |
tree | f84db6cc41aa67487e05c186e99863164b8f2161 | |
parent | e8259575a4e93bcd88cc8eeb4019d4532337d8b9 (diff) | |
download | slackbuilds-a5067fbcceb21542536a1f438eb401f69eadf9c3.tar.gz |
games/desmume: Added to 12.2 repository
-rw-r--r-- | games/desmume/README | 13 | ||||
-rw-r--r-- | games/desmume/desmume.SlackBuild | 66 | ||||
-rw-r--r-- | games/desmume/desmume.info | 8 | ||||
-rw-r--r-- | games/desmume/doinst.sh | 3 | ||||
-rw-r--r-- | games/desmume/slack-desc | 19 |
5 files changed, 109 insertions, 0 deletions
diff --git a/games/desmume/README b/games/desmume/README new file mode 100644 index 0000000000..c620902bcf --- /dev/null +++ b/games/desmume/README @@ -0,0 +1,13 @@ +DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games. + +This requires gtkglext. + +Optionally DeSmuMe can use zziplib 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
\ No newline at end of file diff --git a/games/desmume/desmume.SlackBuild b/games/desmume/desmume.SlackBuild new file mode 100644 index 0000000000..acd395e13e --- /dev/null +++ b/games/desmume/desmume.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for desmume + +# Written by Larry Hajali <larryhaja[at]gmail[dot]com> + +PRGNAM=desmume +VERSION=${VERSION:-0.9.2} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --enable-gdb-stub \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/games/desmume/desmume.info b/games/desmume/desmume.info new file mode 100644 index 0000000000..a42bd7496c --- /dev/null +++ b/games/desmume/desmume.info @@ -0,0 +1,8 @@ +PRGNAM="desmume" +VERSION="0.9.2" +HOMEPAGE="http://desmume.org/" +DOWNLOAD="http://downloads.sourceforge.net/desmume/desmume-0.9.2.tar.gz" +MD5SUM="51482de785dce04590532b946321196d" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" +APPROVED="dsomero" diff --git a/games/desmume/doinst.sh b/games/desmume/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/desmume/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/games/desmume/slack-desc b/games/desmume/slack-desc new file mode 100644 index 0000000000..74f7e98843 --- /dev/null +++ b/games/desmume/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +desmume: desmume (Nintendo DS emulator) +desmume: +desmume: DeSmuME is a Nintendo DS emulator running homebrew demos and +desmume: commercial games. +desmume: +desmume: Homepage: http://desmume.org/ +desmume: +desmume: +desmume: +desmume: +desmume: |