[arch-commits] Commit in pcsx2/repos (3 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Fri Jul 26 08:34:43 UTC 2013


    Date: Friday, July 26, 2013 @ 10:34:43
  Author: alucryd
Revision: 94518

archrelease: copy trunk to community-staging-i686

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

-------------+
 PKGBUILD    |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 gcc48.patch |   65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

Copied: pcsx2/repos/community-staging-i686/PKGBUILD (from rev 94517, pcsx2/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-07-26 08:34:43 UTC (rev 94518)
@@ -0,0 +1,62 @@
+# $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=6
+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 ${pkgname}-${pkgver}-r5350-sources
+
+  patch -Np1 -i ../gcc48.patch
+  sed 's/0.9.8/1.0.0/' -i CMakeLists.txt
+}
+
+build() {
+  cd ${pkgname}-${pkgver}-r5350-sources
+
+  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 ${pkgname}-${pkgver}-r5350-sources/build
+
+  if [[ $CARCH == "x86_64" ]]; then
+    depends=('lib32-wxgtk' 'lib32-libgl' 'lib32-glew' 'lib32-libjpeg-turbo' 'lib32-portaudio' 'lib32-soundtouch')
+  fi
+
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:

Copied: pcsx2/repos/community-staging-i686/gcc48.patch (from rev 94517, pcsx2/trunk/gcc48.patch)
===================================================================
--- community-staging-i686/gcc48.patch	                        (rev 0)
+++ community-staging-i686/gcc48.patch	2013-07-26 08:34:43 UTC (rev 94518)
@@ -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