summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2011-02-06 08:32:06 +0000
committerjnemeth <jnemeth@pkgsrc.org>2011-02-06 08:32:06 +0000
commit290d1b731a618714d53bb13162024175be1fb9eb (patch)
treed9df0cd0165c3d956842fd66e40ce2ca178cfdfd
parent3028b045a1669c27921e5979eaa807a1dbf476f8 (diff)
downloadpkgsrc-290d1b731a618714d53bb13162024175be1fb9eb.tar.gz
SpanDSP is a library of DSP functions for telephony, in the 8000
sample per second world of E1s, T1s, and higher order PCM channels. It contains low level functions, such as basic filters. It also contains higher level functions, such as cadenced supervisory tone detection, and a complete software FAX machine. The software has been designed to avoid intellectual property issues, using mature techniques where all relevant patents have expired. See the file DueDiligence for important information about these intellectual property issues.
-rw-r--r--comms/spandsp/DESCR9
-rw-r--r--comms/spandsp/Makefile30
-rw-r--r--comms/spandsp/PLIST147
-rw-r--r--comms/spandsp/buildlink3.mk14
-rw-r--r--comms/spandsp/distinfo7
-rw-r--r--comms/spandsp/patches/patch-aa22
-rw-r--r--comms/spandsp/patches/patch-ab22
7 files changed, 251 insertions, 0 deletions
diff --git a/comms/spandsp/DESCR b/comms/spandsp/DESCR
new file mode 100644
index 00000000000..71ba5b44e85
--- /dev/null
+++ b/comms/spandsp/DESCR
@@ -0,0 +1,9 @@
+SpanDSP is a library of DSP functions for telephony, in the 8000
+sample per second world of E1s, T1s, and higher order PCM channels.
+It contains low level functions, such as basic filters. It also
+contains higher level functions, such as cadenced supervisory tone
+detection, and a complete software FAX machine. The software has
+been designed to avoid intellectual property issues, using mature
+techniques where all relevant patents have expired. See the file
+DueDiligence for important information about these intellectual
+property issues.
diff --git a/comms/spandsp/Makefile b/comms/spandsp/Makefile
new file mode 100644
index 00000000000..3bd9acc1f47
--- /dev/null
+++ b/comms/spandsp/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+#
+
+DISTNAME= spandsp-0.0.6pre18
+CATEGORIES= comms
+MASTER_SITES= http://www.soft-switch.org/downloads/spandsp/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc_users@NetBSD.org
+HOMEPAGE= http://www.soft-switch.org/downloads/spandsp/
+COMMENT= Library of DSP functions for telephony
+LICENSE= gnu-lgpl-v2.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/spandsp-0.0.6
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+
+PKGCONFIG_OVERRIDE+= spandsp.pc.in
+
+INSTALLATION_DIRS= share/doc/${PKGBASE}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/DueDiligence ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/comms/spandsp/PLIST b/comms/spandsp/PLIST
new file mode 100644
index 00000000000..a81daaf4101
--- /dev/null
+++ b/comms/spandsp/PLIST
@@ -0,0 +1,147 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+include/spandsp.h
+include/spandsp/adsi.h
+include/spandsp/arctan2.h
+include/spandsp/async.h
+include/spandsp/at_interpreter.h
+include/spandsp/awgn.h
+include/spandsp/bell_r2_mf.h
+include/spandsp/bert.h
+include/spandsp/biquad.h
+include/spandsp/bit_operations.h
+include/spandsp/bitstream.h
+include/spandsp/complex.h
+include/spandsp/complex_filters.h
+include/spandsp/complex_vector_float.h
+include/spandsp/complex_vector_int.h
+include/spandsp/crc.h
+include/spandsp/dc_restore.h
+include/spandsp/dds.h
+include/spandsp/dtmf.h
+include/spandsp/echo.h
+include/spandsp/expose.h
+include/spandsp/fast_convert.h
+include/spandsp/fax.h
+include/spandsp/fax_modems.h
+include/spandsp/fir.h
+include/spandsp/fsk.h
+include/spandsp/g168models.h
+include/spandsp/g711.h
+include/spandsp/g722.h
+include/spandsp/g726.h
+include/spandsp/gsm0610.h
+include/spandsp/hdlc.h
+include/spandsp/ima_adpcm.h
+include/spandsp/image_translate.h
+include/spandsp/logging.h
+include/spandsp/lpc10.h
+include/spandsp/modem_connect_tones.h
+include/spandsp/modem_echo.h
+include/spandsp/noise.h
+include/spandsp/oki_adpcm.h
+include/spandsp/playout.h
+include/spandsp/plc.h
+include/spandsp/power_meter.h
+include/spandsp/private/adsi.h
+include/spandsp/private/async.h
+include/spandsp/private/at_interpreter.h
+include/spandsp/private/awgn.h
+include/spandsp/private/bell_r2_mf.h
+include/spandsp/private/bert.h
+include/spandsp/private/bitstream.h
+include/spandsp/private/dtmf.h
+include/spandsp/private/echo.h
+include/spandsp/private/fax.h
+include/spandsp/private/fax_modems.h
+include/spandsp/private/fsk.h
+include/spandsp/private/g711.h
+include/spandsp/private/g722.h
+include/spandsp/private/g726.h
+include/spandsp/private/gsm0610.h
+include/spandsp/private/hdlc.h
+include/spandsp/private/ima_adpcm.h
+include/spandsp/private/image_translate.h
+include/spandsp/private/logging.h
+include/spandsp/private/lpc10.h
+include/spandsp/private/modem_connect_tones.h
+include/spandsp/private/modem_echo.h
+include/spandsp/private/noise.h
+include/spandsp/private/oki_adpcm.h
+include/spandsp/private/queue.h
+include/spandsp/private/schedule.h
+include/spandsp/private/sig_tone.h
+include/spandsp/private/silence_gen.h
+include/spandsp/private/super_tone_rx.h
+include/spandsp/private/super_tone_tx.h
+include/spandsp/private/swept_tone.h
+include/spandsp/private/t30.h
+include/spandsp/private/t30_dis_dtc_dcs_bits.h
+include/spandsp/private/t31.h
+include/spandsp/private/t38_core.h
+include/spandsp/private/t38_gateway.h
+include/spandsp/private/t38_non_ecm_buffer.h
+include/spandsp/private/t38_terminal.h
+include/spandsp/private/t4_rx.h
+include/spandsp/private/t4_t6_decode.h
+include/spandsp/private/t4_t6_encode.h
+include/spandsp/private/t4_tx.h
+include/spandsp/private/time_scale.h
+include/spandsp/private/timezone.h
+include/spandsp/private/tone_detect.h
+include/spandsp/private/tone_generate.h
+include/spandsp/private/v17rx.h
+include/spandsp/private/v17tx.h
+include/spandsp/private/v18.h
+include/spandsp/private/v22bis.h
+include/spandsp/private/v27ter_rx.h
+include/spandsp/private/v27ter_tx.h
+include/spandsp/private/v29rx.h
+include/spandsp/private/v29tx.h
+include/spandsp/private/v42.h
+include/spandsp/private/v42bis.h
+include/spandsp/private/v8.h
+include/spandsp/queue.h
+include/spandsp/saturated.h
+include/spandsp/schedule.h
+include/spandsp/sig_tone.h
+include/spandsp/silence_gen.h
+include/spandsp/super_tone_rx.h
+include/spandsp/super_tone_tx.h
+include/spandsp/swept_tone.h
+include/spandsp/t30.h
+include/spandsp/t30_api.h
+include/spandsp/t30_fcf.h
+include/spandsp/t30_logging.h
+include/spandsp/t31.h
+include/spandsp/t35.h
+include/spandsp/t38_core.h
+include/spandsp/t38_gateway.h
+include/spandsp/t38_non_ecm_buffer.h
+include/spandsp/t38_terminal.h
+include/spandsp/t4_rx.h
+include/spandsp/t4_t6_decode.h
+include/spandsp/t4_t6_encode.h
+include/spandsp/t4_tx.h
+include/spandsp/telephony.h
+include/spandsp/time_scale.h
+include/spandsp/timezone.h
+include/spandsp/timing.h
+include/spandsp/tone_detect.h
+include/spandsp/tone_generate.h
+include/spandsp/v17rx.h
+include/spandsp/v17tx.h
+include/spandsp/v18.h
+include/spandsp/v22bis.h
+include/spandsp/v27ter_rx.h
+include/spandsp/v27ter_tx.h
+include/spandsp/v29rx.h
+include/spandsp/v29tx.h
+include/spandsp/v42.h
+include/spandsp/v42bis.h
+include/spandsp/v8.h
+include/spandsp/vector_float.h
+include/spandsp/vector_int.h
+include/spandsp/version.h
+lib/libspandsp.la
+lib/pkgconfig/spandsp.pc
+share/doc/spandsp/DueDiligence
diff --git a/comms/spandsp/buildlink3.mk b/comms/spandsp/buildlink3.mk
new file mode 100644
index 00000000000..8b8b2ea83fc
--- /dev/null
+++ b/comms/spandsp/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+
+BUILDLINK_TREE+= spandsp
+
+.if !defined(SPANDSP_BUILDLINK3_MK)
+SPANDSP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.spandsp+= spandsp>=0.0.6pre18
+BUILDLINK_PKGSRCDIR.spandsp?= ../../comms/spandsp
+
+.include "../../graphics/tiff/buildlink3.mk"
+.endif # SPANDSP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -spandsp
diff --git a/comms/spandsp/distinfo b/comms/spandsp/distinfo
new file mode 100644
index 00000000000..1470dc94df3
--- /dev/null
+++ b/comms/spandsp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+
+SHA1 (spandsp-0.0.6pre18.tgz) = 66d85049ad3942471e0ef5e9d9312c4d0a9dd4f8
+RMD160 (spandsp-0.0.6pre18.tgz) = cfbce55ab6fae0b6e433af00f020930f9d0bd300
+Size (spandsp-0.0.6pre18.tgz) = 3241122 bytes
+SHA1 (patch-aa) = 808f65446ad04343096d7a25aeec0b26047833db
+SHA1 (patch-ab) = 547058f6a9983a0b61ce674bac712c1ed8767900
diff --git a/comms/spandsp/patches/patch-aa b/comms/spandsp/patches/patch-aa
new file mode 100644
index 00000000000..c6f3f7864b5
--- /dev/null
+++ b/comms/spandsp/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+
+--- configure.orig 2011-02-06 01:41:29.000000000 +0000
++++ configure
+@@ -26914,7 +26914,7 @@ fi
+
+ done
+
+-if test "${build}" == "${host}"
++if test "${build}" = "${host}"
+ then
+
+ for ac_header in X11/X.h
+@@ -28544,7 +28544,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+-if test "${build}" == "${host}"
++if test "${build}" = "${host}"
+ then
+ case "${host}" in
+ x86_64-*)
diff --git a/comms/spandsp/patches/patch-ab b/comms/spandsp/patches/patch-ab
new file mode 100644
index 00000000000..d97892939f4
--- /dev/null
+++ b/comms/spandsp/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2011/02/06 08:32:06 jnemeth Exp $
+
+--- unpack_gsm0610_data.sh.orig 2010-07-24 16:28:33.000000000 +0000
++++ unpack_gsm0610_data.sh
+@@ -53,7 +53,7 @@ else
+ cd gsm0610
+ fi
+
+-if [ $1x == --no-exe-runx ]
++if [ $1x = --no-exe-runx ]
+ then
+ # Run the .exe files, which should be here
+ ./FR_A.EXE
+@@ -77,7 +77,7 @@ rm -rf READ_FRA.TXT
+ rm -rf ACTION
+ rm -rf unpacked
+
+-if [ $1x == --no-exex ]
++if [ $1x = --no-exex ]
+ then
+ # We need to prepare the .exe files to be run separately
+ rm -rf *.INP