mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
snap[server|client]: cleanup and use the "sysroot" build flag
As with system-tools before.
This commit is contained in:
parent
f6b8906014
commit
fefa6bb2c6
@ -9,4 +9,6 @@ PKG_SITE="https://github.com/badaix/aixlog"
|
||||
PKG_URL="https://github.com/badaix/aixlog/archive/v$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="Header-only C++ logging library."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
PKG_BUILD_FLAGS="-sysroot"
|
||||
|
||||
PKG_CMAKE_OPTS_TARGET="-DBUILD_EXAMPLE=OFF"
|
||||
|
@ -10,4 +10,11 @@ PKG_URL="https://github.com/chriskohlhoff/asio/archive/asio-$PKG_VERSION.zip"
|
||||
PKG_SOURCE_DIR="asio-asio-$PKG_VERSION"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="Asio C++ Library."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
PKG_TOOLCHAIN="autotools"
|
||||
PKG_BUILD_FLAGS="-sysroot"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--without-boost --without-openssl"
|
||||
|
||||
post_unpack() {
|
||||
mv $PKG_BUILD/asio/* $PKG_BUILD
|
||||
}
|
||||
|
@ -10,3 +10,9 @@ PKG_URL="https://github.com/badaix/popl/archive/v$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="Header-only C++ program options parser library."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
PKG_BUILD_FLAGS="-sysroot"
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/include
|
||||
cp -p $PKG_BUILD/include/popl.hpp $INSTALL/usr/include
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ PKG_URL="https://github.com/mikebrady/shairport-sync/archive/$PKG_VERSION.tar.gz
|
||||
PKG_DEPENDS_TARGET="toolchain alsa-lib avahi libconfig libdaemon openssl popt pulseaudio soxr"
|
||||
PKG_LONGDESC="AirPlay audio player."
|
||||
PKG_TOOLCHAIN="autotools"
|
||||
PKG_BUILD_FLAGS="-sysroot"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--with-alsa \
|
||||
--with-avahi \
|
||||
@ -19,8 +20,5 @@ PKG_CONFIGURE_OPTS_TARGET="--with-alsa \
|
||||
--with-pipe \
|
||||
--with-soxr \
|
||||
--with-ssl=openssl \
|
||||
--with-stdout"
|
||||
|
||||
makeinstall_target() {
|
||||
:
|
||||
}
|
||||
--with-stdout \
|
||||
--without-configfiles"
|
||||
|
@ -10,16 +10,18 @@ PKG_URL="https://github.com/badaix/snapcast/archive/v$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain aixlog alsa-lib asio avahi flac libvorbis popl"
|
||||
PKG_LONGDESC="Synchronous multi-room audio player."
|
||||
PKG_TOOLCHAIN="make"
|
||||
PKG_BUILD_FLAGS="-sysroot"
|
||||
|
||||
pre_configure_target() {
|
||||
cd ..
|
||||
rm -rf .$TARGET_NAME
|
||||
CXXFLAGS="$CXXFLAGS -pthread \
|
||||
-I$(get_build_dir aixlog)/include \
|
||||
-I$(get_build_dir asio)/asio/include \
|
||||
-I$(get_build_dir popl)/include"
|
||||
-I$(get_install_dir aixlog)/usr/include \
|
||||
-I$(get_install_dir asio)/usr/include \
|
||||
-I$(get_install_dir popl)/usr/include"
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
:
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -p server/snapserver client/snapclient $INSTALL/usr/bin
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ PKG_MAINTAINER="Anton Voyl (awiouy)"
|
||||
|
||||
addon() {
|
||||
mkdir -p "$ADDON_BUILD/$PKG_ADDON_ID/bin"
|
||||
cp "$(get_build_dir snapcast)/client/snapclient" \
|
||||
cp "$(get_install_dir snapcast)/usr/bin/snapclient" \
|
||||
"$ADDON_BUILD/$PKG_ADDON_ID/bin"
|
||||
|
||||
mkdir -p "$ADDON_BUILD/$PKG_ADDON_ID/lib"
|
||||
|
@ -20,7 +20,7 @@ PKG_MAINTAINER="Anton Voyl (awiouy)"
|
||||
|
||||
addon() {
|
||||
mkdir -p "$ADDON_BUILD/$PKG_ADDON_ID/bin"
|
||||
cp "$(get_build_dir shairport-sync)/.$TARGET_NAME/shairport-sync" \
|
||||
"$(get_build_dir snapcast)/server/snapserver" \
|
||||
cp "$(get_install_dir shairport-sync)/usr/bin/shairport-sync" \
|
||||
"$(get_install_dir snapcast)/usr/bin/snapserver" \
|
||||
"$ADDON_BUILD/$PKG_ADDON_ID/bin"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user