comms/hamlib: Update to 4.4

- Some patches not needed now due to adrian@ patches sent upstream.

- Additional changes by @takefu added RIG_FUNC_SEND_VOICE_MEM from git

For a complete log of changes to Hamlib, please visit:

http://sourceforge.net/p/hamlib/code/commit_browser

Major changes in 4.0 affecting usage
Most rig model numbers have changed
RIG_LEVEL_VOX has been deprecated and replaced by RIG_LEVEL_VOXDELAY
rigctl 'f' command now returns VFO argument too
rigctl 'y' and 'Y' command now take/show antenna argument and option.
range_list items are undergoing changes towards a different model TBD
RTS/DTR PTT sharing is off by default now -- use serial_share=1 option to
enable

PR:		ports/261105
Reported by:	takefu@airport.gm
This commit is contained in:
Diane Bruce
2022-01-11 20:06:38 -05:00
parent 1472128ffc
commit 763fc7004c
6 changed files with 15 additions and 55 deletions

View File

@@ -1,8 +1,7 @@
# Created by: Sebastian Yepes <esn@x123.info>
PORTNAME= hamlib
PORTVERSION= 4.3.1
PORTREVISION= 1
PORTVERSION= 4.4
CATEGORIES= comms hamradio
MASTER_SITES= SF
@@ -16,14 +15,12 @@ LIB_DEPENDS= libltdl.so:devel/libltdl
USES= autoreconf gnome libtool:keepla localbase:ldflags pathfix perl5 pkgconfig python \
readline shebangfix tcl
USE_PYTHON= py3kplist
USE_PERL5= build run
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_PERL5= build run
USE_PYTHON= py3kplist
# $TCL_INCLUDE_SPEC
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
SHEBANG_FILES= bindings/perltest.pl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl-binding \
@@ -31,9 +28,10 @@ CONFIGURE_ARGS= --with-perl-binding \
--with-libusb \
--with-python-binding
CONFIGURE_ENV= LIBUSB_LIBS="-lusb"
PLIST_SUB= VER=${PORTVERSION} TCL_VER=${TCL_VER}
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
PLIST_SUB= VER=${PORTVERSION} TCL_VER=${TCL_VER}
OPTIONS_DEFINE= DOCS
post-patch:

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1636328018
SHA256 (hamlib-4.3.1.tar.gz) = 3437386dfdd2314f108cf35f1527b20d784256b76633d216a50de94f4045a730
SIZE (hamlib-4.3.1.tar.gz) = 2356944
TIMESTAMP = 1641893139
SHA256 (hamlib-4.4.tar.gz) = 8bf0107b071f52f08587f38e2dee8a7848de1343435b326f8f66d95e1f8a2487
SIZE (hamlib-4.4.tar.gz) = 2401399

View File

@@ -1,11 +0,0 @@
--- configure.ac.orig 2016-12-31 20:01:25 UTC
+++ configure.ac
@@ -87,7 +87,7 @@ AC_PROG_INSTALL
AC_PROG_LN_S
# TODO: check whether CXX is functional
-AC_CHECK_PROG([cf_with_cxx], ["${CXX}"], [yes], [no])
+AC_PATH_PROG([cf_with_cxx], ["${CXX}"], [yes], [no])
AM_CONDITIONAL([ENABLE_CXX], [test x"${cf_with_cxx}" = "xyes"])

View File

@@ -1,4 +1,4 @@
--- hamlib.pc.in.orig 2016-12-31 20:01:25 UTC
--- hamlib.pc.in.orig 2021-12-03 00:09:30 UTC
+++ hamlib.pc.in
@@ -7,7 +7,6 @@ Name: @PACKAGE_NAME@
Description: Library to control radio and rotator equipment.

View File

@@ -1,29 +0,0 @@
--- tests/testlibusb.c 2021-11-30 22:59:53.050103000 -0500
+++ tests/testlibusb.c 2021-11-30 23:03:26.187330000 -0500
@@ -113,7 +113,9 @@
printf(" wSpeedSupported: %u\n", ss_usb_cap->wSpeedSupported);
printf(" bFunctionalitySupport: %u\n", ss_usb_cap->bFunctionalitySupport);
printf(" bU1devExitLat: %u\n", ss_usb_cap->bU1DevExitLat);
+#if !defined(__FreeBSD__)
printf(" bU2devExitLat: %u\n", ss_usb_cap->bU2DevExitLat);
+#endif
}
static void print_bos(libusb_device_handle *handle)
@@ -131,6 +133,7 @@
printf(" Binary Object Store (BOS):\n");
printf(" wTotalLength: %u\n", bos->wTotalLength);
+#if !defined(__FreeBSD__)
printf(" bNumDeviceCaps: %u\n", bos->bNumDeviceCaps);
for (i = 0; i < bos->bNumDeviceCaps; i++)
@@ -168,7 +171,7 @@
libusb_free_ss_usb_device_capability_descriptor(ss_dev_cap);
}
}
-
+#endif
libusb_free_bos_descriptor(bos);
}

View File

@@ -22,12 +22,12 @@ lib/libhamlib++.a
lib/libhamlib++.la
lib/libhamlib++.so
lib/libhamlib++.so.4
lib/libhamlib++.so.4.0.3
lib/libhamlib++.so.4.0.4
lib/libhamlib.a
lib/libhamlib.la
lib/libhamlib.so
lib/libhamlib.so.4
lib/libhamlib.so.4.0.3
lib/libhamlib.so.4.0.4
%%SITE_ARCH%%/Hamlib.pm
%%SITE_ARCH%%/auto/Hamlib/Hamlib.so
%%SITE_ARCH%%/perltest.pl
@@ -35,7 +35,9 @@ lib/libhamlib.so.4.0.3
%%PYTHON_SITELIBDIR%%/_Hamlib.a
%%PYTHON_SITELIBDIR%%/_Hamlib.la
%%PYTHON_SITELIBDIR%%/_Hamlib.so
lib/tcl%%TCL_VER%%/Hamlib/hamlibtcl-4.3.so
%%PYTHON_SITELIBDIR%%/__pycache__/Hamlib%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/__pycache__/Hamlib%%PYTHON_EXT_SUFFIX%%.pyc
lib/tcl%%TCL_VER%%/Hamlib/hamlibtcl-%%VER%%.so
lib/tcl%%TCL_VER%%/Hamlib/hamlibtcl.a
lib/tcl%%TCL_VER%%/Hamlib/hamlibtcl.la
lib/tcl%%TCL_VER%%/Hamlib/hamlibtcl.so