Skip to content

Commit

Permalink
Adding SDRPlay support
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTendian committed Apr 18, 2023
1 parent 7bb5742 commit 6e7452e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ RUN apt-get update && \
libusb-dev \
libxtrx-dev \
pkg-config \
soapysdr-tools \
soapysdr-module-all \
software-properties-common \
sox && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -62,6 +64,32 @@ RUN cd /tmp && \

WORKDIR /src

ARG ARCH="x86_64"
ARG MAJOR_VERS="2.13"
ARG MINOR_VERS="1"
ADD https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-${MAJOR_VERS}.${MINOR_VERS}.run /src/SDRplay_RSP_API-Linux-${MAJOR_VERS}.${MINOR_VERS}.run
RUN chmod +x ./SDRplay_RSP_API-Linux-${MAJOR_VERS}.${MINOR_VERS}.run \
&& ./SDRplay_RSP_API-Linux-${MAJOR_VERS}.${MINOR_VERS}.run --noexec --target /src/sdrplay \
&& cd sdrplay \
&& cp ${ARCH}/libmirsdrapi-rsp.so.${MAJOR_VERS} /usr/local/lib/. \
&& chmod 644 /usr/local/lib/libmirsdrapi-rsp.so.${MAJOR_VERS} \
&& ln -s /usr/local/lib/libmirsdrapi-rsp.so.${MAJOR_VERS} /usr/local/lib/libmirsdrapi-rsp.so.2 \
&& ln -s /usr/local/lib/libmirsdrapi-rsp.so.2 /usr/local/lib/libmirsdrapi-rsp.so \
&& cp mirsdrapi-rsp.h /usr/local/include/. \
&& chmod 644 /usr/local/include/mirsdrapi-rsp.h \
&& cd .. \
&& rm -r sdrplay SDRplay_RSP_API-Linux-${MAJOR_VERS}.${MINOR_VERS}.run

RUN git clone https://github.com/dlaw/SoapySDRPlay.git \
&& cd SoapySDRPlay \
&& git checkout cleanup \
&& cmake . \
&& make -j`nproc` \
&& make install \
&& ldconfig \
&& cd .. \
&& rm -r SoapySDRPlay

COPY . .

WORKDIR /src/build
Expand Down

0 comments on commit 6e7452e

Please sign in to comment.