+ fix fpmake.pp and enable compilation of package libsndfile

This commit is contained in:
Nikolay Nikolov 2025-01-15 02:05:11 +02:00
parent 7f77aada6b
commit c229096983
4 changed files with 50 additions and 33 deletions

View File

@ -165,3 +165,4 @@
add_ptckvm(ADirectory+IncludeTrailingPathDelimiter('ptckvm'));
add_fcl_fpterm(ADirectory+IncludeTrailingPathDelimiter('fcl-fpterm'));
add_libjack(ADirectory+IncludeTrailingPathDelimiter('libjack'));
add_libsndfile(ADirectory+IncludeTrailingPathDelimiter('libsndfile'));

View File

@ -935,3 +935,9 @@ begin
with Installer do
{$include libjack/fpmake.pp}
end;
procedure add_libsndfile(const ADirectory: string);
begin
with Installer do
{$include libsndfile/fpmake.pp}
end;

View File

@ -0,0 +1,43 @@
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('libsndfile');
P.ShortName:='lsndfile';
{$ifdef ALLPACKAGES}
P.Directory:=ADirectory;
{$endif ALLPACKAGES}
P.Version:='3.3.1';
P.Author := 'Library: libsndfile';
P.License := 'Library: LGPL';
P.HomepageURL := 'https://libsndfile.github.io/libsndfile/';
P.Email := '';
P.Description := 'Headers for the libsndfile library';
P.NeedLibC:= true; // true for headers that indirectly link to libc?
P.OSes := AllUnixOSes-[qnx];
P.SourcePath.Add('src');
T:=P.Targets.AddUnit('sndfile.pp');
P.Sources.AddSrc('README');
P.ExamplePath.Add('examples');
P.Targets.AddExampleProgram('sfplay.pp');
P.NamespaceMap:='namespaces.lst';
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}

View File

@ -1,33 +0,0 @@
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('sndfile');
{$ifdef ALLPACKAGES}
P.Directory:='sndfile';
{$endif ALLPACKAGES}
P.Version:='2.2.2-0';
P.SourcePath.Add('src');
T:=P.Targets.AddUnit('sndfile.pp');
P.Sources.AddSrc('README');
P.ExamplePath.Add('examples');
P.Targets.AddExampleProgram('sfplay.pp');
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}