scorched3d: fix build with modern toolchains
update dependencies, mark unmaintained
This commit is contained in:
parent
502c836b82
commit
c76f5ff331
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF3+fMAXGw9ypBKFaZ6P3cSECBZumXam+ZrVf++54LrQu4JcTIDZx0rP6lkQtU/FuMAKGL+P6fNZaQMa6Xf63idgk=
|
RWSagIOpLGJF3yOzA9Ef8Fx5soMW3FvMUJrQWeMYHTORSDJK5rpt31Ni28uwAZfqFdHOhuMTHTmoWh3OMIe1t0f8wszhTE9eQwY=
|
||||||
SHA256 (Pkgfile) = 5fc44e8c57b296416c26547a9f8320aaf98146da266a935433c8629e984a4c70
|
SHA256 (Pkgfile) = 6116735fb8c0532b0318221ed191eb02fef2227a6ed819e6c035f95f706fe11d
|
||||||
SHA256 (.footprint) = 12a2fb26ccd84016ab1d2e36cb7da54bd25364c7ebba0502c9e9c857fb0a68b7
|
SHA256 (.footprint) = 940f5ce0cdb4df67a3d4990e5fb2fbb1df58ffae622f68a93a555077950183b0
|
||||||
SHA256 (Scorched3D-43.3d-src.tar.gz) = a5e7bdc3810517ab142cfcb43951ca55d03c81252d00bc323f0f204deb62ef1c
|
SHA256 (scorched3d-44-src.tar.gz) = a0b6d78a0f677e7e5eab78bf26596b1447ba411431bc59af84177001dd18be51
|
||||||
|
|
|
@ -1,44 +1,36 @@
|
||||||
# Description: A 3D recreation of the classic DOS game Scorched Earth.
|
# Description: A 3D recreation of the classic DOS game Scorched Earth.
|
||||||
# URL: http://www.scorched3d.co.uk/
|
# URL: https://github.com/jjaxse2017/scorched-earth-3d
|
||||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
# Maintainer: UNMAINTAINED
|
||||||
# Depends on: dos2unix fftw freealut glew sdl_mixer sdl_net wxgtk3
|
# Depends on: fftw freealut glew sdl_mixer sdl_net wxgtk3 p7zip
|
||||||
|
|
||||||
name=scorched3d
|
name=scorched3d
|
||||||
version=44
|
version=44
|
||||||
release=1
|
release=2
|
||||||
source=(https://sourceforge.net/projects/scorched3d/files/scorched3d/Version%2044/Scorched3D-$version-src.tar.gz
|
source=(https://github.com/jjaxse2017/scorched-earth-3d/archive/x86_64_gcc_7/$name-$version-src.tar.gz)
|
||||||
# https://gitweb.gentoo.org/repo/gentoo.git/tree/games-strategy/scorched3d/files
|
|
||||||
scorched3d-44-fix-c++14.patch scorched3d-44-fixups.patch scorched3d-44-freetype.patch
|
|
||||||
scorched3d-44-gcc43.patch scorched3d-44-jpeg9.patch scorched3d-44-odbc.patch scorched3d-44-win32.patch
|
|
||||||
scorched3d-44-wxgtk.patch)
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd scorched
|
cd scorched-earth-3d-*/data/globalmods
|
||||||
patch -Np1 -i $SRC/scorched3d-44-fixups.patch
|
7z x apoc.7z
|
||||||
patch -Np1 -i $SRC/scorched3d-44-gcc43.patch
|
7z x none.7z.001
|
||||||
patch -Np1 -i $SRC/scorched3d-44-odbc.patch
|
cd ../..
|
||||||
patch -Np1 -i $SRC/scorched3d-44-win32.patch
|
|
||||||
patch -Np1 -i $SRC/scorched3d-44-freetype.patch
|
|
||||||
patch -Np1 -i $SRC/scorched3d-44-jpeg9.patch
|
|
||||||
patch -Np1 -i $SRC/scorched3d-44-fix-c++14.patch
|
|
||||||
#patch -Np1 -i $SRC/scorched3d-44-wxgtk.patch
|
|
||||||
|
|
||||||
# dos2unix \
|
# accommodate the new wxgtk function signatures
|
||||||
# src/launcher/wxdialogs/SettingsDialog.cpp \
|
sed -e '/SetTickFreq/s/4, 0/4/' \
|
||||||
# src/launcher/wxdialogs/DisplayDialog.cpp \
|
-i src/launcher/wxdialogs/DisplayDialog.cpp
|
||||||
# src/launcher/wxdialogs/Display.cpp \
|
|
||||||
# src/launcher/wxdialogs/KeyDialog.cpp
|
# update the version string, and respect the syntax expected by test
|
||||||
|
sed -e '/ VERSION=43/s/43/44/; /test/s/== /= /g' -i configure
|
||||||
|
|
||||||
# autoreconf -fvi --no-recursive
|
# configure using pkgconf, not the deprecated freetype-config
|
||||||
|
FT2_CONFIG="/usr/bin/pkgconf freetype2" \
|
||||||
CONFIG_SHELL=/bin/bash \
|
/bin/bash ./configure \
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--datadir=/usr/share/scorched3d \
|
--datadir=/usr/share/scorched3d \
|
||||||
--with-wx-config=/usr/bin/wx-config-gtk3 \
|
--with-wx-config=/usr/bin/wx-config-gtk3 \
|
||||||
--without-pgsql \
|
--without-pgsql \
|
||||||
|
--disable-freetypetest \
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
SHELL=/bin/bash \
|
|
||||||
make
|
make
|
||||||
make DESTDIR=$PKG install
|
make DESTDIR=$PKG install
|
||||||
rm -r $PKG/usr/share/scorched3d/documentation
|
rm -r $PKG/usr/share/scorched3d/documentation
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Scorched3D: known issues
|
||||||
|
|
||||||
|
xorg-server is needed to play this game, but not to build it. Scorched3D is
|
||||||
|
linked against libsdl 1.2, which unlike SDL2 does not support newer video
|
||||||
|
protocols. A pure-Wayland desktop can launch the server (scorched3ds), but
|
||||||
|
not the client (scorched3dc) which relies on an Xorg-compatible build of
|
||||||
|
glew.
|
||||||
|
|
||||||
|
It is normal to encounter WxGtk errors when first launching scorched3d.
|
||||||
|
Click through, and you should be able to reach the settings menu.
|
Loading…
Reference in New Issue