Merge pull request #4238 from wkennington/master.boost

Make boost 156 the default
This commit is contained in:
Peter Simons
2014-11-03 23:03:01 +01:00
86 changed files with 488 additions and 1839 deletions

View File

@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-fpermissive"; # I'm too lazy to catch all gcc47-related problems
buildInputs = [
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost boost.lib expat
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
freetype libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng
];

View File

@@ -1,80 +1,50 @@
x@{builderDefsPackage
, mesa, SDL, scons, SDL_ttf, SDL_image, zlib, SDL_net, speex, libvorbis
, libogg, boost, fribidi, bsdiff
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = [ boost.lib ]
++ map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="glob2";
version="0.9.4";
patchlevel="4";
name="${baseName}-${version}.${patchlevel}";
url="mirror://savannah/glob2/${version}/${name}.tar.gz";
hash="1f0l2cqp2g3llhr9jl6jj15k0wb5q8n29vqj99xy4p5hqs78jk8g";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
};
tutorial4patch = a.fetchurl {
{ stdenv, fetchurl, mesa, SDL, scons, SDL_ttf, SDL_image, zlib, SDL_net
, speex, libvorbis, libogg, boost, fribidi, bsdiff
}:
let
version = "0.9.4";
patchlevel = "4";
tutorial4patch = fetchurl {
url = "http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=34;filename=tutorial-part4.map.bspatch;att=1;bug=595448";
name = "globulation2-tutorial4-map-patch-debian.bspatch";
sha256 = "d3511ac0f822d512c42abd34b3122f2990862d3d0af6ce464ff372f5bd7f35e9";
};
in
stdenv.mkDerivation rec {
name = "glob2-${version}.${patchlevel}";
inherit (sourceInfo) name version;
inherit buildInputs;
src = fetchurl {
url = "mirror://savannah/glob2/${version}/${name}.tar.gz";
sha256 = "1f0l2cqp2g3llhr9jl6jj15k0wb5q8n29vqj99xy4p5hqs78jk8g";
};
/* doConfigure should be removed if not needed */
phaseNames = ["doUnpack" "doPatch" "doBspatch" "workaroundScons" "doScons"];
patches = [ ./header-order.patch ];
patches = [./header-order.patch];
doBspatch = a.fullDepEntry ''
postPatch = ''
cp campaigns/tutorial-part4.map{,.orig}
bspatch campaigns/tutorial-part4.map{.orig,} ${tutorial4patch}
'' ["minInit" "doUnpack" "addInputs"];
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct
'';
# FIXME
# I officially fail to understand what goes on, but that seems to work
# too well not to use. Yes, it is ugly, I know...
workaroundScons = a.fullDepEntry ''
echo '#! ${a.stdenv.shell}' >> o
echo 'g++ -o "$@"' >> o
chmod a+x o
export PATH="$PATH:$PWD"
'' ["minInit"];
buildInputs = [ mesa SDL scons SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
sconsFlags = [
"DATADIR=$out/share/globulation2/glob2"
"BINDIR=$out/bin"
"INSTALLDIR=$out/share/globulation2"
];
buildPhase = ''
scons
'';
installPhase = ''
scons install \
BINDIR=$out/bin \
INSTALLDIR=$out/share/globulation2 \
DATADIR=$out/share/globulation2/glob2
'';
meta = {
meta = with stdenv.lib; {
description = "RTS without micromanagement";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.gpl3;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.gpl3;
};
passthru = {
updateInfo = {
downloadPage = "http://globulation2.org/wiki/Download_and_Install";
};
};
}) x
passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
}

View File

@@ -1,7 +1,7 @@
{stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig
, mesa}:
let
buildInputs = [scons SDL SDL_image boost boost.lib libpng SDL_mixer pkgconfig mesa];
buildInputs = [scons SDL SDL_image boost libpng SDL_mixer pkgconfig mesa];
s = # Generated upstream information
rec {
baseName="pingus";

View File

@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON"
"-DPREFER_STATIC_LIBS:BOOL=OFF"];
buildInputs = [ cmake lzma boost boost.lib libdevil zlib p7zip openal libvorbis freetype SDL
buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL
xlibs.libX11 xlibs.libXcursor mesa glew asciidoc libxslt docbook_xsl curl makeWrapper
docbook_xsl_ns systemd ]
++ stdenv.lib.optional withAI jdk

View File

@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
buildInputs = [
cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar
boost boost.lib libpng libX11 libnotify gtk doxygen makeWrapper
boost libpng libX11 libnotify gtk doxygen makeWrapper
];
prePatch = ''

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext zlib
boost boost.lib fribidi cmake freetype libpng pkgconfig lua
boost fribidi cmake freetype libpng pkgconfig lua
dbus fontconfig libtool ];
cmakeFlags = [ "-DENABLE_STRICT_COMPILATION=FALSE" ]; # newer gcc problems http://gna.org/bugs/?21030