Explorar o código

+ fix fpmake.pp and enable compilation of package libsndfile

Nikolay Nikolov hai 6 meses
pai
achega
c229096983

+ 1 - 0
packages/fpmake_add.inc

@@ -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'));

+ 6 - 0
packages/fpmake_proc.inc

@@ -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 - 0
packages/libsndfile/fpmake.pp

@@ -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}

+ 0 - 33
packages/libsndfile/fpmake_disabled.pp

@@ -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}