void-packages/srcpkgs/SLADE/template

28 lines
993 B
Bash

# Template file for 'SLADE'
pkgname=SLADE
version=3.2.4
revision=1
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
hostmakedepends="pkg-config p7zip which"
makedepends="SFML-devel fluidsynth-devel freeimage-devel ftgl-devel glew-devel
gtk+3-devel libcurl-devel wxWidgets-gtk3-devel bzip2-devel zlib-devel
lua53-devel dumb-devel liblzma-devel"
short_desc="Modern editor for Doom-engine based games"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://github.com/sirjuddington/SLADE"
changelog="https://github.com/sirjuddington/SLADE/releases/tag/${version}"
distfiles="https://github.com/sirjuddington/SLADE/archive/${version}.tar.gz"
checksum=bded8e2218bc37c98c7f27894889433abf543d36038cde9e25d0162de7ac8f6e
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
pre_configure() {
case $XBPS_TARGET_MACHINE in
x86_64* | i686*);;
*) vsed -e '/D_USE_SSE/d' -i src/CMakeLists.txt;;
esac
vsed -e 's/wx-config/wx-config-gtk3/g' -i src/CMakeLists.txt
}