-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
49 lines (36 loc) · 1.72 KB
/
Portfile
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0
name rtl-sdr
github.setup osmocom rtl-sdr 5e73f90f1d85d8db2e583f3dbf1cff052d71d59b
version 20220115-[string range ${github.version} 0 7]
checksums rmd160 b20663bafc564401df066039a4e83a5215d99093 \
sha256 19ed112e1f7f425dd77c98d81d205ebe8ec7aa372e6a92bcb2a50cf6eca274fd \
size 134207
revision 0
categories science comms
platforms darwin
license GPL-2+
maintainers {michaelld @michaelld} openmaintainer
description ${name} allows using devices with a RTL2832U chipset as software defined radio (SDR)
long_description ${description}
homepage http://sdr.osmocom.org/trac/wiki/rtl-sdr
depends_build-append port:pkgconfig path:bin/doxygen:doxygen
depends_lib-append path:lib/pkgconfig/libusb-1.0.pc:libusb
# remove top-level library and includes paths, such that internal
# libraries and headers are used instead of any already-installed ones.
configure.ldflags-delete -L${prefix}/lib
configure.cppflags-delete -I${prefix}/include
# patch to allow us to override git describe
patchfiles-append patch-fix-git-describe.diff
patch.pre_args-replace -p0 -p1
# set the string to use in place of git describe since that won't work
configure.args-append -DRTL_SDR_GIT_INFO="${version}-MacPorts"
# rtl-sdr cmake doesn't understand build type "MacPorts";
# use release unless +debug is set
if {[variant_isset debug]} {
cmake.build_type Debug
} else {
cmake.build_type Release
}