fpmake.pp 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_instantfpc(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-instantfpc');
  14. P.Author := '<various>';
  15. P.License := 'LGPL with modification';
  16. P.HomepageURL := 'www.freepascal.org';
  17. P.Email := '';
  18. P.Description := 'A tool to execute pascal programs as unix scripts.';
  19. P.NeedLibC:= false;
  20. P.Directory:=ADirectory;
  21. P.Version:='2.7.1';
  22. P.Dependencies.Add('fcl-process');
  23. P.Options.Add('-S2h');
  24. P.OSes := [win32,win64,wince,haiku,linux,freebsd,openbsd,netbsd,darwin,iphonesim,solaris,aix];
  25. T:=P.Targets.AddProgram('instantfpc.pas');
  26. T.Dependencies.AddUnit('instantfptools');
  27. P.Targets.AddUnit('instantfptools.pas').Install:=False;
  28. end;
  29. end;
  30. {$ifndef ALLPACKAGES}
  31. begin
  32. add_instantfpc('');
  33. Installer.Run;
  34. end.
  35. {$endif ALLPACKAGES}