fpmake.pp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  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.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix];
  21. P.Email := '';
  22. P.Description := 'Library to fetch files from URLs using many protocols.';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. P.SourcePath.Add('src');
  25. T:=P.Targets.AddUnit('libcurl.pp');
  26. P.ExamplePath.Add('examples');
  27. P.Targets.AddExampleProgram('testcurl.pp');
  28. P.Targets.AddExampleProgram('teststream.pp');
  29. P.Sources.AddExampleFiles('examples/*',false,'.');
  30. {$ifndef ALLPACKAGES}
  31. Run;
  32. end;
  33. end.
  34. {$endif ALLPACKAGES}