refactor to use autoreconfHook where possible

Close #12446.
This commit is contained in:
Robin Gloster
2016-01-18 10:45:31 +01:00
committed by Vladimír Čunát
parent 620c147cce
commit 53b389327e
50 changed files with 188 additions and 320 deletions
+7 -10
View File
@@ -1,8 +1,8 @@
{stdenv, fetchurl, SDL_mixer, SDL, autoconf, automake}:
{ stdenv, fetchurl, SDL_mixer, SDL, autoreconfHook }:
stdenv.mkDerivation {
name = "ri_li-2.0.1";
name = "ri_li-2.0.1";
src = fetchurl {
url = mirror://sourceforge/ri-li/Ri-li-2.0.1.tar.bz2;
sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd";
@@ -10,13 +10,10 @@ stdenv.mkDerivation {
patches = [ ./moderinze_cpp.patch ];
preConfigure = ''
export CPPFLAGS="-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include"
autoreconf -i
'';
buildInputs = [SDL SDL_mixer autoconf automake];
CPPFLAGS = "-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include";
buildInputs = [ SDL SDL_mixer autoreconfHook ];
meta = {
homepage = http://ri-li.sourceforge.net;
license = stdenv.lib.licenses.gpl2Plus;