fpmake.pp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. T : TTarget;
  11. P : TPackage;
  12. begin
  13. With Installer do
  14. begin
  15. P:=AddPackage('gitlab');
  16. P.ShortName:='gitlab';
  17. P.Directory:=ADirectory;
  18. P.Version:='3.3.1';
  19. P.OSes := TargetsWithfpWeb;
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. P.Dependencies.Add('fcl-base');
  23. P.Dependencies.Add('fcl-json');
  24. P.Dependencies.Add('fcl-net');
  25. P.Dependencies.Add('fcl-web');
  26. P.Dependencies.Add('openssl',AllUnixOSes+AllWindowsOSes);
  27. P.Author := 'FreePascal development team';
  28. P.License := 'LGPL with modification, ';
  29. P.HomepageURL := 'www.freepascal.org';
  30. P.Email := '';
  31. P.Description := 'Simple client for Gitlab v4 API';
  32. P.NeedLibC:= false;
  33. P.SourcePath.Add('src');
  34. T:=P.Targets.addUnit('gitlabclient.pas');
  35. end;
  36. end;
  37. {$ifndef ALLPACKAGES}
  38. begin
  39. add_gitlab('');
  40. Installer.Run;
  41. end.
  42. {$endif ALLPACKAGES}