fpmake.pp 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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('openal');
  13. P.ShortName:='oal';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. if Defaults.CPU = i386 then
  19. P.OSes := [linux,win32,darwin]
  20. else
  21. P.OSes := [linux,win32];
  22. P.SourcePath.Add('src');
  23. P.IncludePath.Add('src');
  24. T:=P.Targets.AddUnit('openal.pas');
  25. with T.Dependencies do
  26. begin
  27. AddInclude('alh.inc');
  28. AddInclude('alch.inc');
  29. AddInclude('alexth.inc');
  30. end;
  31. P.ExamplePath.Add('examples');
  32. P.Targets.AddExampleProgram('madopenal.pas');
  33. {$ifndef ALLPACKAGES}
  34. Run;
  35. end;
  36. end.
  37. {$endif ALLPACKAGES}