2
0

fpmake.pp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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('cairo');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. P.Author := 'Library: University of Southern California + Red Hat Inc., header: Luiz AmXrico Pereira CXmara';
  18. P.License := 'Library: MPL 1.1 + LGPL-2.1, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.OSes := [beos,haiku,freebsd,solaris,netbsd,openbsd,linux,win32,win64,aix];
  21. // Do not build cairo on iPhone (=arm-darwin)
  22. if Defaults.CPU<>arm then
  23. P.OSes := P.OSes + [darwin];
  24. P.Email := '';
  25. P.Description := 'a vector graphics library with display and print output';
  26. P.NeedLibC:= true;
  27. P.SourcePath.Add('src');
  28. P.Dependencies.Add('x11',AllUnixOSes);
  29. P.Dependencies.Add('fcl-image');
  30. T:=P.Targets.AddUnit('cairo.pp');
  31. T:=P.Targets.AddUnit('cairoft.pp');
  32. with T.Dependencies do
  33. begin
  34. AddUnit('cairo');
  35. end;
  36. T:=P.Targets.AddUnit('cairoxlib.pp',AllUnixOSes);
  37. with T.Dependencies do
  38. begin
  39. AddUnit('cairo');
  40. end;
  41. T:=P.Targets.AddUnit('cairowin32.pp',AllWindowsOses);
  42. with T.Dependencies do
  43. AddUnit('cairo');
  44. {$ifndef ALLPACKAGES}
  45. Run;
  46. end;
  47. end.
  48. {$endif ALLPACKAGES}