diff options
author | Tobias Hammerschmidt <tobias.hammerschmidt@gmx.de> | 2010-11-13 11:50:43 +0000 |
---|---|---|
committer | Tobias Hammerschmidt <tobias.hammerschmidt@gmx.de> | 2010-11-13 11:50:43 +0000 |
commit | 1314fde1018d986a4820248c8d32eb02ae271bb8 (patch) | |
tree | 7a204774977497c30aa77037b6403c49a16c5b46 /pkgs/games/wesnoth/default.nix | |
parent | 5029db216055b351dc8107eaf0178bb540b22549 (diff) | |
download | nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar.gz nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar.bz2 nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar.lz nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar.xz nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.tar.zst nixlib-1314fde1018d986a4820248c8d32eb02ae271bb8.zip |
wesnoth 1.8.5 (patch by Karn Kallio)
svn path=/nixpkgs/trunk/; revision=24682
Diffstat (limited to 'pkgs/games/wesnoth/default.nix')
-rw-r--r-- | pkgs/games/wesnoth/default.nix | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/pkgs/games/wesnoth/default.nix b/pkgs/games/wesnoth/default.nix index 5433c0018a5d..59c2de21a483 100644 --- a/pkgs/games/wesnoth/default.nix +++ b/pkgs/games/wesnoth/default.nix @@ -1,22 +1,53 @@ -{ stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, pango -, gettext, zlib, boost, freetype, libpng, pkgconfig }: +{ stdenv, fetchurl, automake, autoconf, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, pango +, gettext, zlib, boost, freetype, libpng, pkgconfig, lua, dbus, fontconfig, libtool +, fribidi, asciidoc }: stdenv.mkDerivation rec { pname = "wesnoth"; - version = "1.6.5"; + version = "1.8.5"; name = "${pname}-${version}"; src = fetchurl { url = "mirror://sourceforge/sourceforge/${pname}/${name}.tar.bz2"; - sha256 = "1mrhgwp8iw27ifpavnf4y69zf9fqfy7j4sfwkfzsay226sp4gw3y"; + sha256 = "1yjmqvwzz446vvkjg923ypwnmhb0fbgqj0ax0k7s102la37bv8zc"; }; - buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext zlib boost freetype libpng pkgconfig ]; + buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext zlib boost fribidi + automake autoconf freetype libpng pkgconfig lua dbus fontconfig libtool ]; - configureFlags = "--with-preferences-dir=.${name} --program-suffix=-${version} --with-datadir-name=${name} --with-boost=${boost}/include --disable-python"; + # The patch and the preInstall sed substitution fix errors which I + # believe arise from autotools version mismatches. Rather than + # hunt for the correct automake and autoconf versions these changes + # make the build work with the versions current in Nixpkgs. + patches = ./add-acl-prefix-to-libext.patch; - meta = { + preInstall = '' + sed -i -e s,@MKINSTALLDIRS@,`pwd`/config/mkinstalldirs, po/*/Makefile + ''; + + configurePhase = '' + ./autogen.sh --prefix=$out --with-boost=${boost} \ + --with-preferences-dir=.${name} --program-suffix=-${version} \ + --with-datadir-name=${name} + ''; + + # Make the package build with the gcc currently available in Nixpkgs. + NIX_CFLAGS_COMPILE = "-Wno-ignored-qualifiers"; + + meta = with stdenv.lib; { description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme"; + longDescription = '' + The Battle for Wesnoth is a Free, turn-based tactical strategy + game with a high fantasy theme, featuring both single-player, and + online/hotseat multiplayer combat. Fight a desperate battle to + reclaim the throne of Wesnoth, or take hand in any number of other + adventures. + ''; + + homepage = http://www.wesnoth.org/; + license = licenses.gpl2; + maintainers = [ maintainers.kkallio ]; + platforms = platforms.linux; }; } |