fpmake.pp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('users');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='3.3.1';
  17. P.Author := 'Michael van Canneyt, Marco van de Voort';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.OSes := [freebsd,linux];
  21. P.Email := '';
  22. P.Description := 'Headers to access Unix groups and users.';
  23. P.NeedLibC:= false;
  24. P.SourcePath.Add('src');
  25. T:=P.Targets.AddUnit('crypth.pp',[linux]);
  26. T:=P.Targets.AddUnit('grp.pp');
  27. T:=P.Targets.AddUnit('pwd.pp');
  28. T:=P.Targets.AddUnit('shadow.pp',[linux]);
  29. T:=P.Targets.AddUnit('users.pp');
  30. with T.Dependencies do
  31. begin
  32. AddUnit('pwd');
  33. AddUnit('shadow',[linux]);
  34. AddUnit('grp');
  35. end;
  36. T.ResourceStrings := true;
  37. P.ExamplePath.Add('examples');
  38. P.Targets.AddExampleProgram('testpass.pp');
  39. P.Targets.AddExampleProgram('testpass2.pp');
  40. P.Targets.AddExampleProgram('testuser.pp');
  41. {$ifndef ALLPACKAGES}
  42. Run;
  43. end;
  44. end.
  45. {$endif ALLPACKAGES}