fpmake.pp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses
  5. {$ifdef unix}
  6. cthreads,
  7. {$endif}
  8. fpmkunit;
  9. {$endif ALLPACKAGES}
  10. procedure add_ihxutil(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. T : TTarget;
  14. begin
  15. With Installer do
  16. begin
  17. P:=AddPackage('utils-ihxutil');
  18. P.ShortName:='ihxu';
  19. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,human68k];
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. P.Author := 'Nikolay Nikolov';
  23. P.License := 'GPL';
  24. P.HomepageURL := 'www.freepascal.org';
  25. P.Email := '';
  26. P.Description := 'A tool to convert Intel HEX Format files different formats used on various Z80 systems.';
  27. P.NeedLibC:= false;
  28. P.Directory:=ADirectory;
  29. P.Version:='3.3.1';
  30. P.Dependencies.Add('fcl-base');
  31. T:=P.Targets.AddProgram('ihxutil.lpr');
  32. T.Dependencies.AddUnit('ihxreader');
  33. T.Dependencies.AddUnit('tzxwriter');
  34. T.Dependencies.AddUnit('zxbasic');
  35. P.Targets.AddUnit('ihxreader.pas').Install := false;
  36. P.Targets.AddUnit('tzxwriter.pas').Install := false;
  37. P.Targets.AddUnit('zxbasic.pas').Install := false;
  38. end;
  39. end;
  40. {$ifndef ALLPACKAGES}
  41. begin
  42. add_ihxutil('');
  43. Installer.Run;
  44. end.
  45. {$endif ALLPACKAGES}