2010-11-13 08:47:04 +01:00
|
|
|
{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar
|
2012-03-09 01:59:13 +01:00
|
|
|
, gettext, bash, gawk, boost}:
|
2010-11-13 08:47:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2012-03-08 16:32:20 +01:00
|
|
|
name = "springlobby-${version}";
|
2012-05-01 14:40:57 +02:00
|
|
|
version = "0.146";
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
|
2012-05-01 14:40:57 +02:00
|
|
|
sha256 = "55899baf6732e48bfaa36d80974aa135c051d2cbb6fe92fbcffd80440639eedf";
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
|
|
|
|
2012-03-09 01:59:13 +01:00
|
|
|
buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost];
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
2012-02-29 15:29:49 +01:00
|
|
|
substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2010-11-13 08:47:04 +01:00
|
|
|
substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk"
|
|
|
|
substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
|
|
|
|
'';
|
|
|
|
|
2012-03-09 01:59:13 +01:00
|
|
|
# for now sound is disabled as it causes a linker error with alure i can't resolve (qknight)
|
|
|
|
cmakeFlags = "-DOPTION_SOUND:BOOL=OFF";
|
|
|
|
|
2010-11-13 08:47:04 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-03-09 01:59:13 +01:00
|
|
|
#buildPhase = "make VERBOSE=1";
|
|
|
|
|
2010-11-13 08:47:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springlobby.info/;
|
|
|
|
description = "A free cross-platform lobby client for the Spring RTS project.";
|
|
|
|
license = licenses.gpl2;
|
2012-03-08 16:32:20 +01:00
|
|
|
maintainers = [ maintainers.phreedom maintainers.qknight];
|
|
|
|
platforms = platforms.linux;
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
2012-03-08 16:32:20 +01:00
|
|
|
}
|