[arch-commits] Commit in pcsx2/repos/community-i686 (PKGBUILD PKGBUILD gcc48.patch)

Maxime Gauduin alucryd at nymeria.archlinux.org
Sun Jun 2 16:39:35 UTC 2013


    Date: Sunday, June 2, 2013 @ 18:39:35
  Author: alucryd
Revision: 92194

archrelease: copy trunk to community-i686

Added:
  pcsx2/repos/community-i686/PKGBUILD
    (from rev 92193, pcsx2/trunk/PKGBUILD)
  pcsx2/repos/community-i686/gcc48.patch
    (from rev 92193, pcsx2/trunk/gcc48.patch)
Deleted:
  pcsx2/repos/community-i686/PKGBUILD

-------------+
 PKGBUILD    |  126 +++++++++++++++++++++++++++++-----------------------------
 gcc48.patch |   65 +++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-06-02 16:39:23 UTC (rev 92193)
+++ PKGBUILD	2013-06-02 16:39:35 UTC (rev 92194)
@@ -1,61 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
-# Contributor: josephgbr <rafael.f.f1 at gmail.com>
-# Contributor: vEX <vex at niechift.com>
-
-pkgname=pcsx2
-pkgver=1.0.0
-pkgrel=4
-pkgdesc="A Sony PlayStation 2 emulator"
-arch=('i686' 'x86_64')
-url="http://www.pcsx2.net"
-license=('GPL')
-makedepends=('cmake' 'sparsehash')
-if [[ $CARCH == "i686" ]]; then
-  depends=('glew' 'libjpeg-turbo' 'portaudio' 'soundtouch' 'wxgtk')
-elif [[ $CARCH == "x86_64" ]]; then
-  makedepends+=('gcc-multilib' 'lib32-glew' 'lib32-libjpeg-turbo' 'lib32-mesa-libgl' 'lib32-portaudio' 'lib32-soundtouch' 'lib32-wxgtk')
-  optdepends=('lib32-gtk-engines: gtk2 engines support'
-              'lib32-gtk-aurora-engine: aurora gtk2 engine support'
-              'lib32-gtk-murrine: murrine gtk3 engine support'
-              'lib32-gtk-unico: unico gtk2 engine support')
-fi
-options=('!emptydirs')
-source=("${pkgname}-${pkgver}-r5350-sources.7z::http://pcsx2.net/download/releases/source-code/finish/7-source/93-pcsx2-v1-0-0-source-code/0.html")
-sha256sums=('3f6067c3ea23b2afa4d4c411f3121d86612c310b1c7a44413577cf5727e498bc')
-
-build() {
-  cd "${srcdir}"/${pkgname}-${pkgver}-r5350-sources
-
-# Patch
-  sed 's|0.9.8|1.0.0|' -i CMakeLists.txt
-
-# Build
-  if [[ -d build ]]; then
-    rm -rf build
-  fi
-  mkdir build && cd build
-  if [[ $CARCH == "i686" ]]; then
-    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPACKAGE_MODE=TRUE -DXDG_STD=TRUE -DGLSL_API=TRUE -DREBUILD_SHADER=TRUE -DPLUGIN_DIR=/usr/lib/pcsx2 -DGAMEINDEX_DIR=/usr/share/pcsx2 -DGLSL_SHADER_DIR=/usr/share/pcsx2
-  elif [[ $CARCH == "x86_64" ]]; then
-    export CC="gcc -m32"
-    export CXX="g++ -m32"
-    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPACKAGE_MODE=TRUE -DXDG_STD=TRUE -DGLSL_API=TRUE -DREBUILD_SHADER=TRUE -DPLUGIN_DIR=/usr/lib32/pcsx2 -DGAMEINDEX_DIR=/usr/share/pcsx2 -DGLSL_SHADER_DIR=/usr/share/pcsx2 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config32 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc32 -DCMAKE_LIBRARY_PATH=/usr/lib32
-  fi
-  make
-}
-
-package() {
-  cd "${srcdir}"/${pkgname}-${pkgver}-r5350-sources/build
-
-# Multilib
-  if [[ $CARCH == "x86_64" ]]; then
-    depends=('lib32-wxgtk' 'lib32-libgl' 'lib32-glew' 'lib32-libjpeg-turbo' 'lib32-portaudio' 'lib32-soundtouch')
-  fi
-
-# Install
-  make DESTDIR="${pkgdir}" install
-}
-
-# vim: ts=2 sw=2 et:

