mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
new package: (thanks to Andras)
- add package par2cmdline needed by upcoming SABnzbd plugin
This commit is contained in:
parent
d1ff15daa2
commit
19eeb60d58
16
packages/sysutils/par2cmdline/build
Executable file
16
packages/sysutils/par2cmdline/build
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
./configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared \
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
$MAKEINSTALL
|
6
packages/sysutils/par2cmdline/install
Executable file
6
packages/sysutils/par2cmdline/install
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp -PR $PKG_BUILD/par2 $INSTALL/usr/bin
|
@ -0,0 +1,62 @@
|
|||||||
|
Fix compilation with gcc-4.
|
||||||
|
|
||||||
|
Patch by Dirk-Jan Heijs.
|
||||||
|
|
||||||
|
http://bugs.gentoo.org/102391
|
||||||
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287904
|
||||||
|
|
||||||
|
--- par2cmdline-0.4/reedsolomon.cpp
|
||||||
|
+++ par2cmdline-0.4/reedsolomon.cpp
|
||||||
|
@@ -51,7 +51,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
|
||||||
|
+template <> bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
|
||||||
|
{
|
||||||
|
inputcount = (u32)present.size();
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
-bool ReedSolomon<Galois8>::SetInput(u32 count)
|
||||||
|
+template <> bool ReedSolomon<Galois8>::SetInput(u32 count)
|
||||||
|
{
|
||||||
|
inputcount = count;
|
||||||
|
|
||||||
|
@@ -101,7 +101,7 @@
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
-bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
|
||||||
|
+template <> bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
|
||||||
|
{
|
||||||
|
// Look up the appropriate element in the RS matrix
|
||||||
|
Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex];
|
||||||
|
@@ -189,7 +189,7 @@
|
||||||
|
|
||||||
|
// Set which of the source files are present and which are missing
|
||||||
|
// and compute the base values to use for the vandermonde matrix.
|
||||||
|
-bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
|
||||||
|
+template <> bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
|
||||||
|
{
|
||||||
|
inputcount = (u32)present.size();
|
||||||
|
|
||||||
|
@@ -233,7 +233,7 @@
|
||||||
|
|
||||||
|
// Record that the specified number of source files are all present
|
||||||
|
// and compute the base values to use for the vandermonde matrix.
|
||||||
|
-bool ReedSolomon<Galois16>::SetInput(u32 count)
|
||||||
|
+template <> bool ReedSolomon<Galois16>::SetInput(u32 count)
|
||||||
|
{
|
||||||
|
inputcount = count;
|
||||||
|
|
||||||
|
@@ -267,7 +267,7 @@
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
-bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
|
||||||
|
+template <> bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
|
||||||
|
{
|
||||||
|
// Look up the appropriate element in the RS matrix
|
2
packages/sysutils/par2cmdline/url
Normal file
2
packages/sysutils/par2cmdline/url
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
http://mesh.dl.sourceforge.net/project/parchive/par2cmdline/0.4/par2cmdline-0.4.tar.gz
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user