fpmake.pp 1.1 KB

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