Copied: pcsx2/repos/community-i686/PKGBUILD (from rev 92193, pcsx2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-06-02 16:39:35 UTC (rev 92194)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: josephgbr <rafael.f.f1 at gmail.com>
+# Contributor: vEX <vex at niechift.com>
+
+pkgname=pcsx2
+pkgver=1.0.0
+pkgrel=5
+pkgdesc="A Sony PlayStation 2 emulator"
+arch=('i686' 'x86_64')
+url="http://www.pcsx2.net"
+license=('GPL')
+makedepends=('cmake' 'sparsehash')
+if [[ $CARCH == "i686" ]]; then
+  depends=('glew' 'libjpeg-turbo' 'portaudio' 'soundtouch' 'wxgtk')
+elif [[ $CARCH == "x86_64" ]]; then
+  makedepends+=('gcc-multilib' 'lib32-glew' 'lib32-libjpeg-turbo' 'lib32-mesa-libgl' 'lib32-portaudio' 'lib32-soundtouch' 'lib32-wxgtk')
+fi
+options=('!emptydirs')
+source=("${pkgname}-${pkgver}-r5350-sources.7z::http://pcsx2.net/download/releases/source-code/finish/7-source/93-pcsx2-v1-0-0-source-code/0.html"
+        'gcc48.patch')
+sha256sums=('3f6067c3ea23b2afa4d4c411f3121d86612c310b1c7a44413577cf5727e498bc'
+            '57204299c89d98f900af2e6c98fd3af0460d9095d1046f4d67772b9b75dc894b')
+
+prepare() {
+  cd "${srcdir}"/${pkgname}-${pkgver}-r5350-sources
+
+  patch -Np1 -i ../gcc48.patch
+}
+
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}-r5350-sources
+
+# Patch
+  sed 's|0.9.8|1.0.0|' -i CMakeLists.txt
+
+# Build
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build && cd build
+  if [[ $CARCH == "i686" ]]; then
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPACKAGE_MODE=TRUE -DXDG_STD=TRUE -DGLSL_API=TRUE -DREBUILD_SHADER=TRUE -DPLUGIN_DIR=/usr/lib/pcsx2 -DGAMEINDEX_DIR=/usr/share/pcsx2 -DGLSL_SHADER_DIR=/usr/share/pcsx2
+  elif [[ $CARCH == "x86_64" ]]; then
+    export CC="gcc -m32"
+    export CXX="g++ -m32"
+    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPACKAGE_MODE=TRUE -DXDG_STD=TRUE -DGLSL_API=TRUE -DREBUILD_SHADER=TRUE -DPLUGIN_DIR=/usr/lib32/pcsx2 -DGAMEINDEX_DIR=/usr/share/pcsx2 -DGLSL_SHADER_DIR=/usr/share/pcsx2 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config32 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc32 -DCMAKE_LIBRARY_PATH=/usr/lib32
+  fi
+  make
+}
+
+package() {
+  cd "${srcdir}"/${pkgname}-${pkgver}-r5350-sources/build
+
+# Multilib
+  if [[ $CARCH == "x86_64" ]]; then
+    depends=('lib32-wxgtk' 'lib32-libgl' 'lib32-glew' 'lib32-libjpeg-turbo' 'lib32-portaudio' 'lib32-soundtouch')
+  fi
+
+# Install
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:

Copied: pcsx2/repos/community-i686/gcc48.patch (from rev 92193, pcsx2/trunk/gcc48.patch)
===================================================================
--- gcc48.patch	                        (rev 0)
+++ gcc48.patch	2013-06-02 16:39:35 UTC (rev 92194)
@@ -0,0 +1,65 @@
+diff -rupN pcsx2-1.0.0-r5350-sources.orig/common/include/PS2Eext.h pcsx2-1.0.0-r5350-sources/common/include/PS2Eext.h
+--- pcsx2-1.0.0-r5350-sources.orig/common/include/PS2Eext.h	2013-06-02 18:24:59.369581900 +0200
++++ pcsx2-1.0.0-r5350-sources/common/include/PS2Eext.h	2013-06-02 18:27:39.091107300 +0200
+@@ -144,10 +144,9 @@ struct PluginConf
+     int ReadInt(const std::string& item, int defval)
+     {
+         int value = defval;
+-	int err = 0;
+         std::string buf = item + " = %d\n";
+ 
+-        if (ConfFile) err=fscanf(ConfFile, buf.c_str(), &value);
++        if (ConfFile) fscanf(ConfFile, buf.c_str(), &value);
+ 
+         return value;
+     }
+@@ -157,7 +156,7 @@ struct PluginConf
+ 	int err = 0;
+         std::string buf = item + " = %d\n";
+ 
+-        if (ConfFile) err=fprintf(ConfFile, buf.c_str(), value);
++        if (ConfFile) fprintf(ConfFile, buf.c_str(), value);
+     }
+ };
+ 
+diff -rupN pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/GSDeviceSW.cpp pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceSW.cpp
+--- pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/GSDeviceSW.cpp	2013-06-02 18:24:59.922788200 +0200
++++ pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceSW.cpp	2013-06-02 18:29:56.088850400 +0200
+@@ -50,7 +50,7 @@ bool GSDeviceSW::Reset(int w, int h)
+ 
+ GSTexture* GSDeviceSW::CreateSurface(int type, int w, int h, bool msaa, int format)
+ {
+-	if(format != 0) return false; // there is only one format
++	if(format != 0) return NULL; // there is only one format
+ 
+ 	return new GSTextureSW(type, w, h);
+ }
+diff -rupN pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/GS.h pcsx2-1.0.0-r5350-sources/plugins/GSdx/GS.h
+--- pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/GS.h	2013-06-02 18:24:59.916311000 +0200
++++ pcsx2-1.0.0-r5350-sources/plugins/GSdx/GS.h	2013-06-02 18:29:28.940530500 +0200
+@@ -807,7 +807,8 @@ REG_END2
+ 			if(PSM == PSM_PSMT4) return TW > 7 || TH > 7;
+ 		}
+ 
+-		return (TBW << 6) < (1u << TW);
++    // The recast of TBW seems useless but it avoid tons of warning from GCC...
++    return ((uint32)TBW << 6u) < (1u << TW);
+ 	}
+ REG_END2
+ 
+diff -rupN pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/stdafx.h pcsx2-1.0.0-r5350-sources/plugins/GSdx/stdafx.h
+--- pcsx2-1.0.0-r5350-sources.orig/plugins/GSdx/stdafx.h	2013-06-02 18:24:59.951638400 +0200
++++ pcsx2-1.0.0-r5350-sources/plugins/GSdx/stdafx.h	2013-06-02 18:32:05.092233800 +0200
+@@ -430,7 +430,11 @@ struct aligned_free_second {template<cla
+ 
+ 	#ifdef __GNUC__
+ 
+-	__forceinline unsigned long long __rdtsc()
++	// gcc 4.8 define __rdtsc but unfortunately the compiler crash...
++	// The redefine allow to skip the gcc __rdtsc version -- Gregory
++	#define __rdtsc _lnx_rdtsc
++	//__forceinline unsigned long long __rdtsc()
++	__forceinline unsigned long long _lnx_rdtsc()
+ 	{
+ 		#if defined(__amd64__) || defined(__x86_64__)
+ 		unsigned long long low, high;




More information about the arch-commits mailing list