wok rev 6800

Added mupen64plus. A N64 emulator.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Oct 19 04:13:39 2010 +0000 (2010-10-19)
parents 4f6dafa1cfd3
children 09633f8dc217
files mupen64plus/receipt mupen64plus/stuff/blight-input-linking.patch mupen64plus/stuff/const.patch mupen64plus/stuff/ftbfs-gvariant-type-conflicts.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mupen64plus/receipt	Tue Oct 19 04:13:39 2010 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mupen64plus"
     1.7 +VERSION="1.5"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Nintendo64 Emulator"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="gtk+ mesa libglu-mesa libsamplerate libsdl-ttf"
    1.12 +BUILD_DEPENDS="gtk+-dev mesa-dev libglu-mesa libsamplerate-dev libsdl-dev libsdl-ttf-dev yasm pkg-config zlib-dev"
    1.13 +SOURCE="Mupen64Plus"
    1.14 +TARBALL="$SOURCE-${VERSION//./-}-src.tar.gz"
    1.15 +WEB_SITE="http://code.google.com/p/mupen64plus/"
    1.16 +WGET_URL="http://mupen64plus.googlecode.com/files/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	src=$WOK/$PACKAGE/$SOURCE-${VERSION//./-}-src
    1.22 +	cd $src
    1.23 +
    1.24 +	# patching (provided by Yggdrasil) Thanks! Will remove when new version of mupen64plus comes out.
    1.25 +	patch -Np1 -i ../stuff/const.patch
    1.26 +	patch -Np1 -i ../stuff/blight-input-linking.patch
    1.27 +	# thanks to debian for having a patch :) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577329
    1.28 +	patch -Np1 -i ../stuff/ftbfs-gvariant-type-conflicts.patch
    1.29 +
    1.30 +	make PREFIX=/usr all
    1.31 +	mkdir -p $PWD/_pkg/usr/bin
    1.32 +	make PREFIX=$PWD/_pkg/usr install
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	_pkg=$WOK/$PACKAGE/$SOURCE-${VERSION//./-}-src/_pkg
    1.39 +	mkdir -p $fs/usr/share
    1.40 +	cp -a $_pkg/usr/bin $fs/usr
    1.41 +	cp -a $_pkg/usr/share/mupen64plus $fs/usr/share
    1.42 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.43 +}
    1.44 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mupen64plus/stuff/blight-input-linking.patch	Tue Oct 19 04:13:39 2010 +0000
     2.3 @@ -0,0 +1,12 @@
     2.4 +diff -aur Mupen64Plus-1-5-src/blight_input/Makefile Mupen64Plus-1-5-src_patched/blight_input/Makefile
     2.5 +--- Mupen64Plus-1-5-src/blight_input/Makefile	2009-01-04 19:47:08.000000000 +0100
     2.6 ++++ Mupen64Plus-1-5-src_patched/blight_input/Makefile	2010-02-09 14:19:27.000000000 +0100
     2.7 +@@ -48,7 +48,7 @@
     2.8 + 	$(CC) -o $@ $(CFLAGS) $(SDL_FLAGS) $(FREETYPE_FLAGS) -c $<
     2.9 + 
    2.10 + blight_input.$(SO_EXTENSION): $(OBJ_BLIGHT)
    2.11 +-	$(CC) -o $@ -shared $(LDFLAGS) $(PLUGIN_LDFLAGS) $(SDL_LIBS) $(SDLTTF_LIBS) $(FREETYPE_LIBS) $^
    2.12 ++	$(CC) -o $@ -shared $(LDFLAGS//-Wl,--as-needed/) $(PLUGIN_LDFLAGS) $(SDL_LIBS) $(SDLTTF_LIBS) $(FREETYPE_LIBS) $^
    2.13 + ifneq ($(OS), WINDOWS)
    2.14 + 	$(STRIP) $@
    2.15 + endif
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mupen64plus/stuff/const.patch	Tue Oct 19 04:13:39 2010 +0000
     3.3 @@ -0,0 +1,24 @@
     3.4 +diff -aur Mupen64Plus-1-5-src/glide64/Combine.cpp Mupen64Plus-1-5-src_patched/glide64/Combine.cpp
     3.5 +--- Mupen64Plus-1-5-src/glide64/Combine.cpp	2009-01-04 19:47:08.000000000 +0100
     3.6 ++++ Mupen64Plus-1-5-src_patched/glide64/Combine.cpp	2010-02-09 13:18:34.000000000 +0100
     3.7 +@@ -11873,7 +11873,7 @@
     3.8 +   LOG ("InitCombine() ");
     3.9 +   memset(&cmb, 0, sizeof(cmb));
    3.10 +   const char *extensions = grGetString (GR_EXTENSION);
    3.11 +-  if (char * extstr = strstr(extensions, "COMBINE")) {
    3.12 ++  if (const char * extstr = strstr(extensions, "COMBINE")) {
    3.13 +     if (!strncmp(extstr, "COMBINE", 7)) {
    3.14 +       LOG ("extensions ");
    3.15 +       cmb.grColorCombineExt = (GRCOLORCOMBINEEXT) grGetProcAddress("grColorCombineExt");
    3.16 +diff -aur Mupen64Plus-1-5-src/glide64/Main.cpp Mupen64Plus-1-5-src_patched/glide64/Main.cpp
    3.17 +--- Mupen64Plus-1-5-src/glide64/Main.cpp	2009-01-04 19:47:08.000000000 +0100
    3.18 ++++ Mupen64Plus-1-5-src_patched/glide64/Main.cpp	2010-02-09 13:17:39.000000000 +0100
    3.19 +@@ -784,7 +784,7 @@
    3.20 +   printf("bebefore2\n");
    3.21 +   if (settings.fb_hires)
    3.22 +   {
    3.23 +-    if (char * extstr = strstr(extensions, "TEXTUREBUFFER")) 
    3.24 ++    if (const char * extstr = strstr(extensions, "TEXTUREBUFFER")) 
    3.25 +     {
    3.26 +       if (!strncmp(extstr, "TEXTUREBUFFER", 13)) 
    3.27 +       {
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mupen64plus/stuff/ftbfs-gvariant-type-conflicts.patch	Tue Oct 19 04:13:39 2010 +0000
     4.3 @@ -0,0 +1,27 @@
     4.4 +Description: Fix FTBFS due to glib gvariant type definitions
     4.5 +Forwarded: not-needed
     4.6 +Bug-Debian: http://bugs.debian.org/577329
     4.7 +Author: Sven Eckelmann <sven.eckelmann@gmx.de>
     4.8 +
     4.9 +---
    4.10 +diff --git a/rice_video/typedefs.h b/rice_video/typedefs.h
    4.11 +index 4cded542b06445f043fa1fabf77e4d20c9d52920..b7e16e9c4ba3248f9fed9762f79349c137ee2026 100644
    4.12 +--- a/rice_video/typedefs.h
    4.13 ++++ b/rice_video/typedefs.h
    4.14 +@@ -20,10 +20,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    4.15 + #ifndef _TYPEDEFS_H_
    4.16 + #define _TYPEDEFS_H_
    4.17 + 
    4.18 +-#define uchar  unsigned char
    4.19 +-#define uint16 unsigned short
    4.20 +-#define uint32 unsigned int
    4.21 +-#define uint64 unsigned long long
    4.22 ++#include <stdint.h>
    4.23 ++
    4.24 ++typedef uint8_t uchar;
    4.25 ++typedef uint16_t uint16;
    4.26 ++typedef uint32_t uint32;
    4.27 ++typedef uint64_t uint64;
    4.28 + 
    4.29 + typedef unsigned char               uint8;
    4.30 +