mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
Cataclysm-DDA: update to 0.D.
This commit is contained in:
parent
6857fc3069
commit
89bf7cdad3
5 changed files with 37 additions and 117 deletions
|
@ -1,11 +0,0 @@
|
||||||
--- Makefile 2018-05-09 11:54:14.784015950 +0200
|
|
||||||
+++ - 2018-05-09 12:20:16.912784456 +0200
|
|
||||||
@@ -412,7 +412,7 @@
|
|
||||||
@
|
|
||||||
|
|
||||||
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
|
|
||||||
- $(LD) $(W32FLAGS) -o $(TARGET) $(DEFINES) \
|
|
||||||
+ $(CXX) $(W32FLAGS) -o $(TARGET) $(DEFINES) \
|
|
||||||
$(OBJS) $(LDFLAGS)
|
|
||||||
|
|
||||||
.PHONY: version json-verify
|
|
|
@ -1,20 +0,0 @@
|
||||||
--- src/debug.cpp 2015-03-09 06:25:34.000000000 +0100
|
|
||||||
+++ - 2018-05-09 13:16:45.359758459 +0200
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__)
|
|
||||||
+#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__) && defined(__GLIBC__)
|
|
||||||
#include <execinfo.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
@@ -309,7 +309,7 @@
|
|
||||||
debugFile.file << ": ";
|
|
||||||
|
|
||||||
// Backtrace on error.
|
|
||||||
-#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__)
|
|
||||||
+#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__) && defined(__GLIBC__)
|
|
||||||
if( lev == D_ERROR ) {
|
|
||||||
int count = backtrace( tracePtrs, TRACE_SIZE );
|
|
||||||
char **funcNames = backtrace_symbols( tracePtrs, count );
|
|
|
@ -1,52 +0,0 @@
|
||||||
--- Makefile 2018-05-09 12:22:50.994990401 +0200
|
|
||||||
+++ - 2018-05-09 12:45:12.744048126 +0200
|
|
||||||
@@ -476,30 +476,30 @@
|
|
||||||
BIN_PREFIX=$(PREFIX)/bin
|
|
||||||
LOCALE_DIR=$(PREFIX)/share/locale
|
|
||||||
install: version $(TARGET)
|
|
||||||
- mkdir -p $(DATA_PREFIX)
|
|
||||||
- mkdir -p $(BIN_PREFIX)
|
|
||||||
- install --mode=755 $(TARGET) $(BIN_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/font $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/json $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/mods $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/names $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/raw $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/recycling $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/motd $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/credits $(DATA_PREFIX)
|
|
||||||
- cp -R --no-preserve=ownership data/title $(DATA_PREFIX)
|
|
||||||
+ mkdir -p $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ mkdir -p $(DESTDIR)$(BIN_PREFIX)
|
|
||||||
+ install --mode=755 $(TARGET) $(DESTDIR)$(BIN_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/font $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/json $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/mods $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/names $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/raw $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/recycling $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/motd $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/credits $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership data/title $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
ifdef TILES
|
|
||||||
- cp -R --no-preserve=ownership gfx $(DATA_PREFIX)
|
|
||||||
+ cp -R --no-preserve=ownership gfx $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
endif
|
|
||||||
ifdef LUA
|
|
||||||
- mkdir -p $(DATA_PREFIX)/lua
|
|
||||||
- install --mode=644 lua/autoexec.lua $(DATA_PREFIX)/lua
|
|
||||||
- install --mode=644 lua/class_definitions.lua $(DATA_PREFIX)/lua
|
|
||||||
+ mkdir -p $(DESTDIR)$(DATA_PREFIX)/lua
|
|
||||||
+ install --mode=644 lua/autoexec.lua $(DESTDIR)$(DATA_PREFIX)/lua
|
|
||||||
+ install --mode=644 lua/class_definitions.lua $(DESTDIR)$(DATA_PREFIX)/lua
|
|
||||||
endif
|
|
||||||
install --mode=644 data/changelog.txt data/cataicon.ico data/fontdata.json \
|
|
||||||
- README.txt LICENSE.txt -t $(DATA_PREFIX)
|
|
||||||
- mkdir -p $(LOCALE_DIR)
|
|
||||||
- LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh
|
|
||||||
+ README.txt LICENSE.txt -t $(DESTDIR)$(DATA_PREFIX)
|
|
||||||
+ mkdir -p $(DESTDIR)$(LOCALE_DIR)
|
|
||||||
+ LOCALE_DIR=$(DESTDIR)$(LOCALE_DIR) lang/compile_mo.sh
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGETSYSTEM), CYGWIN)
|
|
|
@ -1,10 +0,0 @@
|
||||||
--- Makefile 2015-03-09 06:25:34.000000000 +0100
|
|
||||||
+++ - 2018-05-09 11:54:13.335211524 +0200
|
|
||||||
@@ -49,7 +49,6 @@
|
|
||||||
# we don't check in code with new warnings, but we also have to disable some classes of warnings
|
|
||||||
# for now as we get rid of them. In non-release builds we want to show all the warnings,
|
|
||||||
# even the ones we're allowing in release builds so they're visible to developers.
|
|
||||||
-RELEASE_FLAGS = -Werror
|
|
||||||
WARNINGS = -Wall -Wextra
|
|
||||||
# Uncomment below to disable warnings
|
|
||||||
#WARNINGS = -w
|
|
|
@ -1,40 +1,56 @@
|
||||||
# Template file for 'Cataclysm-DDA'
|
# Template file for 'Cataclysm-DDA'
|
||||||
pkgname=Cataclysm-DDA
|
pkgname=Cataclysm-DDA
|
||||||
version=0.C
|
version=0.D
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=cmake
|
||||||
make_build_args="PREFIX=/usr RELEASE=1 TILES=1 SOUND=1 USE_HOME_DIR=1"
|
configure_args="-DRELEASE=1 $(vopt_bool backtrace BACKTRACE) $(vopt_bool lua LUA)"
|
||||||
make_install_args="TILES=1 SOUND=1 USE_HOME_DIR=1"
|
|
||||||
make_use_env=yes
|
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel freetype-devel
|
makedepends="$(vopt_if tiles 'SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel') freetype-devel
|
||||||
gettext-devel lua-devel"
|
gettext-devel ncurses-devel $(vopt_if lua lua-devel)"
|
||||||
depends="Cataclysm-DDA-data"
|
depends="Cataclysm-DDA-data"
|
||||||
short_desc="Turn-based survival game set in a post-apocalyptic world"
|
short_desc="Turn-based survival game set in a post-apocalyptic world"
|
||||||
maintainer="John <johnz@posteo.net>"
|
maintainer="John <johnz@posteo.net>"
|
||||||
license="CC-BY-SA-3.0, CC-BY-3.0"
|
license="CC-BY-SA-3.0, CC-BY-3.0"
|
||||||
homepage="https://cataclysmdda.org/"
|
homepage="https://cataclysmdda.org/"
|
||||||
distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
|
distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
|
||||||
checksum=69e947824626fffb505ca4ec44187ec94bba32c1e5957ba5c771b3445f958af6
|
checksum=6cc97b3e1e466b8585e8433a6d6010931e9a073f6ec060113161b38052d82882
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ];then
|
build_options="lua tiles backtrace"
|
||||||
_cross_args="TARGETSYSTEM=LINUX CROSS=${XBPS_CROSS_TRIPLET}-"
|
build_options_default="tiles"
|
||||||
make_build_args+=" $_cross_args"
|
|
||||||
make_install_args+=" $_cross_args"
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
*-musl);;
|
||||||
|
*) build_options_default+=" backtrace";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
build_options_default+=" lua"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_build() {
|
if [ "$build_option_tiles" ]; then
|
||||||
make ${makejobs} ${_cross_args} ${_no_tiles_args}
|
subpackages="Cataclysm-DDA-tiles-data Cataclysm-DDA-tiles"
|
||||||
}
|
post_configure() {
|
||||||
|
local cmake_builddir=build-tiles
|
||||||
|
configure_args+=" -DTILES=ON -DSOUND=ON"
|
||||||
|
do_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
local cmake_builddir=build-tiles
|
||||||
|
do_build
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
local cmake_builddir=build-tiles
|
||||||
|
do_install
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
subpackages+=" Cataclysm-DDA-data"
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
: #needs tap++.h
|
: #needs tap++.h
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
|
||||||
make PREFIX=/usr DESTDIR=${DESTDIR} ${_cross_args} ${_no_tiles_args} install
|
|
||||||
}
|
|
||||||
|
|
||||||
Cataclysm-DDA-tiles_package() {
|
Cataclysm-DDA-tiles_package() {
|
||||||
short_desc+=" - SDL tiles version"
|
short_desc+=" - SDL tiles version"
|
||||||
depends="Cataclysm-DDA-data Cataclysm-DDA-tiles-data"
|
depends="Cataclysm-DDA-data Cataclysm-DDA-tiles-data"
|
||||||
|
@ -48,6 +64,7 @@ Cataclysm-DDA-tiles-data_package() {
|
||||||
archs=noarch
|
archs=noarch
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/cataclysm-dda/gfx
|
vmove usr/share/cataclysm-dda/gfx
|
||||||
|
vmove usr/share/cataclysm-dda/sound
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,10 +72,6 @@ Cataclysm-DDA-data_package() {
|
||||||
short_desc+=" - data files"
|
short_desc+=" - data files"
|
||||||
archs=noarch
|
archs=noarch
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/locale
|
vmove usr/share/
|
||||||
for _i in json credits font mods motd names raw recycling title \
|
|
||||||
changelog.txt LICENSE.txt README.txt cataicon.ico fontdata.json;do
|
|
||||||
vmove usr/share/cataclysm-dda/$_i
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue