mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-20 10:31:38 +02:00
+ fix fpmake.pp and enable compilation of package libsndfile
This commit is contained in:
parent
7f77aada6b
commit
c229096983
@ -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'));
|
||||
|
@ -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;
|
||||
|
43
packages/libsndfile/fpmake.pp
Normal file
43
packages/libsndfile/fpmake.pp
Normal 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}
|
@ -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}
|
Loading…
Reference in New Issue
Block a user