diff options
author | js <js@pkgsrc.org> | 2020-06-01 10:30:03 +0000 |
---|---|---|
committer | js <js@pkgsrc.org> | 2020-06-01 10:30:03 +0000 |
commit | db77df1dafe4252417943178ebbfd32f377d76cc (patch) | |
tree | e2729c1db43ede3bf9b6b288b355dc0f99103fc8 | |
parent | 83701c19da195229a9df76f0b456dabe858d6c45 (diff) | |
download | pkgsrc-db77df1dafe4252417943178ebbfd32f377d76cc.tar.gz |
Fix games/arx-libertatis build on Darwin
-rw-r--r-- | games/arx-libertatis/Makefile | 5 | ||||
-rw-r--r-- | games/arx-libertatis/distinfo | 4 | ||||
-rw-r--r-- | games/arx-libertatis/patches/patch-CMakeLists.txt | 16 |
3 files changed, 21 insertions, 4 deletions
diff --git a/games/arx-libertatis/Makefile b/games/arx-libertatis/Makefile index db56342dd64..e5f5f0f292d 100644 --- a/games/arx-libertatis/Makefile +++ b/games/arx-libertatis/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2020/01/26 17:31:13 rillig Exp $ +# $NetBSD: Makefile,v 1.5 2020/06/01 10:30:03 js Exp $ DISTNAME= arx-libertatis-1.1.2 PKGREVISION= 1 @@ -26,6 +26,9 @@ PLIST_VARS+= NotDarwin PLIST.NotDarwin= yes .endif +post-patch: + ${MV} ${WRKSRC}/VERSION ${WRKSRC}/ARX_VERSION + .include "../../audio/openal-soft/buildlink3.mk" .include "../../devel/boost-headers/buildlink3.mk" .include "../../devel/SDL/buildlink3.mk" diff --git a/games/arx-libertatis/distinfo b/games/arx-libertatis/distinfo index 05daa7eff90..764378eb0c0 100644 --- a/games/arx-libertatis/distinfo +++ b/games/arx-libertatis/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.2 2016/10/30 10:25:30 maya Exp $ +$NetBSD: distinfo,v 1.3 2020/06/01 10:30:03 js Exp $ SHA1 (arx-libertatis-1.1.2.tar.xz) = 3b14a55553c564fd33caafb3a5bdb2d328e1fde8 RMD160 (arx-libertatis-1.1.2.tar.xz) = 94145d36664d8d747c0abc3ced9c9055fd642690 SHA512 (arx-libertatis-1.1.2.tar.xz) = d4cb8187e7f63934408e38a51a44b7da03c8628820d43139507ff97ebd463b9cd7baf6cc4e85a3d4191d6e5f56850d77d07cfffc33d8f5a51378dfb41f719fb8 Size (arx-libertatis-1.1.2.tar.xz) = 970608 bytes -SHA1 (patch-CMakeLists.txt) = 37a9c12a831ed6127a9c0a2e28bec2c3d7b6075d +SHA1 (patch-CMakeLists.txt) = f905b3b51e39dff8bf2e24d4de76b677495fad00 SHA1 (patch-cmake_CompileCheck.cmake) = b954b0115666741ffbd5686e997d24bae72a3196 SHA1 (patch-cmake_VersionString.cmake) = afff2ae36425f3ffe0e1679d28e48ff4b6fc3d6f SHA1 (patch-src_graphics_opengl_OpenGLRenderer.cpp) = 410769fea6b911dcb283b1da85bebd2861de8d94 diff --git a/games/arx-libertatis/patches/patch-CMakeLists.txt b/games/arx-libertatis/patches/patch-CMakeLists.txt index 039953b030c..d3e874dc43d 100644 --- a/games/arx-libertatis/patches/patch-CMakeLists.txt +++ b/games/arx-libertatis/patches/patch-CMakeLists.txt @@ -1,4 +1,4 @@ -$NetBSD: patch-CMakeLists.txt,v 1.1 2016/09/02 16:46:04 wiz Exp $ +$NetBSD: patch-CMakeLists.txt,v 1.2 2020/06/01 10:30:03 js Exp $ Fix use of CMAKE_MODULE_PATH (see also patch-cmake_VersionString.cmake) @@ -7,6 +7,11 @@ Resolve "Attempt at a recursive or nested TRY_COMPILE in directory" and +Rename VERSION to ARX_VERSION so that __has_include(<version>) does not +pick it up on a case-insensitive file system on Darwin. + +and + commit 60e43c3cbf3fb0aa10cc3092b2512ccebb60b80d Author: Daniel Scharrer <daniel@constexpr.org> Date: Tue Feb 23 07:04:11 2016 +0100 @@ -73,3 +78,12 @@ Date: Tue Feb 23 07:04:11 2016 +0100 check_symbol_exists(nanosleep "time.h" ARX_HAVE_NANOSLEEP) +@@ -951,7 +958,7 @@ configure_file("${SRC_DIR}/${PLATFORM_CO + + set(VERSION_TEMPLATE "${SRC_DIR}/core/Version.cpp.in") + set(VERSION_FILE "${CMAKE_BINARY_DIR}/core/Version.cpp") +-set(VERSION_SOURCES VERSION "VERSION" AUTHORS "AUTHORS") ++set(VERSION_SOURCES VERSION "ARX_VERSION" AUTHORS "AUTHORS") + file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/core") + version_file("${VERSION_TEMPLATE}" "${VERSION_FILE}" "${VERSION_SOURCES}" ".git") + list(APPEND ARX_SOURCES "${VERSION_FILE}") |