fpmake.pp 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_pas2fpm(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-pas2fpm');
  14. p.ShortName:='p2fm';
  15. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,wasi];
  16. if Defaults.CPU=jvm then
  17. P.OSes := P.OSes - [java,android];
  18. P.Author := 'Free Pascal Team';
  19. P.License := 'LGPL with modification';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Description := 'Generate fpmake.pp for Pascal source.';
  22. P.Email := '';
  23. P.NeedLibC:= false;
  24. P.Directory:=ADirectory;
  25. P.Version:='3.3.1';
  26. P.Dependencies.Add('fcl-base');
  27. P.Dependencies.Add('fcl-passrc');
  28. T:=P.Targets.AddProgram('pas2fpm.pp');
  29. end;
  30. end;
  31. {$ifndef ALLPACKAGES}
  32. begin
  33. add_pas2fpm('');
  34. Installer.Run;
  35. end.
  36. {$endif ALLPACKAGES}