summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/megatunix/glib-single-include.patch13
-rw-r--r--misc/megatunix/megatunix.SlackBuild16
-rw-r--r--misc/megatunix/megatunix.info6
3 files changed, 24 insertions, 11 deletions
diff --git a/misc/megatunix/glib-single-include.patch b/misc/megatunix/glib-single-include.patch
new file mode 100644
index 0000000000..75d4b034f6
--- /dev/null
+++ b/misc/megatunix/glib-single-include.patch
@@ -0,0 +1,13 @@
+Index: megatunix-0.9.23/msloader/mtxloader.c
+===================================================================
+--- megatunix-0.9.23.orig/msloader/mtxloader.c
++++ megatunix-0.9.23/msloader/mtxloader.c
+@@ -5,7 +5,7 @@
+ #include <getfiles.h>
+ #include <gtk/gtk.h>
+ #include <glib/gstdio.h>
+-#include <glib/gstring.h>
++#include <glib.h>
+ #include <loader_common.h>
+ #include <ms1_loader.h>
+ #include <ms2_loader.h>
diff --git a/misc/megatunix/megatunix.SlackBuild b/misc/megatunix/megatunix.SlackBuild
index 6adb54c0e8..cc47791208 100644
--- a/misc/megatunix/megatunix.SlackBuild
+++ b/misc/megatunix/megatunix.SlackBuild
@@ -17,18 +17,14 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
PRGNAM=megatunix
-VERSION=0.9.19_beta1
+VERSION=0.9.23
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRC_VERSION="$(printf $VERSION | tr _ -)"
-
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -57,12 +53,16 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRC_VERSION
-tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
-cd $PRGNAM-$SRC_VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
+# Starting with glib 2.32 it is now mandatory to
+# include glib.h instead of individual headers.
+patch -p1 -i $CWD/glib-single-include.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/misc/megatunix/megatunix.info b/misc/megatunix/megatunix.info
index 4901b0cce0..7e5a77dfcf 100644
--- a/misc/megatunix/megatunix.info
+++ b/misc/megatunix/megatunix.info
@@ -1,8 +1,8 @@
PRGNAM="megatunix"
-VERSION="0.9.19_beta1"
+VERSION="0.9.23"
HOMEPAGE="http://megatunix.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/project/megatunix/MegaTunix/0.9.19/megatunix-0.9.19-beta1.tar.gz"
-MD5SUM="a8e321bd835736c0ad9e3e03cce9f67c"
+DOWNLOAD="http://downloads.sourceforge.net/project/megatunix/MegaTunix/0.9.23/megatunix-0.9.23.tar.gz"
+MD5SUM="a8f8ded09255d717b7711bfffb7e49f6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtkglext"