From 0f0c3973d9f42460db5215eb3f0c11a9c2ecd3dc Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Sat, 7 Mar 2020 18:50:38 -0600 Subject: [PATCH] luaradio: new port, version 0.6.1 --- science/luaradio/Portfile | 43 +++++++++++++++++++++++++++++++ science/luaradio/files/wrapper.sh | 3 +++ 2 files changed, 46 insertions(+) create mode 100644 science/luaradio/Portfile create mode 100755 science/luaradio/files/wrapper.sh diff --git a/science/luaradio/Portfile b/science/luaradio/Portfile new file mode 100644 index 0000000000000..2b2c17b4e44f5 --- /dev/null +++ b/science/luaradio/Portfile @@ -0,0 +1,43 @@ +# -*- 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 github 1.0 + +github.setup vsergeev luaradio 0.6.1 v + +checksums rmd160 7bc5090eb17111719a819460ecefffdea79fe20e \ + sha256 8f5e539d84d70717a7bf18cce2dc2416bcfbed3a561d869ff66af47c049705a6 \ + size 9187436 + +categories science comms +platforms darwin +license MIT +maintainers {@vsergeev sergeev.io:v} \ + openmaintainer +description A lightweight, embeddable software-defined radio framework built on LuaJIT +long_description ${description} +homepage https://luaradio.io/ + +depends_build-append port:pkgconfig +depends_lib-append port:luajit +depends_run-append port:fftw-3 \ + port:liquid-dsp \ + port:volk + +worksrcdir ${distname}/embed +use_configure no +build.target lib tests +test.run yes +test.target runtests +destroot.args-append PREFIX=${prefix} + +post-destroot { + set luajit luajit-[exec pkg-config --modversion luajit] + + xinstall -d ${destroot}${prefix}/libexec/luaradio + file rename ${destroot}${prefix}/bin/luaradio ${destroot}${prefix}/libexec/luaradio/luaradio + + xinstall ${filespath}/wrapper.sh ${destroot}${prefix}/bin/luaradio + reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/luaradio + reinplace s|@LUAJIT@|${luajit}|g ${destroot}${prefix}/bin/luaradio +} diff --git a/science/luaradio/files/wrapper.sh b/science/luaradio/files/wrapper.sh new file mode 100755 index 0000000000000..8662afe83de95 --- /dev/null +++ b/science/luaradio/files/wrapper.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +DYLD_FALLBACK_LIBRARY_PATH="@PREFIX@/lib:/usr/lib" "@PREFIX@/bin/@LUAJIT@" "@PREFIX@/libexec/luaradio/luaradio" "$@"