diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-13 01:58:42 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-11-19 00:56:59 -0600 |
commit | c18e6afa94377f981340ed74dd5344788dea64c7 (patch) | |
tree | 5c158e0a9056a55a932c21d66a3e695864c82635 | |
parent | 4e3ee28b9c5ca2933aaf550990421036d8eace27 (diff) | |
download | packages-c18e6afa94377f981340ed74dd5344788dea64c7.tar.gz packages-c18e6afa94377f981340ed74dd5344788dea64c7.tar.bz2 packages-c18e6afa94377f981340ed74dd5344788dea64c7.tar.xz packages-c18e6afa94377f981340ed74dd5344788dea64c7.zip |
user/openttd: Update to 14.1, SDL2
-rw-r--r-- | user/openttd/APKBUILD | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/user/openttd/APKBUILD b/user/openttd/APKBUILD index 0ad34bb58..b2802c462 100644 --- a/user/openttd/APKBUILD +++ b/user/openttd/APKBUILD @@ -1,31 +1,41 @@ # Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=openttd -pkgver=1.10.2 +pkgver=14.1 pkgrel=0 pkgdesc="Simulation game based on Transport Tycoon Deluxe" url="https://www.openttd.org/en/" arch="all" -options="!check" # Test files not shipped in release package. +#options="!check" # Test files not shipped in release package. license="GPL-2.0-only" depends="opengfx openmsx opensfx" -makedepends="fontconfig-dev freetype-dev icu-dev libpng-dev libxdg-basedir-dev - lzo-dev sdl-dev xz-dev zlib-dev" +makedepends="cmake curl-dev dbus-dev fluidsynth-dev fontconfig-dev freetype-dev + grfcodec harfbuzz-dev icu-dev libpng-dev lzo-dev mesa-dev sdl2-dev + xz-dev zlib-dev" subpackages="$pkgname-doc" source="https://cdn.openttd.org/openttd-releases/$pkgver/openttd-$pkgver-source.tar.xz" build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --install-dir="$pkgdir" \ - --disable-strip - make + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} -B build + make -C build +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test } package() { - make install + make -C build DESTDIR="$pkgdir" install } -sha512sums="03de85449a458c76c07d8a28c34f72bc95ab0652c666e5925da43746cdd4e95b0d66360b6e214d1df33f11b5346da2e3b9ca6832ac6628c7d6e5e0a791881683 openttd-1.10.2-source.tar.xz" +sha512sums="194135cc01457d9ed069c09d8961ad3de681bc9936533ca81ff23099f394bb9a83ef84a0852e85525e258f6149e14fd41cfc5f8e683c0643515005c42fb77e3b openttd-14.1-source.tar.xz" |