Permalink
Showing
with
120 additions
and 0 deletions.
| @@ -0,0 +1,69 @@ | ||
| # -*- 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 flrig | ||
| version 1.3.43 | ||
| categories science | ||
| platforms darwin macosx | ||
| license GPL-3 | ||
| maintainers {@ra1nb0w irh.it:rainbow} openmaintainer | ||
|
|
||
| description FLRIG is a transceiver control program | ||
| long_description FLRIG is a transceiver control program designed to be \ | ||
| used either stand alone or as an adjunct to FLDIGI. The supported \ | ||
| transceivers all have some degree of CAT. The FLRIG user interface \ | ||
| changes to accommodate the degree of CAT support available for the \ | ||
| transceiver in use. | ||
| homepage http://www.w1hkj.com | ||
| master_sites http://www.w1hkj.com/files/${name}/ | ||
|
|
||
| checksums rmd160 38a96670d6278405c6d4adf01c33f3f0bc620cd8 \ | ||
| sha256 61c29f71e44a417f7a6b0ec35d465a585acda6c57dacddff83edfc25b73e24c7 \ | ||
| size 792283 | ||
|
|
||
| depends_build-append \ | ||
| port:pkgconfig | ||
|
|
||
| depends_lib-append \ | ||
| path:lib/libfltk.dylib:fltk \ | ||
| port:libpng | ||
|
|
||
| # waiting upstream merge | ||
| patchfiles-append \ | ||
| patch-info.plist.diff \ | ||
| patch-timeops.cxx.diff | ||
|
|
||
| # 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 | ||
| } | ||
| } | ||
|
|
||
| default_variants-append +bundle | ||
|
|
||
| livecheck.type regex | ||
| livecheck.url ${master_sites} | ||
| livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
| @@ -0,0 +1,11 @@ | ||
| --- data/mac/Info.plist.in | ||
| +++ data/mac/Info.plist.in | ||
| @@ -40,5 +40,8 @@ | ||
|
|
||
| <key>NSHumanReadableCopyright</key> | ||
| <string>Copyright (c) 2009 Dave Freese W1HKJ</string> | ||
| + | ||
| + <key>NSPrincipalClass</key> | ||
| + <string>NSApplication</string> | ||
| </dict> | ||
| </plist> |
| @@ -0,0 +1,22 @@ | ||
| --- scripts/mkappbundle.sh.old 2019-04-13 15:04:01.000000000 +0200 | ||
| +++ scripts/mkappbundle.sh 2019-04-13 15:04:20.000000000 +0200 | ||
| @@ -64,8 +64,6 @@ | ||
| $mkinstalldirs "$appname/Contents/Frameworks" | ||
| cd "$appname/Contents" | ||
|
|
||
| - copy_libs "MacOS/$binary" | ||
| - | ||
| } | ||
|
|
||
| #======================================================================= | ||
| @@ -117,10 +115,3 @@ | ||
| bundle | ||
|
|
||
| cd "$build" | ||
| - | ||
| -echo "creating disk image" | ||
| - | ||
| -echo " source: " $bundle_dir | ||
| -echo " target: " ${APPBUNDLE}.dmg | ||
| - | ||
| -hdiutil create -ov -srcfolder "$bundle_dir" -format UDZO -tgtimagekey zlib-level=9 "${APPBUNDLE}.dmg" |
| @@ -0,0 +1,18 @@ | ||
| --- src/support/timeops.cxx.old 2019-04-18 16:26:23.000000000 +0200 | ||
| +++ src/support/timeops.cxx 2019-04-18 16:26:49.000000000 +0200 | ||
| @@ -34,12 +34,14 @@ | ||
| #if !HAVE_CLOCK_GETTIME | ||
| # ifdef __APPLE__ | ||
| # include <mach/mach_time.h> | ||
| +# define CLOCK_REALTIME 0 | ||
| +# define CLOCK_MONOTONIC 6 | ||
| # endif | ||
| # if TIME_WITH_SYS_TIME | ||
| # include <sys/time.h> | ||
| # endif | ||
| # include <errno.h> | ||
| -int clock_gettime(clockid_t clock_id, struct timespec* tp) | ||
| +int clock_gettime(clock_id_t clock_id, struct timespec* tp) | ||
| { | ||
| if (clock_id == CLOCK_REALTIME) { | ||
| struct timeval t; |