pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

warsow: Need to link against librt on some platforms



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By:	cfkoch
Date:		Sat Sep 21 16:50:00 2024 -0700
Changeset:	61ed6d0e2a9a8c2f438c78b8684d69e7fd812dd8

Modified Files:
	warsow/Makefile
	warsow/distinfo
Added Files:
	warsow/patches/patch-client_CMakeLists.txt

Log Message:
warsow: Need to link against librt on some platforms

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=61ed6d0e2a9a8c2f438c78b8684d69e7fd812dd8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 warsow/Makefile                            |  2 +-
 warsow/distinfo                            |  1 +
 warsow/patches/patch-client_CMakeLists.txt | 13 +++++++++++++
 3 files changed, 15 insertions(+), 1 deletion(-)

diffs:
diff --git a/warsow/Makefile b/warsow/Makefile
index f7347ecc60..9d4910450b 100644
--- a/warsow/Makefile
+++ b/warsow/Makefile
@@ -16,7 +16,7 @@ HOMEPAGE=	https://warsow.net/
 COMMENT=	Free fast-paced first-person shooter
 LICENSE=	gnu-gpl-v2
 
-WRKSRC=			${WRKDIR}/warsow-2.1.2-netbsd/source
+WRKSRC=			${WRKDIR}/warsow-2.1.2-pkgsrc/source
 WARSOW_DATA_SRC=	${WRKDIR}/warsow-2.1.2/basewsw
 USE_TOOLS+=		pax
 USE_LANGUAGES=		c c++
diff --git a/warsow/distinfo b/warsow/distinfo
index 0677a0ddbc..a3b7f7dd87 100644
--- a/warsow/distinfo
+++ b/warsow/distinfo
@@ -6,3 +6,4 @@ Size (warsow-2.1.2.tar.gz) = 465567628 bytes
 BLAKE2s (warsow-engine-2.1.2.tar.gz) = 17e0e44bb4688f02bd4138e37a17a01fde48f0b3f369faf7111d29d52c5be0e1
 SHA512 (warsow-engine-2.1.2.tar.gz) = 7162b75c0236ba3f257a8816f2808183f3c96e313dfdee907a20fb5580b2fd841bc93d341684265d5782002b3a624364f1f5d5bad4208376e4066b5c8fc7b709
 Size (warsow-engine-2.1.2.tar.gz) = 14547552 bytes
+SHA1 (patch-client_CMakeLists.txt) = 661c726bd4d1023b0cc0b8969c5c84dbc9a4535e
diff --git a/warsow/patches/patch-client_CMakeLists.txt b/warsow/patches/patch-client_CMakeLists.txt
new file mode 100644
index 0000000000..5ad3132bf5
--- /dev/null
+++ b/warsow/patches/patch-client_CMakeLists.txt
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Need to link against librt.
+
+--- client/CMakeLists.txt.orig	2024-09-21 16:43:22.262007611 -0700
++++ client/CMakeLists.txt	2024-09-21 16:43:26.284219728 -0700
+@@ -165,5 +165,5 @@
+     add_custom_command(TARGET ${QFUSION_CLIENT_NAME} POST_BUILD COMMAND ${COPY_DYLIBS})
+ endif()
+ 
+-target_link_libraries(${QFUSION_CLIENT_NAME} PRIVATE ${CURL_LIBRARY} ${ZLIB_LIBRARY} ${CLIENT_PLATFORM_LIBRARIES})
++target_link_libraries(${QFUSION_CLIENT_NAME} PRIVATE ${CURL_LIBRARY} ${ZLIB_LIBRARY} ${CLIENT_PLATFORM_LIBRARIES} "rt")
+ qf_set_output_dir(${QFUSION_CLIENT_NAME} "")


Home | Main Index | Thread Index | Old Index