Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37706658
en ru br
Репозитории ALT

Группа :: Игры/Аркады
Пакет: slade

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: slade
Version: 3.2.4
Release: alt1

Summary: SLADE3 Doom editor
License: GPLv2
Group: Games/Arcade

Url: https://slade.mancubus.net/

Packager: Artyom Bystrov <arbars at altlinux.org>

Source: %name-%version.tar
Patch: fix-aarch64-build.patch

BuildRequires(pre): rpm-macros-cmake
BuildRequires: gcc-c++
BuildRequires: libfmt-devel
BuildRequires: libmpg123-devel
BuildRequires: cmake
BuildRequires: ImageMagick-tools
BuildRequires: p7zip
BuildRequires: bzlib-devel
BuildRequires: libfreeimage-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libwxGTK3.2-devel
BuildRequires: libfluidsynth-devel
BuildRequires: libftgl-devel
BuildRequires: libglvnd
BuildRequires: libGLEW-devel
BuildRequires: libgtk+3-devel
BuildRequires: libcurl-devel
BuildRequires: libSFML-devel
BuildRequires: libX11-devel
BuildRequires: jackit-devel
BuildRequires: liblua5.3-devel

%description
SLADE3 is a modern editor for Doom-engine based games and source
ports. It has the ability to view, modify, and write many different
game-specific formats, and even convert between some of them, or
from/to other generic formats such as PNG.

%prep
%setup -n %name-%version

%patch0 -p1

%__subst '/#include <FreeImage.h>/a #undef _WINDOWS_ ' src/common.h

# std::filesystem components can be used without -lstdc++fs with gcc >= 9

%__subst '/lstdc++fs/d' src/CMakeLists.txt

# delete SSE instructions for non-x86 arch

%ifarch aarch64 ppc64le mipsel armh %e2k
%__subst '/-D_USE_SSE -msse/d' src/CMakeLists.txt
%endif

%build
%cmake_insource \
-DUSE_WX_EXCEPTION_HANDLER=0 \
-DWX_GTK3:BOOL=ON

%make_build

%install
%makeinstall_std

# install menu entry

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop << EOF
[Desktop Entry]
Name=SLADE3
Comment=Doom editor
Exec=%name
Icon=%name
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# install menu icons

for N in 16 32 48 64 128;
do
convert dist/res/logo_icon.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png
done

%files
%_iconsdir/hicolor/*/apps/%name.png
%doc README.md LICENSE
%_bindir/%name
%_datadir/slade3/
%_desktopdir/%name.desktop
%_datadir/metainfo/net.mancubus.SLADE.metainfo.xml

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin