Skip to content
Permalink
Browse files

fldigi: new port

Fast Light Digital Modem Application
  • Loading branch information
ra1nb0w authored and mf2k committed Apr 13, 2019
1 parent 310ac7a commit 37dd22917a8cf5a7c08154cdaf69be19a9171199
@@ -0,0 +1,76 @@
# -*- 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

name fldigi
version 4.1.02
# same sources but with different version
set version_flarq 4.3.7
categories science
platforms darwin macosx
license GPL-3
maintainers {@ra1nb0w irh.it:rainbow} openmaintainer

description Fast Light Digital Modem Application
long_description Fldigi (Fast Light Digital Modem Application), is a \
cross-platform modem program that supports most of the peer-to-peer \
(live keyboard) digital modes used on the amateur radio bands.
homepage http://www.w1hkj.com
master_sites http://www.w1hkj.com/files/${name}/

checksums rmd160 3eade162052641401bfbf5628816a897d96257b9 \
sha256 ed5320619594911e8b7a887a8a098ee2b08bd25a594cd0e7be8c5834ea99d224 \
size 4681621

depends_build-append \
port:pkgconfig

depends_lib-append \
path:lib/libfltk.dylib:fltk \
port:hamlib \
port:libpng \
port:libsamplerate \
port:libsndfile \
port:portaudio

# remove when upstream accept it
patchfiles-append \
patch-info.plist.diff

configure.args-append \
--without-pulseaudio

# We put this into a pre-configure block so it can be evaluated _after_ platform selection.
pre-configure {
# enable optimization (SSE3) on all Intel hardwares
if {${build_arch} eq "i386" || ${build_arch} eq "x86_64"} {
configure.args-append \
--enable-optimizations=sse3
}

# Fix building for older macOS versions via MACOSX_DEPLOYMENT_TARGET
# from http://www.w1hkj.com/doku/doku.php?id=howto:building_on_os_x
if {${os.platform} eq "darwin" && [vercmp $macosx_deployment_target 10.12] < 0} {
configure.args-append \
--without-clock_gettime
configure.env-append \
MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}
}
}

variant bundle description {Enable the optional macOS bundle of fldigi/flarq} {
patchfiles-append \
patch-mkappbundle.sh.diff
build.target appbundle
post-destroot {
xinstall -d -m 0755 ${destroot}${applications_dir}
copy ${workpath}/${name}-${version}/src/${name}-${version}/${name}-${version}.app ${destroot}${applications_dir}/${name}.app
copy ${workpath}/${name}-${version}/src/${name}-${version}/flarq-${version_flarq}.app ${destroot}${applications_dir}/flarq.app
}
}

default_variants-append +bundle

livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
@@ -0,0 +1,14 @@
--- data/mac/Info.plist.in
+++ data/mac/Info.plist.in
@@ -40,5 +40,11 @@

<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2006-2008 Dave Freese W1HKJ and others</string>
+
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Allow for using Sound input devices</string>
</dict>
</plist>
@@ -0,0 +1,16 @@
--- scripts/mkappbundle.sh.old 2019-04-13 12:59:43.000000000 +0200
+++ scripts/mkappbundle.sh 2019-04-13 13:04:38.000000000 +0200
@@ -59,7 +59,6 @@

$mkinstalldirs "$appname/Contents/Frameworks"
cd "$appname/Contents"
- copy_libs "MacOS/$binary"
}

if [ $# -ne 2 ]; then
@@ -125,5 +124,3 @@

cd "$build"

-echo "creating disk image"
-hdiutil create -ov -srcfolder "$bundle_dir" -format UDZO -tgtimagekey zlib-level=9 "${APPBUNDLE}.dmg"

0 comments on commit 37dd229

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