mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
libmad:
- build and install as shared lib
This commit is contained in:
parent
0c9e613ef7
commit
6ea5e73eb7
@ -8,11 +8,24 @@ cd $PKG_BUILD
|
|||||||
./configure --host=$TARGET_NAME \
|
./configure --host=$TARGET_NAME \
|
||||||
--build=$HOST_NAME \
|
--build=$HOST_NAME \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-static \
|
--disable-static \
|
||||||
--disable-shared
|
--enable-shared
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
#$STRIP .libs/*.so*
|
|
||||||
|
|
||||||
$MAKEINSTALL
|
$MAKEINSTALL
|
||||||
|
|
||||||
|
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
|
||||||
|
cat > $SYSROOT_PREFIX/usr/lib/pkgconfig/mad.pc << "EOF"
|
||||||
|
prefix=$SYSROOT_PREFIX
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: mad
|
||||||
|
Description: MPEG audio decoder
|
||||||
|
Requires:
|
||||||
|
Version: 0.15.1b
|
||||||
|
Libs: -L${libdir} -lmad
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
EOF
|
||||||
|
6
packages/audio/libmad/install
Executable file
6
packages/audio/libmad/install
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib
|
||||||
|
cp $PKG_BUILD/.libs/*.so* $INSTALL/usr/lib
|
Loading…
x
Reference in New Issue
Block a user