mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
move package libplayer:
- no more need, move to pkg-archive branch
This commit is contained in:
parent
03db7913a9
commit
affeb4ad6a
@ -1,38 +0,0 @@
|
|||||||
diff -r 6d407d91244b src/parse_utils.c
|
|
||||||
--- a/src/parse_utils.c mar sep 15 20:31:33 2009 +0200
|
|
||||||
+++ b/src/parse_utils.c mer sep 30 21:26:01 2009 +0200
|
|
||||||
@@ -21,7 +21,7 @@
|
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <stdlib.h>
|
|
||||||
-#include <locale.h>
|
|
||||||
+#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "parse_utils.h"
|
|
||||||
@@ -76,12 +76,19 @@
|
|
||||||
double
|
|
||||||
pl_atof (const char *nptr)
|
|
||||||
{
|
|
||||||
- double res;
|
|
||||||
- locale_t new_locale;
|
|
||||||
+ double div = 1.0;
|
|
||||||
+ int i, res, integer;
|
|
||||||
+ unsigned int frac;
|
|
||||||
|
|
||||||
- new_locale = newlocale (LC_NUMERIC_MASK, "C", NULL);
|
|
||||||
- res = strtod_l (nptr, NULL, new_locale);
|
|
||||||
- freelocale (new_locale);
|
|
||||||
+ res = sscanf (nptr, "%i.%u", &integer, &frac);
|
|
||||||
+ if (res != 2)
|
|
||||||
+ return 0.0;
|
|
||||||
|
|
||||||
- return res;
|
|
||||||
+ if (!frac)
|
|
||||||
+ return (double) integer;
|
|
||||||
+
|
|
||||||
+ for (i = pl_count_nb_dec (frac); i; i--)
|
|
||||||
+ div *= 10.0;
|
|
||||||
+
|
|
||||||
+ return (double) integer + (double) frac / div;
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. config/options
|
|
||||||
|
|
||||||
$SCRIPTS/build toolchain
|
|
||||||
$SCRIPTS/build libX11
|
|
||||||
$SCRIPTS/build xine-lib
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
|
||||||
--disable-static \
|
|
||||||
--enable-shared \
|
|
||||||
--disable-debug \
|
|
||||||
--cross-compile \
|
|
||||||
--disable-doc \
|
|
||||||
--enable-logcolor \
|
|
||||||
--enable-mplayer \
|
|
||||||
--enable-xine \
|
|
||||||
--disable-vlc \
|
|
||||||
--disable-gstreamer \
|
|
||||||
--disable-binding-python \
|
|
||||||
--enable-x11
|
|
||||||
|
|
||||||
make -C src
|
|
||||||
make test
|
|
||||||
|
|
||||||
$MAKEINSTALL -C src
|
|
||||||
|
|
||||||
cp -f libplayer.pc $SYSROOT_PREFIX/usr/lib/pkgconfig/
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. config/options
|
|
||||||
|
|
||||||
$SCRIPTS/install libX11
|
|
||||||
$SCRIPTS/install mplayer
|
|
||||||
$SCRIPTS/install xine-lib
|
|
||||||
|
|
||||||
if [ "$DEVTOOLS" = yes ]; then
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
|
||||||
cp $BUILD/$1*/test-player $INSTALL/usr/bin
|
|
||||||
cp $BUILD/$1*/test-vdr $INSTALL/usr/bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib
|
|
||||||
cp -PR $BUILD/$1*/src/libplayer.so* $INSTALL/usr/lib
|
|
@ -1,35 +0,0 @@
|
|||||||
diff -Naur libplayer-20090929/configure libplayer-20090929.patch/configure
|
|
||||||
--- libplayer-20090929/configure 2009-09-30 03:22:00.000000000 +0200
|
|
||||||
+++ libplayer-20090929.patch/configure 2009-10-01 04:44:24.830578857 +0200
|
|
||||||
@@ -805,19 +805,18 @@
|
|
||||||
# check for libX11
|
|
||||||
#################################################
|
|
||||||
if test "$x11" = "auto" -o "$x11" = "yes"; then
|
|
||||||
- if test "$wrapper_xine" = "yes" -o "$wrapper_mplayer" = "yes"; then
|
|
||||||
- x11="no"
|
|
||||||
- echolog "Checking for libX11 ..."
|
|
||||||
- if [ -n "$libX11dir" ]; then
|
|
||||||
- check_cflags -I$libX11dir/include
|
|
||||||
- check_ldflags -L$libX11dir/lib
|
|
||||||
- fi
|
|
||||||
- check_lib X11/X.h XInitThreads -lX11
|
|
||||||
- if [ "$?" = 0 ]; then
|
|
||||||
- add_extracflags -DUSE_X11
|
|
||||||
- add_pkgconfig_requires x11
|
|
||||||
- x11="yes"
|
|
||||||
- fi
|
|
||||||
+ x11="no"
|
|
||||||
+ echolog "Checking for libX11 ..."
|
|
||||||
+ if [ -n "$libX11dir" ]; then
|
|
||||||
+ check_cflags -I$libX11dir/include
|
|
||||||
+ check_ldflags -L$libX11dir/lib
|
|
||||||
+ fi
|
|
||||||
+ check_lib X11/X.h XInitThreads -lX11
|
|
||||||
+ if [ "$?" = 0 ]; then
|
|
||||||
+ add_extracflags -DUSE_X11
|
|
||||||
+ add_pkgconfig_requires x11
|
|
||||||
+ add_extralibs -lX11 -lm
|
|
||||||
+ x11="yes"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
http://sources.openelec.tv/svn/libplayer-20091010.tar.bz2
|
|
Loading…
x
Reference in New Issue
Block a user