fpmake.pp 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.ShortName:='instantfpc';
  15. P.Author := '<various>';
  16. P.License := 'LGPL with modification';
  17. P.HomepageURL := 'www.freepascal.org';
  18. P.Email := '';
  19. P.Description := 'A tool to execute pascal programs as unix scripts.';
  20. P.NeedLibC:= false;
  21. P.Directory:=ADirectory;
  22. P.Version:='3.1.1';
  23. P.Dependencies.Add('fcl-process');
  24. P.Options.Add('-S2h');
  25. P.OSes := [win32,win64,wince,haiku,linux,freebsd,openbsd,netbsd,darwin,iphonesim,solaris,aix];
  26. T:=P.Targets.AddProgram('instantfpc.pas');
  27. T.Dependencies.AddUnit('instantfptools');
  28. P.Targets.AddUnit('instantfptools.pas').Install:=False;
  29. end;
  30. end;
  31. {$ifndef ALLPACKAGES}
  32. begin
  33. add_instantfpc('');
  34. Installer.Run;
  35. end.
  36. {$endif ALLPACKAGES}