pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/librespot librespot: add missing linker arguments
details: https://anonhg.NetBSD.org/pkgsrc/rev/69c44f9a6c5e
branches: trunk
changeset: 452624:69c44f9a6c5e
user: nia <nia%pkgsrc.org@localhost>
date: Fri May 14 07:07:19 2021 +0000
description:
librespot: add missing linker arguments
needed in the case e.g. portaudio is compiled with other dependencies,
like jack and alsa
diffstat:
audio/librespot/options.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 166b4bc6a987 -r 69c44f9a6c5e audio/librespot/options.mk
--- a/audio/librespot/options.mk Fri May 14 07:04:48 2021 +0000
+++ b/audio/librespot/options.mk Fri May 14 07:07:19 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2020/11/29 22:46:02 nia Exp $
+# $NetBSD: options.mk,v 1.4 2021/05/14 07:07:19 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.librespot
PKG_SUPPORTED_OPTIONS= alsa gstreamer jack portaudio pulseaudio rodio sdl
@@ -8,12 +8,14 @@
.if !empty(PKG_OPTIONS:Malsa)
CARGO_FEATURES+= alsa-backend
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.alsa-lib}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.alsa-lib}/lib
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mgstreamer)
CARGO_FEATURES+= gstreamer-backend
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.gstreamer1}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gstreamer1}/lib
.include "../../multimedia/gstreamer1/buildlink3.mk"
.endif
@@ -27,12 +29,16 @@
.if !empty(PKG_OPTIONS:Mportaudio)
CARGO_FEATURES+= portaudio-backend
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.portaudio}/lib
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.portaudio}/${BUILDLINK_LIBDIRS.portaudio}
+RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.portaudio}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.portaudio}/${BUILDLINK_LIBDIRS.portaudio}
.include "../../audio/portaudio/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
CARGO_FEATURES+= pulseaudio-backend
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.pulseaudio}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pulseaudio}/lib
.include "../../audio/pulseaudio/buildlink3.mk"
.endif
Home |
Main Index |
Thread Index |
Old Index