Skip to content
Permalink
Browse files

perseus-sdr: new port

Perseus Software Defined Radio Control Library
  • Loading branch information...
ra1nb0w authored and cjones051073 committed May 11, 2019
1 parent 6021cd4 commit bf87ef479611b44218435ecfcd32ff7aa8a43a99
Showing with 63 additions and 0 deletions.
  1. +50 −0 science/perseus-sdr/Portfile
  2. +13 −0 science/perseus-sdr/files/patch-makefile.am.diff
@@ -0,0 +1,50 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0

platforms darwin macosx
categories science
license LGPL-3.0
maintainers {@ra1nb0w irh.it:rainbow} openmaintainer

name perseus-sdr
description Perseus Software Defined Radio Control Library
long_description ${description}
homepage http://microtelecom.it/perseus/

github.setup Microtelecom libperseus-sdr 0.8.1 v
distname libperseus_sdr-${version}
checksums rmd160 a9e27ec11b5533a30ff3ef1fb67bb6e04885f552 \
sha256 4400d845120178b7d323b49d045c5edbcb203e800606808093918d6037c9239c \
size 550633
revision 0

use_autoconf yes
autoconf.cmd ./bootstrap.sh

# need for autoconf
depends_build-append \
port:autoconf \
port:automake \
port:libtool

depends_lib-append \
path:lib/libusb.dylib:libusb

post-extract {
# remove ssse3 on ppc
if {$build_arch eq "ppc" || $build_arch eq "ppc64"} {
patchfiles-append \
patch-makefile.am.diff
}
}

post-destroot {
# install only the dynamic version
delete ${destroot}/${prefix}/bin/perseustest
move ${destroot}/${prefix}/bin/perseustest_dyn ${destroot}${prefix}/bin/perseustest
}

test.run yes
test.cmd ./examples/perseustest
@@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 60d33a3..fcf9df8 100644
--- Makefile.am
+++ Makefile.am
@@ -19,7 +19,7 @@ AM_LIBS = -ldl
endif

if OS_MACOS
-AM_CFLAGS = -Wall -O3 -mssse3 -DGIT_REVISION=\"@VERSION@\"
+AM_CFLAGS = -Wall -O3 -DGIT_REVISION=\"@VERSION@\"
AM_LDFLAGS =
AM_LIBS = -ldl
endif

0 comments on commit bf87ef4

Please sign in to comment.
You can’t perform that action at this time.