fpmake.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_gitlab(const ADirectory: string);
  7. Const
  8. TargetsWithfpWeb = [linux,beos,haiku,freebsd,netbsd,openbsd,darwin,iphonesim,ios,solaris,win32,win64,wince,aix,dragonfly];
  9. Var
  10. P : TPackage;
  11. begin
  12. With Installer do
  13. begin
  14. P:=AddPackage('gitlab');
  15. P.ShortName:='gitlab';
  16. P.Directory:=ADirectory;
  17. P.Version:='3.3.1';
  18. P.OSes := TargetsWithfpWeb;
  19. if Defaults.CPU=jvm then
  20. P.OSes := P.OSes - [java,android];
  21. P.Dependencies.Add('fcl-base');
  22. P.Dependencies.Add('fcl-json');
  23. P.Dependencies.Add('fcl-net');
  24. P.Dependencies.Add('fcl-web');
  25. P.Dependencies.Add('openssl',AllUnixOSes+AllWindowsOSes);
  26. P.Author := 'FreePascal development team';
  27. P.License := 'LGPL with modification, ';
  28. P.HomepageURL := 'www.freepascal.org';
  29. P.Email := '';
  30. P.Description := 'Simple client for Gitlab v4 API';
  31. P.NeedLibC:= false;
  32. P.SourcePath.Add('src');
  33. T:=P.Targets.addUnit('gitlabclient.pas');
  34. end;
  35. end;
  36. {$ifndef ALLPACKAGES}
  37. begin
  38. add_gitlab('');
  39. Installer.Run;
  40. end.
  41. {$endif ALLPACKAGES}