mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
openttd: update to 13.1.
This commit is contained in:
parent
9fe1187f20
commit
0a721b9f4c
2 changed files with 52 additions and 33 deletions
12
srcpkgs/openttd/patches/regression_tests.patch
Normal file
12
srcpkgs/openttd/patches/regression_tests.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
Fix regression tests on musl libc
|
||||
index 19fece83f5..641e1e6de2 100644
|
||||
--- a/openttd-13.1/cmake/scripts/Regression.cmake
|
||||
+++ b/openttd-13.1/cmake/scripts/Regression.cmake
|
||||
@@ -53,6 +53,7 @@ endif()
|
||||
string(REPLACE "0x(nil)" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}")
|
||||
string(REPLACE "0x0000000000000000" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}")
|
||||
string(REPLACE "0x0x0" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}")
|
||||
+string(REPLACE "(null : 0x0)" "(null : 0x00000000)" REGRESSION_RESULT "${REGRESSION_RESULT}")
|
||||
|
||||
# Remove timestamps if any
|
||||
string(REGEX REPLACE "\[[0-9-]+ [0-9:]+\] " "" REGRESSION_RESULT "${REGRESSION_RESULT}")
|
|
@ -1,57 +1,64 @@
|
|||
# Template file for 'openttd'
|
||||
pkgname=openttd
|
||||
version=1.10.3
|
||||
revision=6
|
||||
_gfxver=0.6.0
|
||||
_sfxver=0.2.3
|
||||
version=13.1
|
||||
revision=1
|
||||
_gfxver=7.1
|
||||
_sfxver=1.0.3
|
||||
_msxver=0.4.2
|
||||
create_wrksrc=yes
|
||||
build_wrksrc=openttd-$version
|
||||
build_style=gnu-configure
|
||||
build_style=cmake
|
||||
build_helper=qemu
|
||||
configure_args="
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_BINDIR=bin
|
||||
-DCMAKE_INSTALL_DATADIR=/usr/share
|
||||
-DCMAKE_INSTALL_DOCDIR=share/doc/openttd
|
||||
"
|
||||
|
||||
hostmakedepends="pkg-config unzip tar"
|
||||
makedepends="SDL-devel icu-devel fontconfig-devel libpng-devel lzo-devel liblzma-devel
|
||||
libxdg-basedir-devel"
|
||||
depends="hicolor-icon-theme"
|
||||
makedepends="SDL2-devel libcurl-devel freetype-devel fontconfig-devel
|
||||
harfbuzz-devel icu-devel libpng-devel liblzma-devel fluidsynth-devel"
|
||||
depends="hicolor-icon-theme fluidsynth soundfont-fluid"
|
||||
short_desc="Open Source version of Transport Tycoon Deluxe"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
maintainer="Emil Tomczyk <emil.tomczyk@skni.umcs.pl>"
|
||||
license="GPL-2.0-only, Zlib"
|
||||
homepage="https://www.openttd.org/"
|
||||
distfiles="https://proxy.binaries.openttd.org/openttd-releases/${version}/openttd-${version}-source.tar.xz
|
||||
distfiles="https://cdn.openttd.org/openttd-releases/${version}/openttd-${version}-source.tar.xz
|
||||
https://cdn.openttd.org/opengfx-releases/${_gfxver}/opengfx-${_gfxver}-all.zip
|
||||
https://cdn.openttd.org/opensfx-releases/${_sfxver}/opensfx-${_sfxver}-all.zip"
|
||||
checksum="c11601ef547eb1f6d4f9a035bd19e0a760b47872ce7d9b4117aaa45ac377b53b
|
||||
d419c0f5f22131de15f66ebefde464df3b34eb10e0645fe218c59cbc26c20774
|
||||
6831b651b3dc8b494026f7277989a1d757961b67c17b75d3c2e097451f75af02"
|
||||
https://cdn.openttd.org/opensfx-releases/${_sfxver}/opensfx-${_sfxver}-all.zip
|
||||
https://cdn.openttd.org/openmsx-releases/${_msxver}/openmsx-${_msxver}-all.zip"
|
||||
checksum="5edf22d37035238285ef672a97d59e64280bebab23e584780834ccd6be0a58bb
|
||||
928fcf34efd0719a3560cbab6821d71ce686b6315e8825360fba87a7a94d7846
|
||||
e0a218b7dd9438e701503b0f84c25a97c1c11b7c2f025323fb19d6db16ef3759
|
||||
5a4277a2e62d87f2952ea5020dc20fb2f6ffafdccf9913fbf35ad45ee30ec762"
|
||||
|
||||
|
||||
CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
cd $wrksrc
|
||||
bsdtar xf opengfx-${_gfxver}.tar
|
||||
bsdtar xf opensfx-${_sfxver}.tar
|
||||
bsdtar xf openmsx-${_msxver}.tar
|
||||
rm opengfx-${_gfxver}.tar
|
||||
rm opensfx-${_sfxver}.tar
|
||||
rm openmsx-${_msxver}.tar
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
./configure --prefix-dir=/usr \
|
||||
--cc-build=gcc \
|
||||
--cxx-build=g++ \
|
||||
--binary-dir=bin \
|
||||
--data-dir=share/openttd \
|
||||
--doc-dir=share/doc/openttd \
|
||||
--with-lzo2=${XBPS_CROSS_BASE}/usr/lib \
|
||||
--binary-name=openttd \
|
||||
--install-dir=${DESTDIR} \
|
||||
--menu-name=OpenTTD \
|
||||
--with-xdg-basedir
|
||||
post_build() {
|
||||
cp ../opengfx-${_gfxver}/*.grf build/baseset
|
||||
cp ../opengfx-${_gfxver}/opengfx.obg build/baseset
|
||||
cp ../opensfx-${_sfxver}/opensfx.* build/baseset
|
||||
cp -r ../openmsx-${_msxver} build/baseset
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vmkdir usr/share/openttd/data
|
||||
vcopy ../opengfx-${_gfxver}/*.grf usr/share/openttd/data
|
||||
vcopy ../opengfx-${_gfxver}/*.obg usr/share/openttd/data
|
||||
vcopy ../opensfx-${_sfxver}/opensfx.* usr/share/openttd/data
|
||||
vlicense ../opengfx-${_gfxver}/license.txt LICENSE-gfx
|
||||
vlicense ../opensfx-${_sfxver}/license.txt LICENSE-sfx
|
||||
vlicense ../openmsx-${_msxver}/license.txt LICENSE-msx
|
||||
vdoc ../opengfx-${_gfxver}/readme.txt README-gfx
|
||||
vdoc ../opensfx-${_sfxver}/readme.txt README-sfx
|
||||
vdoc ../openmsx-${_msxver}/readme.txt README-msx
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue