fpmake.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. P.ShortName:='bz2';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  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.OSes := P.OSes - [embedded,nativent,msdos,win16,macos,palmos];
  26. if Defaults.CPU=jvm then
  27. P.OSes := P.OSes - [java,android];
  28. P.SourcePath.Add('src');
  29. P.IncludePath.Add('src');
  30. P.Dependencies.Add('rtl-extra');
  31. T:=P.Targets.AddUnit('bzip2comn.pp');
  32. T:=P.Targets.AddUnit('bzip2.pas');
  33. with T.Dependencies do
  34. begin
  35. AddInclude('bzip2i386.inc',[i386],AllOSes);
  36. AddUnit('bzip2comn');
  37. end;
  38. T:=P.Targets.AddUnit('bzip2stream.pp');
  39. with T.Dependencies do
  40. begin
  41. AddInclude('bzip2si386.inc',[i386],AllOSes);
  42. AddUnit('bzip2comn');
  43. end;
  44. T.ResourceStrings := true;
  45. P.ExamplePath.Add('examples');
  46. T:=P.Targets.AddExampleProgram('pasbzip.pas');
  47. {$ifndef ALLPACKAGES}
  48. Run;
  49. end;
  50. end.
  51. {$endif ALLPACKAGES}