diff options
Diffstat (limited to 'media-sound/sc2mpd')
-rw-r--r-- | media-sound/sc2mpd/Manifest | 2 | ||||
-rw-r--r-- | media-sound/sc2mpd/sc2mpd-1.1.8.ebuild | 93 |
2 files changed, 95 insertions, 0 deletions
diff --git a/media-sound/sc2mpd/Manifest b/media-sound/sc2mpd/Manifest index 2a7c8e94b5ba..8d6ff1099999 100644 --- a/media-sound/sc2mpd/Manifest +++ b/media-sound/sc2mpd/Manifest @@ -2,5 +2,7 @@ AUX sc2mpd-1.1.7-python.patch 4186 BLAKE2B 8037ab9b33d25a65ec4b72b616de23c8ab12f AUX sc2mpd-1.1.7-werror.patch 4237 BLAKE2B f3922de425df679e9b9e7c5249994a39e9fcda6a539f1b3d084ece8f44c8e81546b975375ca3fd8d0e81504bb712791bc99e1aa139d422805ef7dd16d79d8f16 SHA512 28d6ca71fc41ed11fab780f48861f04b28d853240107db2eed6911f3e58710e50e31bbc3f3d5c047599c1d1e544a921bc4ea4bc37e5900a02a4092c7de520fe5 DIST openhome-sc2-20200704.tar.gz 22352681 BLAKE2B a5131f3b5c3400ff0ca58f0ce9b45c25db6fc13dcf6827ed9e4531effd3b35026d59495adf690ba65c09624c12f7755b9373ec4e4309de73f17fdeb866beeba7 SHA512 04586fbfd8053c7f01d2c3dbf421f75d0d93ac179cf5f58bc7966d364a3477a87985a1a2db1b35018aa5193a07977b7b4be60d317e7c10b275234adf9a2bd5d2 DIST sc2mpd-1.1.7.tar.gz 238674 BLAKE2B 35fd57797612e3883ad5cc04be3f5328dbf4ec9aedb0461a801fe79566ef20de4026ad653eec6e7d932ffcd0385bb618331a519ec54838fd856d09c20f1971b8 SHA512 0b39e200f013602c851bec1ba41210c40d1a984638c86bd8dd5d61286aff19b315f282182753426e4470c8e6ccb60265b16dc6ba2e5117f59a3d40194464b4b3 +DIST sc2mpd-1.1.8.tar.gz 244898 BLAKE2B 81c3ff1b25db25cbd1bdb50f2343acb07740611dbad504fcc4670a6d351c1daace481de5292f291bdf208a911f67f4ebcc0884c0ef9eece962114860941e1941 SHA512 214b60ee154ab84e9a7ace285afa71b015987c6b6838fb2686cc81f65800f10228cc3f52e5f5e7e836fa181ea6fea5b0c4c83acc5c6eff989c82c79990f19497 EBUILD sc2mpd-1.1.7.ebuild 3242 BLAKE2B 4a77568b4e07680e93b5e6acde2e076c1b3620942c2d9ae672e823c1f1f65b018b27b510ebe9a1dc420d89bcac79ddaa3adb662834fd3220f88c1c1c6fbbb763 SHA512 abba0c2c796c308eb1c52433e6d234c0622050bb1bd74b27405dcab27cbce2ff358ae8c50eae9b66a495bdb5ae90e3587e3fbf48d7d86de8fc36b1e9321dd53b +EBUILD sc2mpd-1.1.8.ebuild 3071 BLAKE2B 7a6eab05845475eaf37248c5981d2961a090b3048efd26ef13a0016eeee9938e8b2bc372cb424ca3b6dbf46beb5181a6f7e635f7261c5916bfb6b17bdde83da7 SHA512 c43af142ee6c0b604f0cb7e209a19004ca76e24706edcb98f9f3b00df74c51759b2eee42cf6ca7273701df5f49c2502b88111c0da204ee23bf4e606034b27bd8 MISC metadata.xml 217 BLAKE2B c0bbfd196fa82f939049ba60f8a1ea7fffccb97a821373c8ba9d8265585e7cdd81f6cd1623ff0704fbb52a8109d9e31c7872949ac7f5910f646bfb766392e717 SHA512 e09835e34c3f35da82048705a28fcde46e7cc04e4cc8d6118e211bec65666ee1a7f3d6c440c8de99b4a3326ea826ef75b29e0a8898b7d6a2a71a2533e43b1f9d diff --git a/media-sound/sc2mpd/sc2mpd-1.1.8.ebuild b/media-sound/sc2mpd/sc2mpd-1.1.8.ebuild new file mode 100644 index 000000000000..ef6557395fe1 --- /dev/null +++ b/media-sound/sc2mpd/sc2mpd-1.1.8.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Implements the SongCast protocol for use by upmpdcli and mpd" +HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html" + +openhome_packageversion="20200704" + +SRC_URI=" + https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz + https://www.lesbonscomptes.com/upmpdcli/downloads/openhome-sc2-${openhome_packageversion}.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-libs/expat + media-libs/alsa-lib + media-libs/libsamplerate + media-libs/libmpdclient + <=net-libs/libmicrohttpd-0.9.70 +" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + mkdir openhome || die "Can't create openhome directory" + cd openhome || die "Can't enter openhome directory" + unpack openhome-sc2-${openhome_packageversion}.tar.gz +} + +src_configure() { + econf "--with-openhome=${WORKDIR}/openhome" +} + +src_compile() { + #### Begin ohbuild.sh reverse engineer + + # build_ohNet + cd "${WORKDIR}/openhome/ohNet" || die "Couldn't cd to ohNet dir" + einfo "Building ohnet" + emake native_only=yes + + # build_ohNetGenerated + cd "${WORKDIR}/openhome/ohNetGenerated" || die "Couldn't cd to ohNetGenerated dir" + # TODO: get from environment/make target + deps="${WORKDIR}/openhome/ohNetGenerated/dependencies/Linux-x64/ohNet-Linux-x64-Release" + mkdir -p ${deps}/{include/ohnet,lib/{ohnet,t4,ui,PyOhNet}} || die "Couldn't mkdir deps" + cd ${deps} || die "Couldn't cd to deps dir" + + ohnet="${WORKDIR}/openhome/ohNet" + find "$ohnet/Build" \( -name '*.a' -o -name '*.so' \) \ + -exec cp '{}' lib ';' \ + || die "Couldn't cp binary libs" + + cd "$ohnet/Build/Include" || die "Couldn't cd to include" + cp -R * "${deps}/include/ohnet" || die "Couldn't cp include" + # cd "$ohnet/Build/Tools" || die "Couldn't cd to tools" + # cp -R * "${deps}/lib/t4" || die "Couldn't cp tools" + cd "$ohnet/OpenHome/Net/T4/Templates" || die "Couldn't cd to templates" + cp -R * "${deps}/lib/t4" || die "Couldn't cp templates" + cd "$ohnet/OpenHome/Net/Bindings/Js/ControlPoint" || die "Couldn't cd to ui" + cp -R * "${deps}/lib/ui" || die "Couldn't cp ui" + cd "$ohnet/OpenHome/Net/Bindings/Python/PyOhNet" || die "Couldn't cd to py" + cp -R * "${deps}/lib/PyOhNet" || die "Couldn't cp py" + + cd "${WORKDIR}/openhome/ohNetGenerated" || die "Couldn't cd later to ohNetGenerated dir" + einfo "Building ohnetgenerated" + emake native_only=yes + + cd "Build/Include" || die "Couldn't cd later to include" + cp -R * "$ohnet/Build/Include" || die "Couldn't cp generated includes" + + # build_ohTopology + cd "${WORKDIR}/openhome/ohTopology" || die "Couldn't cd to ohTopology dir" + mkdir -p build/Include/OpenHome/Av || die "Couldn't mkdir av" + cp -p OpenHome/Av/*.h build/Include/OpenHome/Av/ || die "Couldn't cp to av" + + # build_ohSongcast + cd "${WORKDIR}/openhome/ohSongcast" || die "Couldn't cd to ohSongcast dir" + einfo "Building ohSongcast" + emake release=1 library_static + + #### End ohbuild.sh reverse engineer + + cd "${S}" || die "Failed to cd to source directory" + einfo "Building sc2mpd" + emake +} |