fpmake.pp 928 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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('libcurl');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='libcurl';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Library: Daniel Stenberg, header: Free Pascal development team';
  18. P.License := 'Library: MIT, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Library to fetch files from URLs using many protocols.';
  22. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  23. P.SourcePath.Add('src');
  24. T:=P.Targets.AddUnit('libcurl.pp');
  25. P.ExamplePath.Add('tests');
  26. P.Targets.AddExampleProgram('testcurl.pp');
  27. P.Targets.AddExampleProgram('teststream.pp');
  28. {$ifndef ALLPACKAGES}
  29. Run;
  30. end;
  31. end.
  32. {$endif ALLPACKAGES}