2012-04-17 13:56:30 +00:00
|
|
|
{ fetchsvn, fetchurl, stdenv, wxGTK29, freeimage, cmake, zziplib, mesa, boost,
|
2012-02-24 22:56:53 +00:00
|
|
|
pkgconfig, libuuid, openal, ogre, ois, curl, gtk, pixman, mygui, unzip,
|
2012-02-24 22:05:47 +00:00
|
|
|
angelscript, caelum, ogrepaged, mysocketw, libxcb
|
2011-04-08 11:28:49 +00:00
|
|
|
}:
|
2011-03-30 22:08:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-24 22:05:47 +00:00
|
|
|
version = "0.39.4";
|
2011-04-08 11:28:49 +00:00
|
|
|
name = "rigsofrods-${version}";
|
2011-03-30 22:08:33 +00:00
|
|
|
|
2011-04-08 11:28:49 +00:00
|
|
|
src = fetchurl {
|
2012-02-24 22:05:47 +00:00
|
|
|
url = mirror://sourceforge/rigsofrods/rigsofrods-source-0.39.4.tar.bz2;
|
|
|
|
sha256 = "1kpjkski0yllwzdki0rjpqvifjs0fwpgs513y4dv4s9wfwan1qcx";
|
2011-03-30 22:08:33 +00:00
|
|
|
};
|
|
|
|
|
2011-04-09 15:51:24 +00:00
|
|
|
contentPackSrc = fetchurl {
|
|
|
|
url = mirror://sourceforge/rigsofrods/rigsofrods/0.37/content-pack-0.37.zip;
|
|
|
|
sha256 = "0prvn8lxqazadad4mv0nilax9i4vqb9s7dp7mqzvqc0ycmcnf4ps";
|
|
|
|
};
|
|
|
|
|
2011-03-30 22:08:33 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DROR_USE_CURL=TRUE"
|
|
|
|
"-DROR_USE_MYGUI=TRUE"
|
2012-02-24 22:05:47 +00:00
|
|
|
"-DROR_USE_OPNEAL=TRUE"
|
|
|
|
"-DROR_USE_CAELUM=TRUE"
|
|
|
|
"-DROR_USE_PAGED=TRUE"
|
2011-04-09 15:51:24 +00:00
|
|
|
"-DROR_USE_ANGELSCRIPT=TRUE"
|
2012-02-24 22:05:47 +00:00
|
|
|
"-DROR_USE_SOCKETW=TRUE"
|
2012-02-25 18:29:30 +00:00
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
2011-03-30 22:08:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-02-24 22:05:47 +00:00
|
|
|
sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/rigsofrods
|
2012-02-24 22:56:53 +00:00
|
|
|
cp -r ../bin/* $out/share/rigsofrods
|
|
|
|
cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2012-02-24 22:56:53 +00:00
|
|
|
ln -s $out/share/rigsofrods/{RoR,rorconfig} $out/bin
|
2012-02-24 22:05:47 +00:00
|
|
|
cd $out/share/rigsofrods
|
2012-02-24 22:56:53 +00:00
|
|
|
mkdir packs
|
|
|
|
cd packs
|
2011-04-09 15:51:24 +00:00
|
|
|
unzip "${contentPackSrc}"
|
2011-03-30 22:08:33 +00:00
|
|
|
'';
|
|
|
|
|
2012-02-24 22:56:53 +00:00
|
|
|
patches = [ ./doubleslash.patch ./paths.patch ];
|
2011-03-30 22:08:33 +00:00
|
|
|
|
2012-04-17 13:56:30 +00:00
|
|
|
buildInputs = [ wxGTK29 freeimage cmake zziplib mesa boost pkgconfig
|
2012-02-24 22:56:53 +00:00
|
|
|
libuuid openal ogre ois curl gtk mygui unzip angelscript
|
2012-02-24 22:05:47 +00:00
|
|
|
caelum ogrepaged mysocketw libxcb ];
|
2011-03-30 22:08:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "3D simulator game where you can drive, fly and sail various vehicles";
|
|
|
|
homepage = http://rigsofrods.sourceforge.net/;
|
|
|
|
license = "GPLv3";
|
2011-04-08 14:11:54 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric raskin];
|
2011-03-30 22:08:33 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|