pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/librespot librespot: convert to CARGO_FEATURES



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a981b1e380c1
branches:  trunk
changeset: 440871:a981b1e380c1
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Oct 20 19:06:59 2020 +0000

description:
librespot: convert to CARGO_FEATURES

diffstat:

 audio/librespot/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 071b93584dd2 -r a981b1e380c1 audio/librespot/Makefile
--- a/audio/librespot/Makefile  Tue Oct 20 19:03:07 2020 +0000
+++ b/audio/librespot/Makefile  Tue Oct 20 19:06:59 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/10/11 13:19:42 pin Exp $
+# $NetBSD: Makefile,v 1.2 2020/10/20 19:06:59 tnn Exp $
 
 DISTNAME=      librespot-0.1.3
 CATEGORIES=    audio
@@ -287,10 +287,12 @@
 
 INSTALLATION_DIRS=     bin
 
-CARGO_ARGS+=   ${DEFAULT_CARGO_ARGS} --no-default-features --features portaudio-backend
 RUSTFLAGS+=    -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.portaudio}/${BUILDLINK_LIBDIRS.portaudio}
 MAKE_ENV+=     RUSTFLAGS=${RUSTFLAGS:Q}
 
+CARGO_NO_DEFAULT_FEATURES=     yes
+CARGO_FEATURES=                        portaudio-backend
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/librespot ${DESTDIR}${PREFIX}/bin
 



Home | Main Index | Thread Index | Old Index