pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libretro-mgba: fix build on netbsd
Module Name: pkgsrc-wip
Committed By: Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By: nee
Date: Thu Jun 29 16:10:31 2017 +0100
Changeset: 7fdfe77c11b675d127c8f277037b8567db5c1461
Modified Files:
libretro-mgba/Makefile
libretro-mgba/distinfo
Added Files:
libretro-mgba/patches/patch-CMakeLists.txt
Log Message:
libretro-mgba: fix build on netbsd
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7fdfe77c11b675d127c8f277037b8567db5c1461
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libretro-mgba/Makefile | 2 ++
libretro-mgba/distinfo | 1 +
libretro-mgba/patches/patch-CMakeLists.txt | 15 +++++++++++++++
3 files changed, 18 insertions(+)
diffs:
diff --git a/libretro-mgba/Makefile b/libretro-mgba/Makefile
index 599c12810f..9e5fbecd4f 100644
--- a/libretro-mgba/Makefile
+++ b/libretro-mgba/Makefile
@@ -34,6 +34,8 @@ CMAKE_ARGS+= -DBUILD_LIBRETRO=ON
CMAKE_ARGS+= -DSKIP_LIBRARY=ON
CMAKE_ARGS+= -DLIBRETRO_LIBDIR=${PREFIX}/lib/libretro
+CFLAGS+= -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
.include "../../mk/bsd.pkg.mk"
diff --git a/libretro-mgba/distinfo b/libretro-mgba/distinfo
index 41f8160992..4ead6b8f2e 100644
--- a/libretro-mgba/distinfo
+++ b/libretro-mgba/distinfo
@@ -4,5 +4,6 @@ SHA1 (libretro-mgba-0.5.2.tar.gz) = 22b09272efb13429be89bf468cdcad9ae6fa4379
RMD160 (libretro-mgba-0.5.2.tar.gz) = 96ec87c5faae7bf1c54f0d0152a78d618fc0a43b
SHA512 (libretro-mgba-0.5.2.tar.gz) = 8d3ef901bae9b503f8d5afff63c23be9af4b519f86cc6f3656c51374756107e4852bc0472cb7393cb04c8f0ff2f134367a81e32a5ff3dab8ae0c6cbd7d3858da
Size (libretro-mgba-0.5.2.tar.gz) = 5343635 bytes
+SHA1 (patch-CMakeLists.txt) = 40a122b32f2ac964218364869630682a84ebd920
SHA1 (patch-src_util_common.h) = 8fc1fd5d204c0919b924a8461cba27be4751b84d
SHA1 (patch-src_util_math.h) = a3f7e4412e5df4d2119a13fd9e4122f3d0f6bf23
diff --git a/libretro-mgba/patches/patch-CMakeLists.txt b/libretro-mgba/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..ceeabb9c79
--- /dev/null
+++ b/libretro-mgba/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+vfs-dirent peeks into non-standard structures and is not needed for libretro.
+
+--- CMakeLists.txt.orig 2016-12-31 09:45:51.000000000 +0000
++++ CMakeLists.txt
+@@ -185,7 +185,7 @@ elseif(UNIX)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
+ endif()
+
+- list(APPEND CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-fd.c ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-dirent.c)
++ list(APPEND CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-fd.c)
+ file(GLOB OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/posix/*.c)
+ source_group("POSIX-specific code" FILES ${OS_SRC})
+ endif()
Home |
Main Index |
Thread Index |
Old Index