blob: fa57c1d27a1856b20c0c92224b5b0f292caf9be5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MULTILIB_COMPAT=( abi_x86_{32,64} )
inherit versionator unpacker udev multilib-minimal
MY_PV_1=$(get_major_version)
MY_PV_12=$(get_version_component_range 1-2)
DESCRIPTION="SDRplay API/HW driver for all RSPs"
HOMEPAGE="https://www.sdrplay.com"
SRC_URI="http://www.sdrplay.com/software/SDRplay_RSP_API-Linux-${PV}.run"
LICENSE="SDRplay"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/libusb
virtual/udev"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
QA_PREBUILT="usr/lib64/libmirsdrapi-rsp.so.${MY_PV_12}
usr/lib32/libmirsdrapi-rsp.so.${MY_PV_12}"
multilib_src_install_all() {
insinto /usr/include/
doins mirsdrapi-rsp.h
udev_dorules 66-mirics.rules
udev_reload
}
multilib_src_install() {
if [ "${MULTILIB_ABI_FLAG}" = "abi_x86_32" ]; then
dolib "${S}/i686/libmirsdrapi-rsp.so.${MY_PV_12}"
fi
if [ "${MULTILIB_ABI_FLAG}" = "abi_x86_64" ]; then
dolib "${S}/x86_64/libmirsdrapi-rsp.so.${MY_PV_12}"
fi
dosym libmirsdrapi-rsp.so.${MY_PV_12} "${EROOT}usr/$(get_libdir)/libmirsdrapi-rsp.so.${MY_PV_1}"
dosym libmirsdrapi-rsp.so.${MY_PV_1} "${EROOT}usr/$(get_libdir)/libmirsdrapi-rsp.so"
}
|