mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 15:47:54 +02:00
118 lines
3.9 KiB
ObjectPascal
118 lines
3.9 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses
|
|
{$ifdef unix}
|
|
cthreads,
|
|
{$endif}
|
|
fpmkunit;
|
|
{$endif ALLPACKAGES}
|
|
|
|
procedure add_fppkg_util(const ADirectory: string);
|
|
|
|
const
|
|
lnetOSes = [linux,beos,haiku,freebsd,netbsd,openbsd,darwin,iphonesim,ios,solaris,win32,win64,wince,aix,dragonfly];
|
|
WindowsOSes = [win32,win64,wince];
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
VS: string;
|
|
|
|
begin
|
|
With Installer do
|
|
begin
|
|
P:=AddPackage('utils-fppkg');
|
|
P.ShortName:='fpkg';
|
|
|
|
P.Author := '<various>';
|
|
P.License := 'LGPL with modification';
|
|
P.HomepageURL := 'www.freepascal.org';
|
|
P.Email := '';
|
|
P.Description := 'Free Pascal package repository utility.';
|
|
P.NeedLibC:= false;
|
|
|
|
P.Directory:=ADirectory;
|
|
P.Version:='3.3.1';
|
|
|
|
P.OSes := P.OSes - [embedded,nativent,msdos,go32v2,win16,atari,macosclassic,palmos,symbian,zxspectrum,msxdos,amstradcpc,sinclairql,wasip1,wasip1threads,human68k,ps1,wasip2];
|
|
if Defaults.CPU=jvm then
|
|
P.OSes := P.OSes - [java,android];
|
|
|
|
P.SourcePath.Add('lnet',lnetOSes);
|
|
P.IncludePath.Add('lnet/sys',lnetOSes);
|
|
|
|
P.SupportBuildModes:=[bmOneByOne];
|
|
|
|
P.Options.Add('-Sm');
|
|
Str(P.PackageVersion.Major, VS);
|
|
P.Options.Add('-dpackage_version_major:='+VS);
|
|
Str(P.PackageVersion.Minor, VS);
|
|
P.Options.Add('-dpackage_version_minor:='+VS);
|
|
Str(P.PackageVersion.Micro, VS);
|
|
P.Options.Add('-dpackage_version_micro:='+VS);
|
|
Str(P.PackageVersion.Build, VS);
|
|
P.Options.Add('-dpackage_version_build:='+VS);
|
|
|
|
P.Dependencies.Add('fcl-base');
|
|
P.Dependencies.Add('fcl-xml');
|
|
P.Dependencies.Add('fcl-process');
|
|
P.Dependencies.Add('fcl-net');
|
|
P.Dependencies.Add('paszlib');
|
|
//P.Dependencies.Add('libcurl',[beos,haiku,freebsd,darwin,iphonesim,ios,solaris,netbsd,openbsd,linux,aix]);
|
|
P.Dependencies.Add('fppkg');
|
|
P.Dependencies.Add('univint', [Darwin, iphonesim,ios]);
|
|
|
|
T:=P.Targets.AddProgram('fppkg.pp');
|
|
|
|
T := P.Targets.AddUnit('pkglnet.pp', lnetOSes);
|
|
T.Dependencies.AddUnit('lnet');
|
|
T.Dependencies.AddUnit('lftp');
|
|
T.Dependencies.AddUnit('lhttp');
|
|
T.Install:=false;
|
|
P.Targets.AddUnit('lnet/fastcgi_base.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lcontrolstack.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lhttp.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lmimestreams.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lmimewrapper.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lprocess.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lspawnfcgi.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/ltelnet.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lcommon.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/levents.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lftp.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lhttputil.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lmimetypes.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lnet.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lstrbuffer.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/ltimer.pp', lnetOSes).install:=false;
|
|
P.Targets.AddUnit('lnet/lws2tcpip.pp', WindowsOSes).install:=false;
|
|
|
|
P.Sources.AddSrc('lnet/lsmtp.pp');
|
|
P.Sources.AddSrc('lnet/lwebserver.pp');
|
|
P.Sources.AddSrc('lnet/lfastcgi.pp');
|
|
P.Sources.AddSrc('lnet/lcontainers.inc');
|
|
P.Sources.AddSrc('lnet/lcontainersh.inc');
|
|
P.Sources.AddSrc('lnet/lws2tcpip.pp');
|
|
P.Sources.AddSrc('lnet/sys/lepolleventerh.inc');
|
|
P.Sources.AddSrc('lnet/sys/lkqueueeventerh.inc');
|
|
P.Sources.AddSrc('lnet/sys/lspawnfcgiwin.inc');
|
|
P.Sources.AddSrc('lnet/sys/lepolleventer.inc');
|
|
P.Sources.AddSrc('lnet/sys/lkqueueeventer.inc');
|
|
P.Sources.AddSrc('lnet/sys/lspawnfcgiunix.inc');
|
|
P.Sources.AddSrc('lnet/sys/osunits.inc');
|
|
|
|
end;
|
|
end;
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
begin
|
|
add_fppkg_util('');
|
|
Installer.Run;
|
|
end.
|
|
{$endif ALLPACKAGES}
|
|
|
|
|
|
|
|
|