pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/widelands widelands: fix building on Darwin
details: https://anonhg.NetBSD.org/pkgsrc/rev/e7dbbd42c1ec
branches: trunk
changeset: 400792:e7dbbd42c1ec
user: adam <adam%pkgsrc.org@localhost>
date: Tue Sep 03 20:27:02 2019 +0000
description:
widelands: fix building on Darwin
diffstat:
games/widelands/Makefile | 10 ++++++++--
games/widelands/distinfo | 4 ++--
games/widelands/patches/patch-CMakeLists.txt | 15 +++++++++++++--
3 files changed, 23 insertions(+), 6 deletions(-)
diffs (79 lines):
diff -r c70387ad0082 -r e7dbbd42c1ec games/widelands/Makefile
--- a/games/widelands/Makefile Tue Sep 03 19:12:25 2019 +0000
+++ b/games/widelands/Makefile Tue Sep 03 20:27:02 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/08/22 12:23:15 ryoon Exp $
+# $NetBSD: Makefile,v 1.5 2019/09/03 20:27:02 adam Exp $
DISTNAME= widelands-build20
PKGNAME= widelands-20
@@ -35,8 +35,15 @@
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/doc/widelands
+.include "../../mk/bsd.prefs.mk"
+
+# XXX: The following trick might not work everywhere!
+# Some systems, like Darwin, do not provide pgettext(),
+# and devel/gettext-lib does not provide it either.
pre-configure:
+.if ${OPSYS} != "Darwin"
${PRINTF} '#include <libintl.h>\n' > ${WRKSRC}/src/third_party/gettext/gettext.h
+.endif
${MKDIR} ${WRKSRC}/build
post-install:
@@ -57,7 +64,6 @@
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/SDL2_ttf/buildlink3.mk"
.include "../../graphics/SDL2_image/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
diff -r c70387ad0082 -r e7dbbd42c1ec games/widelands/distinfo
--- a/games/widelands/distinfo Tue Sep 03 19:12:25 2019 +0000
+++ b/games/widelands/distinfo Tue Sep 03 20:27:02 2019 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2019/08/06 19:42:20 nia Exp $
+$NetBSD: distinfo,v 1.2 2019/09/03 20:27:02 adam Exp $
SHA1 (widelands-build20.tar.bz2) = a2fdedf81c08fd08809b8556c955a6a7f32c1eed
RMD160 (widelands-build20.tar.bz2) = 4adfa2f3ae2e4ceae7a04ca1162deed0f3e7632f
SHA512 (widelands-build20.tar.bz2) = 25280db6a57adeb37d13db35ce9eb41a5478534b04772240f6228c180f5a41a55fc414dab66e724945442985cbbba7a8a59a582291aca176e0bd8ae6c08760e5
Size (widelands-build20.tar.bz2) = 232364340 bytes
-SHA1 (patch-CMakeLists.txt) = c049c7a9226d7fad9d0ddb984e9d4707b22bf635
+SHA1 (patch-CMakeLists.txt) = 8b400bc5554964378275d304943e6489c82d9915
SHA1 (patch-src_CMakeLists.txt) = 3d06616eefa3145ff0062c39b4ce026e0acad8c1
diff -r c70387ad0082 -r e7dbbd42c1ec games/widelands/patches/patch-CMakeLists.txt
--- a/games/widelands/patches/patch-CMakeLists.txt Tue Sep 03 19:12:25 2019 +0000
+++ b/games/widelands/patches/patch-CMakeLists.txt Tue Sep 03 20:27:02 2019 +0000
@@ -1,7 +1,9 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2019/08/06 19:42:20 nia Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2019/09/03 20:27:02 adam Exp $
Support NetBSD.
+Do not turn warnings into errors.
+
--- CMakeLists.txt.orig 2019-05-02 05:23:39.000000000 +0000
+++ CMakeLists.txt
@@ -113,6 +113,7 @@ endif()
@@ -12,7 +14,16 @@
CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
if (NOT CMAKE_SYSTEM_NAME MATCHES "kFreeBSD")
find_package(intl REQUIRED)
-@@ -275,7 +276,9 @@ IF (WIN32)
+@@ -210,8 +211,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wno-unreachable-code")
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wno-documentation")
+
+- wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=deprecated")
+- wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=non-pod-varargs")
+
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Qunused-arguments")
+
+@@ -275,7 +274,9 @@ IF (WIN32)
endif (WIN32)
# on BSD this must be explicitly linked
Home |
Main Index |
Thread Index |
Old Index