From: Emru1 <Emru1@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] OpenTTD: updated to 12.0
Date: Thu, 11 Nov 2021 20:29:22 +0100 [thread overview]
Message-ID: <20211111192922.MhQCAetlLQTitG0LYKCUd43jwmcqYwo3ySPEPkxaoiE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33787@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]
There is an updated pull request by Emru1 against master on the void-packages repository
https://github.com/Emru1/void-packages openttd
https://github.com/void-linux/void-packages/pull/33787
OpenTTD: updated to 12.0
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/33787.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openttd-33787.patch --]
[-- Type: text/x-diff, Size: 5006 bytes --]
From acc4fd8786b4139460da14beeccb0de98af369c7 Mon Sep 17 00:00:00 2001
From: Emil Tomczyk <emruemru1@gmail.com>
Date: Thu, 11 Nov 2021 20:27:24 +0100
Subject: [PATCH] OpenTTD: update to 12.0
---
srcpkgs/openttd/patches/add_gfx.patch | 12 +++++
.../patches/disable_regression_tests.patch | 7 +++
srcpkgs/openttd/template | 46 ++++++++-----------
3 files changed, 38 insertions(+), 27 deletions(-)
create mode 100644 srcpkgs/openttd/patches/add_gfx.patch
create mode 100644 srcpkgs/openttd/patches/disable_regression_tests.patch
diff --git a/srcpkgs/openttd/patches/add_gfx.patch b/srcpkgs/openttd/patches/add_gfx.patch
new file mode 100644
index 000000000000..280ed74a77ce
--- /dev/null
+++ b/srcpkgs/openttd/patches/add_gfx.patch
@@ -0,0 +1,12 @@
+--- a/openttd-12.0/media/baseset/CMakeLists.txt 2021-10-17 11:31:25.000000000 +0200
++++ b/openttd-12.0/media/baseset/CMakeLists.txt 2021-11-11 20:07:16.408109043 +0100
+@@ -19,0 +20,9 @@ set(BASESET_OTHER_SOURCE_FILES
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfx1_base.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfxc_arctic.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfxe_extra.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfxh_tropical.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfxi_logos.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/ogfxt_toyland.grf
++ ${CMAKE_CURRENT_SOURCE_DIR}/opensfx.cat
++ ${CMAKE_CURRENT_SOURCE_DIR}/opensfx.obs
++ ${CMAKE_CURRENT_SOURCE_DIR}/opengfx.obg
diff --git a/srcpkgs/openttd/patches/disable_regression_tests.patch b/srcpkgs/openttd/patches/disable_regression_tests.patch
new file mode 100644
index 000000000000..9af9c836f216
--- /dev/null
+++ b/srcpkgs/openttd/patches/disable_regression_tests.patch
@@ -0,0 +1,7 @@
+--- a/openttd-12.0/CMakeLists.txt 2021-10-17 11:31:25.000000000 +0200
++++ b/openttd-12.0/CMakeLists.txt 2021-11-11 09:52:41.313326191 +0100
+@@ -378,2 +378,2 @@ endif()
+-include(CreateRegression)
+-create_regression()
++# include(CreateRegression)
++# create_regression()
diff --git a/srcpkgs/openttd/template b/srcpkgs/openttd/template
index d6aedccab9ee..859079d8796a 100644
--- a/srcpkgs/openttd/template
+++ b/srcpkgs/openttd/template
@@ -1,26 +1,31 @@
# Template file for 'openttd'
pkgname=openttd
-version=1.10.3
+version=12.0
revision=3
-_gfxver=0.6.0
-_sfxver=0.2.3
+_gfxver=7.1
+_sfxver=1.0.2
create_wrksrc=yes
build_wrksrc=openttd-$version
-build_style=gnu-configure
+build_style=cmake
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_BINDIR=bin
+ -DCMAKE_INSTALL_DATADIR=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"
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"
+checksum="bba0fd3800df0370259e642d251f362c7c00b478a2e3531f6ba7f84c1c2b32dc
+ 928fcf34efd0719a3560cbab6821d71ce686b6315e8825360fba87a7a94d7846
+ 4814f5374eb8da0df888a4e38c3edbff3e6e3ddbb4ab13aae6933a0df3c0d333"
CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
@@ -28,28 +33,15 @@ CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
post_extract() {
cd $wrksrc
bsdtar xf opengfx-${_gfxver}.tar
+ bsdtar xf opensfx-${_sfxver}.tar
rm opengfx-${_gfxver}.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
+ rm opensfx-${_sfxver}.tar
+ cp opengfx-${_gfxver}/*.grf openttd-${version}/media/baseset
+ cp opengfx-${_gfxver}/*.obg openttd-${version}/media/baseset
+ cp opensfx-${_sfxver}/opensfx.* openttd-${version}/media/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
vdoc ../opengfx-${_gfxver}/readme.txt README-gfx
next prev parent reply other threads:[~2021-11-11 19:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 15:30 [PR PATCH] " Emru1
2021-10-28 4:16 ` [PR REVIEW] " ericonr
2021-10-28 8:25 ` Emru1
2021-11-11 19:29 ` Emru1 [this message]
2021-11-11 19:47 ` [PR PATCH] [Updated] " Emru1
2021-11-11 19:50 ` Emru1
2021-11-12 2:13 ` ericonr
2022-06-10 2:13 ` github-actions
2022-06-14 14:30 ` [PR PATCH] [Closed]: " Emru1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211111192922.MhQCAetlLQTitG0LYKCUd43jwmcqYwo3ySPEPkxaoiE@z \
--to=emru1@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).