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