fpmake.pp 1.3 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('ldap');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. P.Author := 'Library: Howard Chu, Pierangelo Masarati and Kurt Zeilenga, header: Ivo Steinmann';
  18. P.License := 'Library: OpenLDAP Public License (3 clause BSD like), header: LGPL with modification';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Header to openldap, a library that to access directory services';
  22. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  23. P.OSes := [linux];
  24. P.SourcePath.Add('src');
  25. P.IncludePath.Add('src');
  26. T:=P.Targets.AddUnit('lber.pas');
  27. with T.Dependencies do
  28. begin
  29. AddInclude('lber_typesh.inc');
  30. AddInclude('lberh.inc');
  31. end;
  32. T:=P.Targets.AddUnit('ldap.pas');
  33. with T.Dependencies do
  34. begin
  35. AddInclude('ldap_featuresh.inc');
  36. AddInclude('ldap_schemah.inc');
  37. AddInclude('ldaph.inc');
  38. AddUnit('lber');
  39. end;
  40. {$ifndef ALLPACKAGES}
  41. Run;
  42. end;
  43. end.
  44. {$endif ALLPACKAGES}