fpmake.pp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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('imagemagick');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='imagemagick';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Library: ImageMagick Studio LLC , header: Felipe Monteiro de Carvalho';
  18. P.License := 'Library: Imagemagick license, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Header to Imagemagick, a graphics manipulation program .';
  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('buildim.pp');
  26. with T.Dependencies do
  27. begin
  28. AddUnit('imagemagick');
  29. AddUnit('magick_wand');
  30. end;
  31. T:=P.Targets.AddUnit('imagemagick.pas');
  32. with T.Dependencies do
  33. begin
  34. AddInclude('magick_type.inc');
  35. AddInclude('type.inc');
  36. AddInclude('cache_view.inc');
  37. AddInclude('compare.inc');
  38. AddInclude('constitute.inc');
  39. AddInclude('draw.inc');
  40. AddInclude('effect.inc');
  41. AddInclude('fx.inc');
  42. AddInclude('pixel.inc');
  43. AddInclude('quantize.inc');
  44. AddInclude('statistic.inc');
  45. end;
  46. T:=P.Targets.AddUnit('magick_wand.pas');
  47. with T.Dependencies do
  48. begin
  49. AddInclude('pixel_wand.inc');
  50. AddInclude('drawing_wand.inc');
  51. AddInclude('magick_attribute.inc');
  52. AddInclude('magick_image.inc');
  53. AddInclude('pixel_iterator.inc');
  54. AddUnit('imagemagick');
  55. end;
  56. P.ExamplePath.Add('examples');
  57. P.Targets.AddExampleProgram('screenshot.lpr');
  58. P.Targets.AddExampleProgram('wanddemo.lpr');
  59. P.Targets.AddExampleProgram('wanddemo.dpr');
  60. // 'image.png
  61. {$ifndef ALLPACKAGES}
  62. Run;
  63. end;
  64. end.
  65. {$endif ALLPACKAGES}