1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

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
This commit is contained in:
Mahdi Mokhtari 2017-04-19 09:20:57 +00:00
parent dd05aa01ac
commit d4422c6d4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438831
5 changed files with 64 additions and 0 deletions

View File

@ -203,6 +203,7 @@
SUBDIR += libquvi-scripts
SUBDIR += libquvi-scripts09
SUBDIR += libquvi09
SUBDIR += librespot
SUBDIR += librtmp
SUBDIR += libsmacker
SUBDIR += libtheora

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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.
******************************************************************************