<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/37dd22917a8cf5a7c08154cdaf69be19a9171199">https://github.com/macports/macports-ports/commit/37dd22917a8cf5a7c08154cdaf69be19a9171199</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 37dd22917a8cf5a7c08154cdaf69be19a9171199
</span>Author: Davide Gerhard <rainbow@irh.it>
AuthorDate: Sat Apr 13 14:54:39 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> fldigi: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fast Light Digital Modem Application
</span>---
science/fldigi/Portfile | 76 ++++++++++++++++++++++++++
science/fldigi/files/patch-info.plist.diff | 14 +++++
science/fldigi/files/patch-mkappbundle.sh.diff | 16 ++++++
3 files changed, 106 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/fldigi/Portfile b/science/fldigi/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..935fb74
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/fldigi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,76 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name fldigi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.1.02
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# same sources but with different version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set version_flarq 4.3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin macosx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@ra1nb0w irh.it:rainbow} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Fast Light Digital Modem Application
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Fldigi (Fast Light Digital Modem Application), is a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cross-platform modem program that supports most of the peer-to-peer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (live keyboard) digital modes used on the amateur radio bands.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://www.w1hkj.com
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites http://www.w1hkj.com/files/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3eade162052641401bfbf5628816a897d96257b9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ed5320619594911e8b7a887a8a098ee2b08bd25a594cd0e7be8c5834ea99d224 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4681621
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/libfltk.dylib:fltk \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hamlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpng \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsamplerate \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsndfile \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:portaudio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove when upstream accept it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-info.plist.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-pulseaudio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We put this into a pre-configure block so it can be evaluated _after_ platform selection.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # enable optimization (SSE3) on all Intel hardwares
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${build_arch} eq "i386" || ${build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-optimizations=sse3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix building for older macOS versions via MACOSX_DEPLOYMENT_TARGET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # from http://www.w1hkj.com/doku/doku.php?id=howto:building_on_os_x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && [vercmp $macosx_deployment_target 10.12] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant bundle description {Enable the optional macOS bundle of fldigi/flarq} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-mkappbundle.sh.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target appbundle
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/${name}-${version}/src/${name}-${version}/${name}-${version}.app ${destroot}${applications_dir}/${name}.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/${name}-${version}/src/${name}-${version}/flarq-${version_flarq}.app ${destroot}${applications_dir}/flarq.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants-append +bundle
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${master_sites}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/fldigi/files/patch-info.plist.diff b/science/fldigi/files/patch-info.plist.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0727d66
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/fldigi/files/patch-info.plist.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- data/mac/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ data/mac/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,5 +40,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>NSHumanReadableCopyright</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Copyright (c) 2006-2008 Dave Freese W1HKJ and others</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ <key>NSPrincipalClass</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ <string>NSApplication</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ <key>NSMicrophoneUsageDescription</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ <string>Allow for using Sound input devices</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </plist>
</span>\ No newline at end of file
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/fldigi/files/patch-mkappbundle.sh.diff b/science/fldigi/files/patch-mkappbundle.sh.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..51ee61c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/fldigi/files/patch-mkappbundle.sh.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- scripts/mkappbundle.sh.old 2019-04-13 12:59:43.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ scripts/mkappbundle.sh 2019-04-13 13:04:38.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -59,7 +59,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $mkinstalldirs "$appname/Contents/Frameworks"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd "$appname/Contents"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- copy_libs "MacOS/$binary"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ $# -ne 2 ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -125,5 +124,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd "$build"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-echo "creating disk image"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-hdiutil create -ov -srcfolder "$bundle_dir" -format UDZO -tgtimagekey zlib-level=9 "${APPBUNDLE}.dmg"
</span></pre><pre style='margin:0'>
</pre>