Merge pull request #37908 from lheckemann/openclonk-8.1

Openclonk 8.1
This commit is contained in:
Jörg Thalheim 2018-04-14 18:49:10 +01:00 committed by GitHub
commit 997ead8ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, gnome3, pcre, freetype, glew, gtk3, libjpeg, libpng, { stdenv, fetchurl, cmake, pkgconfig
SDL, SDL_mixer, libupnp, xorg, pkgconfig, gtest, tinyxml, gmock, readline, , SDL2, libvorbis, libogg, libjpeg, libpng, freetype, glew, tinyxml, openal
libxkbcommon, epoxy, at-spi2-core, dbus, libxml2, , freealut, readline, gcc-unwrapped
enableSoundtrack ? false # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther , enableSoundtrack ? false # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther
}: }:
let let
@ -10,32 +10,38 @@ let
sha256 = "1ckj0dlpp5zsnkbb5qxxfxpkiq76jj2fgj91fyf3ll7n0gbwcgw5"; sha256 = "1ckj0dlpp5zsnkbb5qxxfxpkiq76jj2fgj91fyf3ll7n0gbwcgw5";
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
version = "7.0"; version = "8.1";
name = "openclonk-${version}"; name = "openclonk-${version}";
src = fetchurl { src = fetchurl {
url = "http://www.openclonk.org/builds/release/7.0/openclonk-${version}-src.tar.bz2"; url = "http://www.openclonk.org/builds/release/8.1/openclonk-${version}-src.tar.bz2";
sha256 = "0ch71dqaaalg744pc1gvg6sj2yp2kgvy2m4yh6l7ljkpf8fj66mw"; sha256 = "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik";
}; };
postInstall = '' postInstall = ''
mv -v $out/games/openclonk $out/bin/ mv -v $out/games/openclonk $out/bin/
'' + stdenv.lib.optionalString enableSoundtrack '' '' + stdenv.lib.optionalString enableSoundtrack ''
cp -v ${soundtrack_src} $out/share/games/openclonk/Music.ocg ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ buildInputs = [
cmake gnome3.gtksourceview pcre freetype glew gtk3 libjpeg libpng SDL SDL2 libvorbis libogg libjpeg libpng freetype glew tinyxml openal freealut
SDL_mixer libupnp tinyxml xorg.libpthreadstubs libxkbcommon xorg.libXdmcp readline
pkgconfig gtest gmock readline epoxy at-spi2-core dbus libxml2
]; ];
cmakeFlags = [ "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar" "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" ];
cmakeBuildType = "RelWithDebInfo";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Free multiplayer action game in which you control clonks, small but witty and nimble humanoid beings"; description = "Free multiplayer action game in which you control clonks, small but witty and nimble humanoid beings";
homepage = http://openclonk.org; homepage = https://www.openclonk.org;
license = if enableSoundtrack then licenses.unfreeRedistributable else licenses.isc; license = if enableSoundtrack then licenses.unfreeRedistributable else licenses.isc;
platforms = platforms.all; maintainers = with maintainers; [ lheckemann ];
platforms = [ "x86_64-linux" "i686-linux" ];
}; };
} }