Sun Nov 29 23:12:43 2020 UTC ()
ham/lpcnetfreedv: new package to support freedv


(dbj)
diff -r1.6481 -r1.6482 pkgsrc/doc/CHANGES-2020
diff -r1.47 -r1.48 pkgsrc/ham/Makefile
diff -r0 -r1.1 pkgsrc/ham/lpcnetfreedv/DESCR
diff -r0 -r1.1 pkgsrc/ham/lpcnetfreedv/Makefile
diff -r0 -r1.1 pkgsrc/ham/lpcnetfreedv/PLIST
diff -r0 -r1.1 pkgsrc/ham/lpcnetfreedv/buildlink3.mk
diff -r0 -r1.1 pkgsrc/ham/lpcnetfreedv/distinfo

cvs diff -r1.6481 -r1.6482 pkgsrc/doc/CHANGES-2020 (expand / switch to unified diff)

--- pkgsrc/doc/CHANGES-2020 2020/11/29 23:10:24 1.6481
+++ pkgsrc/doc/CHANGES-2020 2020/11/29 23:12:43 1.6482
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: CHANGES-2020,v 1.6481 2020/11/29 23:10:24 dbj Exp $ 1$NetBSD: CHANGES-2020,v 1.6482 2020/11/29 23:12:43 dbj Exp $
2 2
3Changes to the packages collection and infrastructure in 2020: 3Changes to the packages collection and infrastructure in 2020:
4 4
5 Updated devel/p5-Date-Manip to 6.79 [mef 2020-01-01] 5 Updated devel/p5-Date-Manip to 6.79 [mef 2020-01-01]
6 Updated devel/p5-IO-Async to 0.75 [mef 2020-01-01] 6 Updated devel/p5-IO-Async to 0.75 [mef 2020-01-01]
7 Updated devel/samurai to 1.0 [ng0 2020-01-01] 7 Updated devel/samurai to 1.0 [ng0 2020-01-01]
8 Updated www/nsm to 1.25 [ng0 2020-01-01] 8 Updated www/nsm to 1.25 [ng0 2020-01-01]
9 Updated textproc/json-yaml to 1.2.1 [sjmulder 2020-01-01] 9 Updated textproc/json-yaml to 1.2.1 [sjmulder 2020-01-01]
10 Updated security/doas to 6.2p4 [ng0 2020-01-01] 10 Updated security/doas to 6.2p4 [ng0 2020-01-01]
11 Updated devel/p5-B-Keywords to 1.21 [mef 2020-01-01] 11 Updated devel/p5-B-Keywords to 1.21 [mef 2020-01-01]
12 Updated devel/p5-EV to 4.31 [mef 2020-01-01] 12 Updated devel/p5-EV to 4.31 [mef 2020-01-01]
13 Updated security/sudo to 1.8.30 [kim 2020-01-01] 13 Updated security/sudo to 1.8.30 [kim 2020-01-01]
14 Removed graphics/qiviewer [kamil 2020-01-01] 14 Removed graphics/qiviewer [kamil 2020-01-01]
@@ -9443,13 +9443,14 @@ Changes to the packages collection and i @@ -9443,13 +9443,14 @@ Changes to the packages collection and i
9443 Updated devel/dconf-editor to 3.38.2 [bsiegert 2020-11-29] 9443 Updated devel/dconf-editor to 3.38.2 [bsiegert 2020-11-29]
9444 Updated graphics/ImageMagick to 7.0.10.44 [wiz 2020-11-29] 9444 Updated graphics/ImageMagick to 7.0.10.44 [wiz 2020-11-29]
9445 Updated textproc/pugixml to 1.11 [wiz 2020-11-29] 9445 Updated textproc/pugixml to 1.11 [wiz 2020-11-29]
9446 Updated x11/libxkbcommon to 1.0.3 [wiz 2020-11-29] 9446 Updated x11/libxkbcommon to 1.0.3 [wiz 2020-11-29]
9447 Updated devel/ninja-build to 1.10.2 [wiz 2020-11-29] 9447 Updated devel/ninja-build to 1.10.2 [wiz 2020-11-29]
9448 Updated devel/py-hypothesis to 5.41.4 [wiz 2020-11-29] 9448 Updated devel/py-hypothesis to 5.41.4 [wiz 2020-11-29]
9449 Updated sysutils/py-setproctitle to 1.2 [wiz 2020-11-29] 9449 Updated sysutils/py-setproctitle to 1.2 [wiz 2020-11-29]
9450 Updated converters/utf8proc to 2.6.0 [wiz 2020-11-29] 9450 Updated converters/utf8proc to 2.6.0 [wiz 2020-11-29]
9451 Updated security/mozilla-rootcerts-openssl to 2.5 [wiz 2020-11-29] 9451 Updated security/mozilla-rootcerts-openssl to 2.5 [wiz 2020-11-29]
9452 Added x11/unibar version 0.1.3 [pin 2020-11-29] 9452 Added x11/unibar version 0.1.3 [pin 2020-11-29]
9453 Updated shells/oksh to 6.8.1 [schmonz 2020-11-29] 9453 Updated shells/oksh to 6.8.1 [schmonz 2020-11-29]
9454 Updated sysutils/ddrescue to 1.25 [dbj 2020-11-29] 9454 Updated sysutils/ddrescue to 1.25 [dbj 2020-11-29]
9455 Updated ham/codec2 to 0.9.2 [dbj 2020-11-29] 9455 Updated ham/codec2 to 0.9.2 [dbj 2020-11-29]
 9456 Added ham/lpcnetfreedv-0.2 [dbj 2020-11-29]

