blob: 6432f9a162f3d27d7ec373e5a58f221dec0f60d8 (
plain)
1 # Description: A 3D recreation of the classic DOS game Scorched Earth.
2 # URL: http://www.scorched3d.co.uk/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: dos2unix fftw freealut glew sdl_mixer sdl_net wxgtk3
5
6 name=scorched3d
7 version=44
8 release=1
9 source=(https://sourceforge.net/projects/scorched3d/files/scorched3d/Version%2044/Scorched3D-$version-src.tar.gz
10 # https://gitweb.gentoo.org/repo/gentoo.git/tree/games-strategy/scorched3d/files
11 scorched3d-44-fix-c++14.patch scorched3d-44-fixups.patch scorched3d-44-freetype.patch
12 scorched3d-44-gcc43.patch scorched3d-44-jpeg9.patch scorched3d-44-odbc.patch scorched3d-44-win32.patch
13 scorched3d-44-wxgtk.patch)
14
15 build() {
16 cd scorched
17 patch -Np1 -i $SRC/scorched3d-44-fixups.patch
18 patch -Np1 -i $SRC/scorched3d-44-gcc43.patch
19 patch -Np1 -i $SRC/scorched3d-44-odbc.patch
20 patch -Np1 -i $SRC/scorched3d-44-win32.patch
21 patch -Np1 -i $SRC/scorched3d-44-freetype.patch
22 patch -Np1 -i $SRC/scorched3d-44-jpeg9.patch
23 patch -Np1 -i $SRC/scorched3d-44-fix-c++14.patch
24 #patch -Np1 -i $SRC/scorched3d-44-wxgtk.patch
25
26 # dos2unix \
27 # src/launcher/wxdialogs/SettingsDialog.cpp \
28 # src/launcher/wxdialogs/DisplayDialog.cpp \
29 # src/launcher/wxdialogs/Display.cpp \
30 # src/launcher/wxdialogs/KeyDialog.cpp
31
32 # autoreconf -fvi --no-recursive
33
34 CONFIG_SHELL=/bin/bash \
35 ./configure \
36 --prefix=/usr \
37 --datadir=/usr/share/scorched3d \
38 --with-wx-config=/usr/bin/wx-config-gtk3 \
39 --without-pgsql \
40 --disable-dependency-tracking
41 SHELL=/bin/bash \
42 make
43 make DESTDIR=$PKG install
44 rm -r $PKG/usr/share/scorched3d/documentation
45 }
|