snapcast: initial package

This commit is contained in:
awiouy 2018-03-03 20:01:49 +01:00
parent cc4d220911
commit c8c57fba6e
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,42 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2018-present Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="snapcast"
PKG_VERSION="0.13.0"
PKG_ARCH="any"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/badaix/snapcast"
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_SECTION="tools"
PKG_LONGDESC="Synchronous multi-room audio player"
PKG_IS_ADDON="no"
PKG_USE_CMAKE="no"
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"
}
makeinstall_target() {
:
}

View File

@ -0,0 +1,30 @@
diff -Naur snapcast-0.13.0/client/Makefile snapcast-0.13.0.Makefiles/client/Makefile
--- snapcast-0.13.0/client/Makefile 2018-03-04 21:43:32.000000000 +0100
+++ snapcast-0.13.0.Makefiles/client/Makefile 2018-03-05 13:33:36.686709820 +0100
@@ -78,10 +78,8 @@
else
-CXX = g++
-STRIP = strip
CXXFLAGS += -pthread -DHAS_VORBIS -DHAS_ALSA -DHAS_AVAHI -DHAS_DAEMON
-LDFLAGS += -lrt -lasound -lvorbis -lavahi-client -lavahi-common -static-libgcc -static-libstdc++ -latomic
+LDFLAGS += -lrt -lasound -lvorbis -lavahi-client -lavahi-common -logg
OBJ += ../common/daemon.o player/alsaPlayer.o browseZeroConf/browseAvahi.o
endif
diff -Naur snapcast-0.13.0/server/Makefile snapcast-0.13.0.Makefiles/server/Makefile
--- snapcast-0.13.0/server/Makefile 2018-03-04 21:43:32.000000000 +0100
+++ snapcast-0.13.0.Makefiles/server/Makefile 2018-03-05 13:34:03.530858350 +0100
@@ -84,10 +84,8 @@
else
-CXX = g++
-STRIP = strip
CXXFLAGS += -DHAS_AVAHI -DHAS_DAEMON -pthread
-LDFLAGS = -lrt -lvorbis -lvorbisenc -logg -lFLAC -lavahi-client -lavahi-common -static-libgcc -static-libstdc++
+LDFLAGS = -lrt -lvorbis -lvorbisenc -logg -lFLAC -lavahi-client -lavahi-common
OBJ += ../common/daemon.o publishZeroConf/publishAvahi.o
endif