summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2020-11-29 23:12:43 +0000
committerdbj <dbj@pkgsrc.org>2020-11-29 23:12:43 +0000
commit2e056c303d91e7c223d19df924243bd59de05d16 (patch)
treed6b8d0765777a4808f779496e2b758c6cc9ec77b /ham
parent1a2dd0dc4d40e6c78f24aa68afde3f02ebea25fb (diff)
downloadpkgsrc-2e056c303d91e7c223d19df924243bd59de05d16.tar.gz
ham/lpcnetfreedv: new package to support freedv
Diffstat (limited to 'ham')
-rw-r--r--ham/Makefile3
-rw-r--r--ham/lpcnetfreedv/DESCR13
-rw-r--r--ham/lpcnetfreedv/Makefile37
-rw-r--r--ham/lpcnetfreedv/PLIST7
-rw-r--r--ham/lpcnetfreedv/buildlink3.mk15
-rw-r--r--ham/lpcnetfreedv/distinfo10
6 files changed, 84 insertions, 1 deletions
diff --git a/ham/Makefile b/ham/Makefile
index 097fe0a7f0d..9f7dc91cb0b 100644
--- a/ham/Makefile
+++ b/ham/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2020/08/30 08:40:33 tnn Exp $
+# $NetBSD: Makefile,v 1.48 2020/11/29 23:12:43 dbj Exp $
#
COMMENT= Wireless communication tools and applications
@@ -39,6 +39,7 @@ SUBDIR+= kalibrate-hackrf
SUBDIR+= kalibrate-rtl
SUBDIR+= libmirisdr
SUBDIR+= locator
+SUBDIR+= lpcnetfreedv
SUBDIR+= nec2c
SUBDIR+= osmo-sdr
SUBDIR+= predict
diff --git a/ham/lpcnetfreedv/DESCR b/ham/lpcnetfreedv/DESCR
new file mode 100644
index 00000000000..da429796bc7
--- /dev/null
+++ b/ham/lpcnetfreedv/DESCR
@@ -0,0 +1,13 @@
+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.
diff --git a/ham/lpcnetfreedv/Makefile b/ham/lpcnetfreedv/Makefile
new file mode 100644
index 00000000000..238a46062d5
--- /dev/null
+++ b/ham/lpcnetfreedv/Makefile
@@ -0,0 +1,37 @@
+# $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"
diff --git a/ham/lpcnetfreedv/PLIST b/ham/lpcnetfreedv/PLIST
new file mode 100644
index 00000000000..6eaf6218f2c
--- /dev/null
+++ b/ham/lpcnetfreedv/PLIST
@@ -0,0 +1,7 @@
+@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
diff --git a/ham/lpcnetfreedv/buildlink3.mk b/ham/lpcnetfreedv/buildlink3.mk
new file mode 100644
index 00000000000..5ecbd612290
--- /dev/null
+++ b/ham/lpcnetfreedv/buildlink3.mk
@@ -0,0 +1,15 @@
+# $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
diff --git a/ham/lpcnetfreedv/distinfo b/ham/lpcnetfreedv/distinfo
new file mode 100644
index 00000000000..2ce954d0349
--- /dev/null
+++ b/ham/lpcnetfreedv/distinfo
@@ -0,0 +1,10 @@
+$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