fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. P.ShortName := 'lcur';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Library: Daniel Stenberg, header: Free Pascal development team';
  19. P.License := 'Library: MIT, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.OSes := [beos,haiku,freebsd,darwin,iphonesim,ios,solaris,netbsd,openbsd,linux,aix,dragonfly,win32,win64];
  22. P.Email := '';
  23. P.Description := 'Library to fetch files from URLs using many protocols.';
  24. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  25. P.SourcePath.Add('src');
  26. T:=P.Targets.AddUnit('libcurl.pp');
  27. P.ExamplePath.Add('examples');
  28. P.Targets.AddExampleProgram('testcurl.pp');
  29. P.Targets.AddExampleProgram('teststream.pp');
  30. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  31. {$ifndef ALLPACKAGES}
  32. Run;
  33. end;
  34. end.
  35. {$endif ALLPACKAGES}