aboutsummaryrefslogtreecommitdiff
path: root/games/smc
diff options
context:
space:
mode:
Diffstat (limited to 'games/smc')
-rw-r--r--games/smc/README31
-rw-r--r--games/smc/doinst.sh3
-rw-r--r--games/smc/slack-desc19
-rw-r--r--games/smc/smc.SlackBuild85
-rw-r--r--games/smc/smc.desktop8
-rw-r--r--games/smc/smc.info10
6 files changed, 156 insertions, 0 deletions
diff --git a/games/smc/README b/games/smc/README
new file mode 100644
index 0000000000000..a1cfb3ec335d8
--- /dev/null
+++ b/games/smc/README
@@ -0,0 +1,31 @@
+smc (Secret Maryo Chronicles)
+
+Secret Maryo Chronicles is an Open Source two-dimensional platform game
+with a style designed similar to classic sidescroller games such as
+Super Mario Bros. It uses the platform independent library SDL and, since
+version 0.98, the OpenGL accelerated graphics renderer from CEGUI. The
+game is developed in C++.
+
+Notes:
+
+Older versions of smc came without the music, so there used to be a
+separate smc_music package. This is no longer the case: this build
+includes the background music at the highest quality available.
+
+To compile this game you will need CEGUI0.7. Make sure CEGUI0.7 is
+compiled after FreeImage, as this needs a CEGUI0.7 with FreeImage support
+built in (the latest CEGUI0.7 SlackBuild will automatically use FreeImage
+if available).
+
+Unfortunately, as of this writing, it's impossible to install both CEGUI
+and CEGUI0.7 at the same time, so make sure CEGUI (the 0.8 version)
+isn't installed or you'll end up with a mess.
+
+If you get compile errors related to CEGUI's NullRenderer, rebuild
+CEGUI0.7 using the latest SlackBuild (older ones were missing NullRenderer
+support).
+
+When running, the game emits CEGUI::InvalidRequestException messages on
+its stderr. These are harmless and can be ignored: they're caused by
+the CEGUI library searching for files in the current directory before
+looking in the game directory at /usr/share/smc.
diff --git a/games/smc/doinst.sh b/games/smc/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/games/smc/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/smc/slack-desc b/games/smc/slack-desc
new file mode 100644
index 0000000000000..652e3b37133f5
--- /dev/null
+++ b/games/smc/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+smc: smc (Secret Maryo Chronicles)
+smc:
+smc: Secret Maryo Chronicles is an Open Source two-dimensional platform
+smc: game with a style designed similar to classic sidescroller games such
+smc: as Super Mario Bros. It uses the platform independent library SDL
+smc: and, since version 0.98, the OpenGL accelerated graphics renderer
+smc: from CEGUI. The game is developed in C++.
+smc:
+smc:
+smc:
+smc:
diff --git a/games/smc/smc.SlackBuild b/games/smc/smc.SlackBuild
new file mode 100644
index 0000000000000..cc619e1e23bc8
--- /dev/null
+++ b/games/smc/smc.SlackBuild
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+# Slackware build script for smc (Secret Maryo Chronicles)
+# Originally written by Phillip Warner <pc_warner@yahoo.com>
+
+# Modified by B. Watson, for post-1.9 git snapshot and Slack 14.1.
+# - removed boost patch (no longer needed)
+# - changed Categories in .desktop file (make it validate)
+# - got CEGUI0.7 maintainer to add a couple configure options this needs
+
+# Note about the REQUIRES in the .info file: I listed FreeImage first
+# because it's an optional dep for CEGUI0.7. This build needs CEGUI0.7
+# with FreeImage support compiled in.
+
+PRGNAM=smc
+VERSION=${VERSION:-20140328}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+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
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+./autogen.sh
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" force_arch="$ARCH" make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/smc/smc.desktop b/games/smc/smc.desktop
new file mode 100644
index 0000000000000..f11676a85a874
--- /dev/null
+++ b/games/smc/smc.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Secret Maryo Chronicles
+Comment=An Open Source 2-D platform game like Super Mario Bros.
+Exec=smc
+Icon=/usr/share/smc/icon/window_32.png
+Terminal=false
+Type=Application
+Categories=Game;ActionGame;
diff --git a/games/smc/smc.info b/games/smc/smc.info
new file mode 100644
index 0000000000000..c55e4291f0f2f
--- /dev/null
+++ b/games/smc/smc.info
@@ -0,0 +1,10 @@
+PRGNAM="smc"
+VERSION="20140328"
+HOMEPAGE="http://www.secretmaryo.org/"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/smc-20140328.tar.gz"
+MD5SUM="a0d2e7a20d93badf2708baabcaabedba"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="FreeImage CEGUI0.7"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"