2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, libX11, libXtst, xextproto, libXi, inputproto }:
|
2009-10-28 15:06:56 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-10-28 15:06:56 +01:00
|
|
|
name = "xmacro-0.3pre20000911";
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz;
|
2007-08-10 20:54:44 +02:00
|
|
|
md5 = "d2956b82f3d5380e58a75ccc721fb746";
|
|
|
|
};
|
|
|
|
|
2011-08-23 19:52:05 +02:00
|
|
|
preBuild = ''
|
|
|
|
sed -e 's/-pedantic//g' -i Makefile
|
|
|
|
sed -e 's/iostream[.]h/iostream/' -i *.cpp
|
|
|
|
sed -e 's/iomanip[.]h/iomanip/' -i *.cpp
|
|
|
|
sed -e '1iusing namespace std;' -i *.cpp
|
|
|
|
'';
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
preInstall = "echo -e 'install:\n mkdir \${out}/bin;\n cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; ";
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
buildInputs = [ libX11 libXtst xextproto libXi inputproto ];
|
2007-08-10 20:54:44 +02:00
|
|
|
}
|