Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 09:20:57 +0000 (UTC)
From:      Mahdi Mokhtari <mmokhi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438831 - in head/multimedia: . librespot
Message-ID:  <201704190920.v3J9Kv0U000102@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmokhi
Date: Wed Apr 19 09:20:57 2017
New Revision: 438831
URL: https://svnweb.freebsd.org/changeset/ports/438831

Log:
  multimedia/librespot: Add port to the tree.
  LibreSpot is an Open Source Spotify client (and library).
  It enables applications to use Spotify's service,
  without using the official but closed-source libspotify.
  
  Reviewed by:	feld, mat (mentors)
  Approved by:	mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D10402

Added:
  head/multimedia/librespot/
  head/multimedia/librespot/Makefile   (contents, props changed)
  head/multimedia/librespot/distinfo   (contents, props changed)
  head/multimedia/librespot/pkg-descr   (contents, props changed)
  head/multimedia/librespot/pkg-message   (contents, props changed)
Modified:
  head/multimedia/Makefile

Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile	Wed Apr 19 09:09:01 2017	(r438830)
+++ head/multimedia/Makefile	Wed Apr 19 09:20:57 2017	(r438831)
@@ -203,6 +203,7 @@
     SUBDIR += libquvi-scripts
     SUBDIR += libquvi-scripts09
     SUBDIR += libquvi09
+    SUBDIR += librespot
     SUBDIR += librtmp
     SUBDIR += libsmacker
     SUBDIR += libtheora

Added: head/multimedia/librespot/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/librespot/Makefile	Wed Apr 19 09:20:57 2017	(r438831)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME=	librespot
+PORTVERSION=	0.1.0
+CATEGORIES=	multimedia net devel
+
+MAINTAINER=	mmokhi@FreeBSD.org
+COMMENT=	Open Source Spotify client library
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	cargo>0:devel/cargo \
+		portaudio>0:audio/portaudio
+
+USES=		localbase pathfix pkgconfig shebangfix
+USE_LDCONFIG=	yes
+
+# Rust's target arch string is different from *BSD arch strings
+RUST_ARCH_x86_64=	x86_64 # dragonfly
+RUST_ARCH_amd64=	x86_64
+RUST_ARCH_i386=		i686
+RUST_TARGET=		${RUST_ARCH_${ARCH}}-unknown-${OPSYS:tl}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	plietar
+GH_TAGNAME=	85dbc3b
+
+MAKE_ENV=	CARGO_HOME=${BUILD_WRKSRC}
+
+PLIST_FILES=	bin/${PORTNAME} \
+		lib/rustlib/${RUST_TARGET}/lib/lib${PORTNAME}.rlib
+
+do-build:
+	cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} cargo build --release --verbose
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/rustlib/${RUST_TARGET}/lib
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/target/release/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/target/release/${PORTNAME} ${STAGEDIR}${PREFIX}/lib/rustlib/${RUST_TARGET}/lib/lib${PORTNAME}.rlib
+
+.include <bsd.port.mk>

Added: head/multimedia/librespot/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/librespot/distinfo	Wed Apr 19 09:20:57 2017	(r438831)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1492239429
+SHA256 (plietar-librespot-0.1.0-85dbc3b_GH0.tar.gz) = 48e878a8863fb1905facf9c33f2aaee64d01e695a549af4dc51403daf5f34223
+SIZE (plietar-librespot-0.1.0-85dbc3b_GH0.tar.gz) = 165946

Added: head/multimedia/librespot/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/librespot/pkg-descr	Wed Apr 19 09:20:57 2017	(r438831)
@@ -0,0 +1,8 @@
+librespot is an open source client library for Spotify.
+It enables applications to use Spotify's service,
+without using the official but closed-source libspotify.
+
+Additionally, it will provide extra features which are not
+available in the official library.
+
+WWW: https://github.com/plietar/librespot

Added: head/multimedia/librespot/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/librespot/pkg-message	Wed Apr 19 09:20:57 2017	(r438831)
@@ -0,0 +1,10 @@
+******************************************************************************
+A sample program implementing a headless Spotify Connect receiver is provided.
+Once you've built librespot, run it using :
+
+librespot --username USERNAME --cache CACHEDIR --name DEVICENAME
+
+librespot can be run in discovery mode,
+in which case no password is required at startup.
+For that, simply omit the --username argument.
+******************************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704190920.v3J9Kv0U000102>