From owner-svn-ports-head@freebsd.org Wed Apr 19 09:20:58 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7FCED43B2C; Wed, 19 Apr 2017 09:20:58 +0000 (UTC) (envelope-from mmokhi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 937BAC7C; Wed, 19 Apr 2017 09:20:58 +0000 (UTC) (envelope-from mmokhi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3J9Kvax000968; Wed, 19 Apr 2017 09:20:57 GMT (envelope-from mmokhi@FreeBSD.org) Received: (from mmokhi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3J9Kv0U000102; Wed, 19 Apr 2017 09:20:57 GMT (envelope-from mmokhi@FreeBSD.org) Message-Id: <201704190920.v3J9Kv0U000102@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmokhi set sender to mmokhi@FreeBSD.org using -f From: Mahdi Mokhtari Date: Wed, 19 Apr 2017 09:20:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r438831 - in head/multimedia: . librespot X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 09:20:58 -0000 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 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. +******************************************************************************