cvs diff -r1.47 -r1.48 pkgsrc/ham/Makefile (expand / switch to unified diff)

--- pkgsrc/ham/Makefile 2020/08/30 08:40:33 1.47
+++ pkgsrc/ham/Makefile 2020/11/29 23:12:43 1.48
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.47 2020/08/30 08:40:33 tnn Exp $ 1# $NetBSD: Makefile,v 1.48 2020/11/29 23:12:43 dbj Exp $
2# 2#
3 3
4COMMENT= Wireless communication tools and applications 4COMMENT= Wireless communication tools and applications
5 5
6SUBDIR+= 7plus 6SUBDIR+= 7plus
7SUBDIR+= chirp 7SUBDIR+= chirp
8SUBDIR+= codec2 8SUBDIR+= codec2
9SUBDIR+= cwtext 9SUBDIR+= cwtext
10SUBDIR+= dpbox 10SUBDIR+= dpbox
11SUBDIR+= fl_logbook 11SUBDIR+= fl_logbook
12SUBDIR+= fldigi 12SUBDIR+= fldigi
13SUBDIR+= flxmlrpc 13SUBDIR+= flxmlrpc
14SUBDIR+= freedv 14SUBDIR+= freedv
@@ -29,26 +29,27 @@ SUBDIR+= gnuradio-video-sdl @@ -29,26 +29,27 @@ SUBDIR+= gnuradio-video-sdl
29SUBDIR+= gnuradio-vocoder 29SUBDIR+= gnuradio-vocoder
30SUBDIR+= gnuradio-wavelet 30SUBDIR+= gnuradio-wavelet
31SUBDIR+= gnuradio-zeromq 31SUBDIR+= gnuradio-zeromq
32SUBDIR+= gpredict 32SUBDIR+= gpredict
33SUBDIR+= gr-fcdproplus 33SUBDIR+= gr-fcdproplus
34SUBDIR+= gr-osmosdr 34SUBDIR+= gr-osmosdr
35SUBDIR+= grig 35SUBDIR+= grig
36SUBDIR+= hackrf 36SUBDIR+= hackrf
37SUBDIR+= hamlib 37SUBDIR+= hamlib
38SUBDIR+= kalibrate-hackrf 38SUBDIR+= kalibrate-hackrf
39SUBDIR+= kalibrate-rtl 39SUBDIR+= kalibrate-rtl
40SUBDIR+= libmirisdr 40SUBDIR+= libmirisdr
41SUBDIR+= locator 41SUBDIR+= locator
 42SUBDIR+= lpcnetfreedv
42SUBDIR+= nec2c 43SUBDIR+= nec2c
43SUBDIR+= osmo-sdr 44SUBDIR+= osmo-sdr
44SUBDIR+= predict 45SUBDIR+= predict
45SUBDIR+= py-soapy-sdr 46SUBDIR+= py-soapy-sdr
46SUBDIR+= rtl-sdr 47SUBDIR+= rtl-sdr
47SUBDIR+= soapy-sdr 48SUBDIR+= soapy-sdr
48SUBDIR+= tfkiss 49SUBDIR+= tfkiss
49SUBDIR+= tlf 50SUBDIR+= tlf
50SUBDIR+= tnt 51SUBDIR+= tnt
51SUBDIR+= trustedQSL 52SUBDIR+= trustedQSL
52SUBDIR+= uhd 53SUBDIR+= uhd
53SUBDIR+= wwl 54SUBDIR+= wwl
54SUBDIR+= xdx 55SUBDIR+= xdx

File Added: pkgsrc/ham/lpcnetfreedv/DESCR
Experimental version of LPCNet that has been used to develop FreeDV
2020 - a HF radio Digial Voice mode for over the air experimentation
with Neural Net speech coding. Possibly the first use of Neural Net
speech coding in real world operation.

