2010-07-28 16:35:01 +01:00
|
|
|
{ stdenv, fetchurl, libX11, libXtst, xextproto, libXi, inputproto }:
|
2009-10-28 14:06:56 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
stdenv.mkDerivation {
|
2009-10-28 14:06:56 +00:00
|
|
|
name = "xmacro-0.3pre20000911";
|
2007-08-10 19:54:44 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2007-08-27 14:01:33 +01:00
|
|
|
url = mirror://sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz;
|
2007-08-10 19:54:44 +01:00
|
|
|
md5 = "d2956b82f3d5380e58a75ccc721fb746";
|
|
|
|
};
|
|
|
|
|
2011-08-23 18:52:05 +01: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 19:54:44 +01:00
|
|
|
|
2010-07-28 16:35:01 +01:00
|
|
|
preInstall = "echo -e 'install:\n mkdir \${out}/bin;\n cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; ";
|
2007-08-10 19:54:44 +01:00
|
|
|
|
2010-07-28 16:35:01 +01:00
|
|
|
buildInputs = [ libX11 libXtst xextproto libXi inputproto ];
|
2007-08-10 19:54:44 +01:00
|
|
|
}
|