2
0

fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:='ldap';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  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.SourcePath.Add('src');
  24. P.IncludePath.Add('src');
  25. T:=P.Targets.AddUnit('lber.pas');
  26. with T.Dependencies do
  27. begin
  28. AddInclude('lber_typesh.inc');
  29. AddInclude('lberh.inc');
  30. end;
  31. T:=P.Targets.AddUnit('ldap.pas');
  32. with T.Dependencies do
  33. begin
  34. AddInclude('ldap_featuresh.inc');
  35. AddInclude('ldap_schemah.inc');
  36. AddInclude('ldaph.inc');
  37. AddUnit('lber');
  38. end;
  39. {$ifndef ALLPACKAGES}
  40. Run;
  41. end;
  42. end.
  43. {$endif ALLPACKAGES}