From https://people.xiph.org/~jm/demo/lpcnet/ :

Work in progress software for researching low CPU complexity
algorithms for speech synthesis and compression by applying Linear
Prediction techniques to WaveRNN. High quality speech can be
synthesised on regular CPUs (around 3 GFLOP) with SIMD support (AVX,
AVX2/FMA, NEON currently supported). The code also supports very low
bitrate compression at 1.6 kb/s.

File Added: pkgsrc/ham/lpcnetfreedv/Makefile
# $NetBSD: Makefile,v 1.1 2020/11/29 23:12:43 dbj Exp $

# https://github.com/drowe67/LPCNet/archive/v0.2.tar.gz
# http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz
DISTNAME=	lpcnetfreedv-0.2
CATEGORIES=	ham
NNDISTFILE=	lpcnet_191005_v1.0.tgz
DISTFILES=	${DEFAULT_DISTFILES} ${NNDISTFILE}
SITES.${NNDISTFILE}=	http://rowetel.com/downloads/deep/
MASTER_SITES=	${MASTER_SITE_GITHUB:=drowe67/}
GITHUB_PROJECT=	LPCNet
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	dbj@NetBSD.org
#HOMEPAGE=	https://people.xiph.org/~jm/demo/lpcnet/
HOMEPAGE=	https://github.com/drowe67/LPCNet
COMMENT=	LPCNet library for use by FreeDV
LICENSE=	modified-bsd

USE_LANGUAGES=	c
USE_TOOLS+=	tar pkg-config

WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}

USE_CMAKE=	yes
CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..
CMAKE_ARGS+=    -DDISABLE_CPU_OPTIMIZATION=TRUE
#CMAKE_ARGS+=    -DAVX2=1 -DAVX=1
#CMAKE_ARGS+=    -DNEON=1

pre-configure:
	${MKDIR} ${WRKSRC}/build
	${CP} ${DISTDIR}/${NNDISTFILE} ${WRKSRC}/build/

.include "../../ham/codec2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/ham/lpcnetfreedv/PLIST
@comment $NetBSD: PLIST,v 1.1 2020/11/29 23:12:43 dbj Exp $
bin/lpcnet_dec
bin/lpcnet_enc
include/lpcnet/lpcnet_freedv.h
lib/cmake/lpcnetfreedv/lpcnetfreedv-config-noconfig.cmake
lib/cmake/lpcnetfreedv/lpcnetfreedv-config.cmake
lib/liblpcnetfreedv.so

File Added: pkgsrc/ham/lpcnetfreedv/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2020/11/29 23:12:43 dbj Exp $

BUILDLINK_TREE+=	lpcnetfreedv

.if !defined(LPCNETFREEDV_BUILDLINK3_MK)
LPCNETFREEDV_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.lpcnetfreedv+=	lpcnetfreedv>=0.2
BUILDLINK_PKGSRCDIR.lpcnetfreedv?=	../../ham/lpcnetfreedv

BUILDLINK_INCDIRS.lpcnetfreedv+=	include/lpcnet

.endif	# LPCNETFREEDV_BUILDLINK3_MK

BUILDLINK_TREE+=	-lpcnetfreedv

File Added: pkgsrc/ham/lpcnetfreedv/distinfo
$NetBSD: distinfo,v 1.1 2020/11/29 23:12:43 dbj Exp $

SHA1 (lpcnet_191005_v1.0.tgz) = 9e588a52b56aed7c0909cab802207b37311fbb21
RMD160 (lpcnet_191005_v1.0.tgz) = 2f99dc863a508aa3e0eebed0b8db0bfb5b7f1898
SHA512 (lpcnet_191005_v1.0.tgz) = ffa52c492f2ef1ca09c34b321b36d9dd26f6d3a2e807f4601858b45a1c6159b45b846bfaf3d37c74acead955c0ad47c2d06cb08b8347d5ec441cd751f2110167
Size (lpcnet_191005_v1.0.tgz) = 18396516 bytes
SHA1 (lpcnetfreedv-0.2.tar.gz) = 2b1128c4f9805d0776d748d4b12910cadd96b0f5
RMD160 (lpcnetfreedv-0.2.tar.gz) = 85f989b6f364420887f9e13ae3e4a8669541862b
SHA512 (lpcnetfreedv-0.2.tar.gz) = 3fa581512b7431bf4df41a0abc0c4f2b262d57f1bf4756dfb23c774393dccd90bb9f7f874e5192aaabd17ed780007602f363d545d3cfb53bb9ee7022ed4a966c
Size (lpcnetfreedv-0.2.tar.gz) = 33010807 bytes