From 525cf62ad091a572890f6bcd4060ed607a0be22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 28 Nov 2016 22:42:53 +0100 Subject: [PATCH] physfs: fix x86_64 build. --- .../physfs/patches/physfs-2.0.3.patchset | 22 +++++++++++++++++++ dev-games/physfs/physfs-2.0.3.recipe | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 dev-games/physfs/patches/physfs-2.0.3.patchset diff --git a/dev-games/physfs/patches/physfs-2.0.3.patchset b/dev-games/physfs/patches/physfs-2.0.3.patchset new file mode 100644 index 000000000..820fe3295 --- /dev/null +++ b/dev-games/physfs/patches/physfs-2.0.3.patchset @@ -0,0 +1,22 @@ +From e5b9e4951eb0c1e7b8b203e625ecfb350cc0a47f Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Mon, 28 Nov 2016 20:00:57 +0000 +Subject: x86_64 haiku patch + + +diff --git a/platform/beos.cpp b/platform/beos.cpp +index ee7b190..91f9a23 100644 +--- a/platform/beos.cpp ++++ b/platform/beos.cpp +@@ -199,7 +199,7 @@ char *__PHYSFS_platformCalcBaseDir(const char *argv0) + + void *__PHYSFS_platformGetThreadID(void) + { +- return((void *) find_thread(NULL)); ++ return((void *) ((size_t) find_thread(NULL))); + } /* __PHYSFS_platformGetThreadID */ + + +-- +2.10.2 + diff --git a/dev-games/physfs/physfs-2.0.3.recipe b/dev-games/physfs/physfs-2.0.3.recipe index 543704a16..d6351286a 100644 --- a/dev-games/physfs/physfs-2.0.3.recipe +++ b/dev-games/physfs/physfs-2.0.3.recipe @@ -11,9 +11,10 @@ game is running), etc." HOMEPAGE="http://icculus.org/physfs" COPYRIGHT="2001-2012 Ryan C. Gordon" LICENSE="PHYSFS" -REVISION="2" -SOURCE_URI="http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2" +REVISION="3" +SOURCE_URI="http://icculus.org/physfs/downloads/physfs-$portVersion.tar.bz2" CHECKSUM_SHA256="ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69" +PATCHES="physfs-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86"