fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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('bzip2');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='bzip2';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.6.4';
  17. P.Version:='2.6.4';
  18. P.Author := 'Library: Julian R. Seward, header: Daniel Mantione';
  19. // 3 clause becaue "prominent notice" is not required.
  20. P.License := 'Library: 3 clause BSD, header: 3 clause BSD ';
  21. P.HomepageURL := 'www.freepascal.org';
  22. P.Email := '';
  23. P.Description := 'BZip2 decompression unit.';
  24. P.NeedLibC:= true;
  25. P.SourcePath.Add('src');
  26. P.IncludePath.Add('src');
  27. T:=P.Targets.AddUnit('bzip2comn.pp');
  28. T:=P.Targets.AddUnit('bzip2.pas');
  29. with T.Dependencies do
  30. begin
  31. AddInclude('bzip2i386.inc',[i386],AllOSes);
  32. AddUnit('bzip2comn');
  33. end;
  34. T:=P.Targets.AddUnit('bzip2stream.pp');
  35. with T.Dependencies do
  36. begin
  37. AddInclude('bzip2sii386.inc',[i386],AllOSes);
  38. AddUnit('bzip2comn');
  39. end;
  40. T.ResourceStrings := true;
  41. P.ExamplePath.Add('examples');
  42. T:=P.Targets.AddExampleProgram('pasbzip.pas');
  43. {$ifndef ALLPACKAGES}
  44. Run;
  45. end;
  46. end.
  47. {$endif ALLPACKAGES}