mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Update to classicube-1.3.8.
From izzy Meyer (MAINTAINER)
This commit is contained in:
@@ -3,7 +3,7 @@ BROKEN-sparc64 = ...error "Unknown CPU architecture"
|
||||
|
||||
COMMENT = classic Minecraft client written in C
|
||||
|
||||
V = 1.3.7
|
||||
V = 1.3.8
|
||||
PKGNAME = classicube-${V}
|
||||
|
||||
DIST_TUPLE += github ClassiCube ClassiCube ${V} .
|
||||
@@ -18,16 +18,15 @@ PERMIT_PACKAGE = Yes
|
||||
WANTLIB += GL X11 Xi c execinfo pthread
|
||||
|
||||
# dlopen'd
|
||||
WANTLIB += openal curl
|
||||
WANTLIB += openal
|
||||
|
||||
FIX_CRLF_FILES = src/Logger.c
|
||||
FIX_CRLF_FILES = src/Certs.c
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
COMPILER_LANGS = c
|
||||
|
||||
# Needed for downloading assets and sound support at runtime
|
||||
LIB_DEPENDS = net/curl \
|
||||
audio/openal
|
||||
LIB_DEPENDS = audio/openal
|
||||
RUN_DEPENDS = devel/desktop-file-utils
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (ClassiCube-ClassiCube-1.3.7.tar.gz) = BPlusswzi4GjaoQ7fR8j3lTvU5qA0reTu+9pqpBDWF8=
|
||||
SIZE (ClassiCube-ClassiCube-1.3.7.tar.gz) = 3717504
|
||||
SHA256 (ClassiCube-ClassiCube-1.3.8.tar.gz) = NSk6zx5juuyoMt7CUSKD8pdced34DMhVoSwQRkcjpsQ=
|
||||
SIZE (ClassiCube-ClassiCube-1.3.8.tar.gz) = 3619343
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
Index: src/Certs.c
|
||||
--- src/Certs.c.orig
|
||||
+++ src/Certs.c
|
||||
@@ -97,6 +97,13 @@ static const cc_string cryptoLib = String_FromConst("l
|
||||
static const cc_string cryptoAlt = String_FromConst("libcrypto.so.3");
|
||||
#endif
|
||||
|
||||
+#ifdef CC_BUILD_OPENBSD
|
||||
+ /* OpenBSD usually uses LibreSSL instead of OpenSSL, which didn't rename these symbols */
|
||||
+ #define OPENSSL_sk_new_null sk_new_null
|
||||
+ #define OPENSSL_sk_push sk_push
|
||||
+ #define OPENSSL_sk_pop_free sk_pop_free
|
||||
+#endif
|
||||
+
|
||||
static X509_STORE* store;
|
||||
static cc_bool ossl_loaded;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
Index: src/Logger.c
|
||||
--- src/Logger.c.orig
|
||||
+++ src/Logger.c
|
||||
@@ -403,7 +403,7 @@ void Logger_Backtrace(cc_string* trace, void* ctx) {
|
||||
}
|
||||
#elif defined CC_BACKTRACE_BUILTIN
|
||||
/* Implemented later at end of the file */
|
||||
-#elif defined CC_BUILD_POSIX && defined _GLIBC_
|
||||
+#elif defined CC_BUILD_POSIX && (defined _GLIBC_ || defined CC_BUILD_OPENBSD)
|
||||
#include <execinfo.h>
|
||||
|
||||
void Logger_Backtrace(cc_string* trace, void* ctx) {
|
||||
Reference in New Issue
Block a user