Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luaradio: new port, version 0.6.1 #6539

Merged
merged 1 commit into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions science/luaradio/Portfile
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 3 additions & 0 deletions science/luaradio/files/wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

DYLD_FALLBACK_LIBRARY_PATH="@PREFIX@/lib:/usr/lib" "@PREFIX@/bin/@LUAJIT@" "@PREFIX@/libexec/luaradio/luaradio" "$@"