mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-27 05:16:46 +02:00
Compare commits
2 Commits
game
...
script_fix
Author | SHA1 | Date | |
---|---|---|---|
f2b1c81279 | |||
768617a129 |
@ -55,9 +55,9 @@ author = 'Jakob Kreuze'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.11.0'
|
version = '0.11.1'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.11.0'
|
release = '0.11.1'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
@ -19,6 +19,8 @@ ifneq ($(AUDIO), disabled)
|
|||||||
ifneq ($(VIDEO), disabled)
|
ifneq ($(VIDEO), disabled)
|
||||||
-include $(CHECKS_DIR)/video.mk
|
-include $(CHECKS_DIR)/video.mk
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
#check if we want to build with game support
|
#check if we want to build with game support
|
||||||
GAMES := $(shell if [ -z "$(DISABLE_GAMES)" ] || [ "$(DISABLE_GAMES)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
GAMES := $(shell if [ -z "$(DISABLE_GAMES)" ] || [ "$(DISABLE_GAMES)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
||||||
@ -26,9 +28,6 @@ ifneq ($(GAMES), disabled)
|
|||||||
-include $(CHECKS_DIR)/games.mk
|
-include $(CHECKS_DIR)/games.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Check if we want build sound notifications support
|
# Check if we want build sound notifications support
|
||||||
SND_NOTIFY := $(shell if [ -z "$(DISABLE_SOUND_NOTIFY)" ] || [ "$(DISABLE_SOUND_NOTIFY)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
SND_NOTIFY := $(shell if [ -z "$(DISABLE_SOUND_NOTIFY)" ] || [ "$(DISABLE_SOUND_NOTIFY)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
||||||
ifneq ($(SND_NOTIFY), disabled)
|
ifneq ($(SND_NOTIFY), disabled)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Version
|
# Version
|
||||||
TOXIC_VERSION = 0.11.0
|
TOXIC_VERSION = 0.11.1
|
||||||
REV = $(shell git rev-list HEAD --count 2>/dev/null || echo -n "error")
|
REV = $(shell git rev-list HEAD --count 2>/dev/null || echo -n "error")
|
||||||
ifneq (, $(findstring error, $(REV)))
|
ifneq (, $(findstring error, $(REV)))
|
||||||
VERSION = $(TOXIC_VERSION)
|
VERSION = $(TOXIC_VERSION)
|
||||||
|
@ -131,11 +131,15 @@ mkdir -p "$BUILD_DIR"
|
|||||||
# Build Toxcore
|
# Build Toxcore
|
||||||
cd "$BUILD_DIR"
|
cd "$BUILD_DIR"
|
||||||
|
|
||||||
TOXCORE_VERSION="0.2.12"
|
# The git hash of the c-toxcore version we're using
|
||||||
TOXCORE_HASH="30ae3263c9b68d3bef06f799ba9d7a67e3fad447030625f0ffa4bb22684228b0"
|
TOXCORE_VERSION="25a56c354937e9c8c4c50a64c3b4cfc099c34e29"
|
||||||
|
|
||||||
|
# The sha256sum of the c-toxcore tarball for TOXCORE_VERSION
|
||||||
|
TOXCORE_HASH="8448752e6286c747130254571fde2db8e2fc073a8116f9fff489ed53af546c0a"
|
||||||
|
|
||||||
TOXCORE_FILENAME="c-toxcore-$TOXCORE_VERSION.tar.gz"
|
TOXCORE_FILENAME="c-toxcore-$TOXCORE_VERSION.tar.gz"
|
||||||
|
|
||||||
wget --timeout=10 -O "$TOXCORE_FILENAME" "https://github.com/TokTok/c-toxcore/archive/v$TOXCORE_VERSION.tar.gz"
|
wget --timeout=10 -O "$TOXCORE_FILENAME" "https://github.com/TokTok/c-toxcore/archive/$TOXCORE_VERSION.tar.gz"
|
||||||
check_sha256 "$TOXCORE_HASH" "$TOXCORE_FILENAME"
|
check_sha256 "$TOXCORE_HASH" "$TOXCORE_FILENAME"
|
||||||
tar -o -xf "$TOXCORE_FILENAME"
|
tar -o -xf "$TOXCORE_FILENAME"
|
||||||
rm "$TOXCORE_FILENAME"
|
rm "$TOXCORE_FILENAME"
|
||||||
@ -160,8 +164,8 @@ cmake --build _build --target install
|
|||||||
# location with SSL_CERT_FILE env variable.
|
# location with SSL_CERT_FILE env variable.
|
||||||
cd "$BUILD_DIR"
|
cd "$BUILD_DIR"
|
||||||
|
|
||||||
CURL_VERSION="7.74.0"
|
CURL_VERSION="7.77.0"
|
||||||
CURL_HASH="e56b3921eeb7a2951959c02db0912b5fcd5fdba5aca071da819e1accf338bbd7"
|
CURL_HASH="b0a3428acb60fa59044c4d0baae4e4fc09ae9af1d8a3aa84b2e3fbcd99841f77"
|
||||||
CURL_FILENAME="curl-$CURL_VERSION.tar.gz"
|
CURL_FILENAME="curl-$CURL_VERSION.tar.gz"
|
||||||
|
|
||||||
wget --timeout=10 -O "$CURL_FILENAME" "https://curl.haxx.se/download/$CURL_FILENAME"
|
wget --timeout=10 -O "$CURL_FILENAME" "https://curl.haxx.se/download/$CURL_FILENAME"
|
||||||
@ -178,7 +182,8 @@ cd curl*
|
|||||||
--without-ca-path \
|
--without-ca-path \
|
||||||
--with-ca-fallback \
|
--with-ca-fallback \
|
||||||
--with-nghttp2 \
|
--with-nghttp2 \
|
||||||
--with-brotli
|
--with-brotli \
|
||||||
|
--with-openssl
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
sed -i 's|-lbrotlidec |-lbrotlidec-static -lbrotlicommon-static |g' $BUILD_DIR/prefix-curl/lib/pkgconfig/libcurl.pc
|
sed -i 's|-lbrotlidec |-lbrotlidec-static -lbrotlicommon-static |g' $BUILD_DIR/prefix-curl/lib/pkgconfig/libcurl.pc
|
||||||
@ -214,6 +219,7 @@ CFLAGS="-static" PKG_CONFIG_PATH="$BUILD_DIR/prefix-toxcore/lib64/pkgconfig:$BUI
|
|||||||
ENABLE_PYTHON=0 \
|
ENABLE_PYTHON=0 \
|
||||||
ENABLE_RELEASE=1 \
|
ENABLE_RELEASE=1 \
|
||||||
ENABLE_ASAN=0 \
|
ENABLE_ASAN=0 \
|
||||||
|
DISABLE_GAMES=0 \
|
||||||
install
|
install
|
||||||
|
|
||||||
|
|
||||||
@ -295,3 +301,4 @@ mv "$PREPARE_ARTIFACT_DIR" "$PREPARE_ARTIFACT_DIR/../$ARTIFACT_NAME"
|
|||||||
tar -cJf "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_NAME"
|
tar -cJf "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_NAME"
|
||||||
mv "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_DIR"
|
mv "$ARTIFACT_NAME.tar.xz" "$ARTIFACT_DIR"
|
||||||
chmod 777 -R "$ARTIFACT_DIR"
|
chmod 777 -R "$ARTIFACT_DIR"
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#define GAME_UTIL
|
#define GAME_UTIL
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
typedef struct Coords {
|
typedef struct Coords {
|
||||||
int x;
|
int x;
|
||||||
|
Reference in New Issue
Block a user