aboutsummaryrefslogtreecommitdiffstats
path: root/comms/soundmodem
diff options
context:
space:
mode:
authordb <db@FreeBSD.org>2016-02-21 01:21:29 +0800
committerdb <db@FreeBSD.org>2016-02-21 01:21:29 +0800
commit789541baf8301bb8a6c8f073cb3c04ccc274a93f (patch)
tree0f53a4da460cbf64ebda9c5106b83d611fbb5571 /comms/soundmodem
parent599adea3dd7438f1717ef29ebf9ec29ec26c0ad9 (diff)
downloadfreebsd-ports-gnome-789541baf8301bb8a6c8f073cb3c04ccc274a93f.tar.gz
freebsd-ports-gnome-789541baf8301bb8a6c8f073cb3c04ccc274a93f.tar.zst
freebsd-ports-gnome-789541baf8301bb8a6c8f073cb3c04ccc274a93f.zip
Update to 0.20
Clean up submitted patch to work with system clang compiler Change to new upstream repository PR: ports/206705 Submitted by: takefu@airport.fm
Diffstat (limited to 'comms/soundmodem')
-rw-r--r--comms/soundmodem/Makefile29
-rw-r--r--comms/soundmodem/distinfo4
-rw-r--r--comms/soundmodem/files/patch-configapp_src_Makefile.in24
-rw-r--r--comms/soundmodem/files/patch-configapp_src_main.c11
-rw-r--r--comms/soundmodem/files/patch-configapp_src_soundmodemconfig.811
-rw-r--r--comms/soundmodem/files/patch-configure8
-rw-r--r--comms/soundmodem/files/patch-fsk_gendf9icfilt.cc8
-rw-r--r--comms/soundmodem/files/patch-matlib_mat.hh8
-rw-r--r--comms/soundmodem/files/patch-newqpsk_complex.h65
-rw-r--r--comms/soundmodem/files/patch-newqpsk_fec.h20
-rw-r--r--comms/soundmodem/files/patch-newqpsk_filter-i386.h4
-rw-r--r--comms/soundmodem/files/patch-newqpsk_filter.h11
-rw-r--r--comms/soundmodem/files/patch-newqpsk_genfilt.c6
-rw-r--r--comms/soundmodem/files/patch-newqpsk_misc.h80
-rw-r--r--comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c4
-rw-r--r--comms/soundmodem/files/patch-p3dmodem_testcrc.c11
-rw-r--r--comms/soundmodem/files/patch-pammodem_genpamtbl.c4
-rw-r--r--comms/soundmodem/files/patch-pammodem_pammodem.c20
-rw-r--r--comms/soundmodem/files/patch-pskmodem_genpsktbl.c4
-rw-r--r--comms/soundmodem/files/patch-pskmodem_pskmodem.c11
-rw-r--r--comms/soundmodem/files/patch-soundcard_main.c11
-rw-r--r--comms/soundmodem/files/patch-soundcard_modem.h11
-rw-r--r--comms/soundmodem/files/patch-soundcard_ptt.c10
-rw-r--r--comms/soundmodem/files/patch-soundcard_simd.h79
-rw-r--r--comms/soundmodem/files/patch-soundcard_soundmodem.811
-rw-r--r--comms/soundmodem/files/patch-soundcard_winlog.c4
-rw-r--r--comms/soundmodem/files/soundmodem37
-rw-r--r--comms/soundmodem/files/soundmodem.in39
-rw-r--r--comms/soundmodem/pkg-descr2
-rw-r--r--comms/soundmodem/pkg-plist1
30 files changed, 127 insertions, 421 deletions
diff --git a/comms/soundmodem/Makefile b/comms/soundmodem/Makefile
index a9131ffc7628..cc976da0ecba 100644
--- a/comms/soundmodem/Makefile
+++ b/comms/soundmodem/Makefile
@@ -1,17 +1,15 @@
# $FreeBSD$
PORTNAME= soundmodem
-PORTVERSION= 0.18
+PORTVERSION= 0.20
CATEGORIES= comms hamradio
-MASTER_SITES= http://www.baycom.org/~tom/ham/soundmodem/ \
- http://soundmodem.vk4msl.yi.org/ \
- http://pv529.ncsrv.de/soundmodem/ \
- LOCAL/shurd
+MASTER_SITES= http://download.gna.org/soundmodem/
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Amateur Radio sound modem
-LICENSE= GPLv1
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
@@ -20,18 +18,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
USES= gmake pkgconfig gettext
HAS_CONFIGURE= yes
USE_GNOME= gtk20 libxml2
-
-pre-patch:
- @${CP} ${FILESDIR}/soundmodem ${WRKSRC}
+USE_RC_SUBR= soundmodem
+USE_SUBMAKE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
- ${WRKSRC}/soundcard/soundmodem.8 \
- ${WRKSRC}/soundcard/main.c \
- ${WRKSRC}/configapp/src/soundmodemconfig.8 \
- ${WRKSRC}/configapp/src/main.c \
- ${WRKSRC}/soundmodem
-post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/soundmodem ${STAGEDIR}${PREFIX}/etc/rc.d
+ ${REINPLACE_CMD} -e 's|/etc/ax25|${LOCALBASE}/etc|g' \
+ ${WRKSRC}/configapp/src/main.c\
+ ${WRKSRC}/configapp/src/soundmodemconfig.8\
+ ${WRKSRC}/soundcard/soundmodem.8\
+ ${WRKSRC}/soundcard/main.c\
+ ${WRKSRC}/soundmodem.spec
.include <bsd.port.mk>
diff --git a/comms/soundmodem/distinfo b/comms/soundmodem/distinfo
index 0e45bdcda7dd..e714ab91086f 100644
--- a/comms/soundmodem/distinfo
+++ b/comms/soundmodem/distinfo
@@ -1,2 +1,2 @@
-SHA256 (soundmodem-0.18.tar.gz) = f033c1716df1378cda646dbb1c48ea9fb9a068772c6686f2ca411bfa64245c1c
-SIZE (soundmodem-0.18.tar.gz) = 485475
+SHA256 (soundmodem-0.20.tar.gz) = 3f880349cbe4c8e27f02d276b2d3318e6b721cad6c0ab2ba8e2c1768251fd494
+SIZE (soundmodem-0.20.tar.gz) = 507650
diff --git a/comms/soundmodem/files/patch-configapp_src_Makefile.in b/comms/soundmodem/files/patch-configapp_src_Makefile.in
index be23bec4ccdd..ea6501ca6303 100644
--- a/comms/soundmodem/files/patch-configapp_src_Makefile.in
+++ b/comms/soundmodem/files/patch-configapp_src_Makefile.in
@@ -1,15 +1,15 @@
---- configapp/src/Makefile.in.orig 2012-11-07 05:55:36.000000000 -0500
-+++ configapp/src/Makefile.in 2013-12-14 12:09:14.352210905 -0500
-@@ -87,7 +87,7 @@
- COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
- CCLD = $(CC)
--LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(INTLLIBS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
- SOURCES = $(soundmodemconfig_SOURCES)
- DIST_SOURCES = $(soundmodemconfig_SOURCES)
- am__can_run_installinfo = \
-@@ -300,7 +300,7 @@
+--- configapp/src/Makefile.in.orig 2015-05-04 17:59:05 UTC
++++ configapp/src/Makefile.in
+@@ -106,7 +106,7 @@ soundmodemconfig_DEPENDENCIES = ../../so
+ ../../soundcard/libaudioio.a ../../soundcard/libpttio.a \
+ $(MODEMLIBS) ../../matlib/libmat.a ../../libmisc/libmisc.a \
+ ../../soundcard/libcommon.a $(am__DEPENDENCIES_1)
+-soundmodemconfig_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
++soundmodemconfig_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(INTLLIBS)\
+ $(soundmodemconfig_LDFLAGS) $(LDFLAGS) -o $@
+ AM_V_P = $(am__v_P_@AM_V@)
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+@@ -366,7 +366,7 @@ soundmodemconfig_SOURCES = \
soundmodemconfig_LDADD = ../../soundcard/liblog.a ../../soundcard/libaudioio.a ../../soundcard/libpttio.a \
$(MODEMLIBS) ../../matlib/libmat.a ../../libmisc/libmisc.a ../../soundcard/libcommon.a \
diff --git a/comms/soundmodem/files/patch-configapp_src_main.c b/comms/soundmodem/files/patch-configapp_src_main.c
deleted file mode 100644
index 375013c66000..000000000000
--- a/comms/soundmodem/files/patch-configapp_src_main.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- configapp/src/main.c.orig 2010-10-30 11:49:09.000000000 -0500
-+++ configapp/src/main.c 2012-11-05 17:20:25.000000000 -0500
-@@ -359,7 +359,7 @@
- #else /* WIN32 */
-
- static xmlDocPtr doc = NULL;
--static const char *cfgfile = "/etc/ax25/soundmodem.conf";
-+static const char *cfgfile = "%%PREFIX%%/etc/soundmodem.conf";
-
- static xmlNodePtr findconfig(const char *newname)
- {
diff --git a/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8 b/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8
deleted file mode 100644
index 599fe256649b..000000000000
--- a/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8
+++ /dev/null
@@ -1,11 +0,0 @@
---- configapp/src/soundmodemconfig.8.orig Fri Aug 9 16:01:51 2002
-+++ configapp/src/soundmodemconfig.8 Sun Nov 5 21:59:09 2006
-@@ -15,7 +15,7 @@
- .SH DESCRIPTION
- .B soundmodemconfig
- is a GUI tool for creating a configuration file for soundmodem (8).
--The default file name is /etc/ax25/soundmodem.conf, though
-+The default file name is %%PREFIX%%/etc/soundmodem.conf, though
- any other file name may be specified on the command line.
-
-
diff --git a/comms/soundmodem/files/patch-configure b/comms/soundmodem/files/patch-configure
index 34a3253c92c1..21e38e9c67e9 100644
--- a/comms/soundmodem/files/patch-configure
+++ b/comms/soundmodem/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig 2012-11-07 05:55:37.000000000 -0500
-+++ configure 2012-11-07 07:02:34.000000000 -0500
-@@ -844,7 +844,7 @@
+--- configure.orig 2015-05-04 17:59:03 UTC
++++ configure
+@@ -869,7 +869,7 @@ pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
@@ -9,7 +9,7 @@
ac_prev=
ac_dashdash=
-@@ -7265,7 +7265,7 @@
+@@ -7565,7 +7565,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
int
main ()
{
diff --git a/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc b/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc
index 9a4024637918..c1ea5ef9e7d8 100644
--- a/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc
+++ b/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc
@@ -1,6 +1,6 @@
---- fsk/gendf9icfilt.cc.orig 2013-12-13 08:19:49.459920041 -0500
-+++ fsk/gendf9icfilt.cc 2013-12-13 08:43:50.641820677 -0500
-@@ -41,6 +41,8 @@
+--- fsk/gendf9icfilt.cc.orig 2003-01-06 14:28:19 UTC
++++ fsk/gendf9icfilt.cc
+@@ -41,6 +41,8 @@ using namespace std;
#include "getopt.h"
@@ -9,7 +9,7 @@
/* --------------------------------------------------------------------- */
template<typename T> complex<T> rxfilter(T freq)
-@@ -173,7 +175,8 @@
+@@ -173,7 +175,8 @@ static void printfcoeff(ostream& os, uns
printtransferfunc(os, fftsz, over);
else
os << "/* this file is automatically generated, do not edit!! */\n\n";
diff --git a/comms/soundmodem/files/patch-matlib_mat.hh b/comms/soundmodem/files/patch-matlib_mat.hh
index 4884ad08fcef..0fb9f0583436 100644
--- a/comms/soundmodem/files/patch-matlib_mat.hh
+++ b/comms/soundmodem/files/patch-matlib_mat.hh
@@ -1,6 +1,6 @@
---- matlib/mat.hh.orig 2013-12-13 08:25:15.148898287 -0500
-+++ matlib/mat.hh 2013-12-13 08:45:23.061999828 -0500
-@@ -91,36 +91,6 @@
+--- matlib/mat.hh.orig 2003-01-05 19:19:33 UTC
++++ matlib/mat.hh
+@@ -91,36 +91,6 @@ template<typename T> void mmul(T *c, con
memcpy(c, r, d1 * d3 * sizeof(c[0]));
}
@@ -37,7 +37,7 @@
/* Transpose a matrix (a el C^{d1 x d2}, b el C^{d2 x d1}) */
template<typename T> void mtranspose(T *b, const T *a, unsigned int d1, unsigned int d2)
{
-@@ -440,23 +410,6 @@
+@@ -440,23 +410,6 @@ template<typename T> void mlusolve(T *x,
}
}
diff --git a/comms/soundmodem/files/patch-newqpsk_complex.h b/comms/soundmodem/files/patch-newqpsk_complex.h
deleted file mode 100644
index d7617bec6b6e..000000000000
--- a/comms/soundmodem/files/patch-newqpsk_complex.h
+++ /dev/null
@@ -1,65 +0,0 @@
---- newqpsk/complex.h.orig 2008-12-14 09:47:34.000000000 -0500
-+++ newqpsk/complex.h 2013-12-14 17:54:58.000000000 -0500
-@@ -13,7 +13,7 @@
- /*
- * Complex multiplication.
- */
--extern __inline__ complex cmul(complex x, complex y)
-+static __inline__ complex cmul(complex x, complex y)
- {
- complex z;
-
-@@ -27,7 +27,7 @@
- * Complex ... yeah, what??? Returns a complex number that has the
- * properties: |z| = |x| * |y| and arg(z) = arg(y) - arg(x)
- */
--extern __inline__ complex ccor(complex x, complex y)
-+static __inline__ complex ccor(complex x, complex y)
- {
- complex z;
-
-@@ -40,7 +40,7 @@
- /*
- * Real part of the complex ???
- */
--extern __inline__ float ccorI(complex x, complex y)
-+static __inline__ float ccorI(complex x, complex y)
- {
- return x.re * y.re + x.im * y.im;
- }
-@@ -48,7 +48,7 @@
- /*
- * Imaginary part of the complex ???
- */
--extern __inline__ float ccorQ(complex x, complex y)
-+static __inline__ float ccorQ(complex x, complex y)
- {
- return x.re * y.im - x.im * y.re;
- }
-@@ -56,7 +56,7 @@
- /*
- * Modulo (absolute value) of a complex number.
- */
--extern __inline__ float cmod(complex x)
-+static __inline__ float cmod(complex x)
- {
- return sqrt(x.re * x.re + x.im * x.im);
- }
-@@ -64,7 +64,7 @@
- /*
- * Square of the absolute value (power).
- */
--extern __inline__ float cpwr(complex x)
-+static __inline__ float cpwr(complex x)
- {
- return (x.re * x.re + x.im * x.im);
- }
-@@ -72,7 +72,7 @@
- /*
- * Argument of a complex number.
- */
--extern __inline__ float carg(complex x)
-+static __inline__ float carg(complex x)
- {
- return atan2(x.im, x.re);
- }
diff --git a/comms/soundmodem/files/patch-newqpsk_fec.h b/comms/soundmodem/files/patch-newqpsk_fec.h
deleted file mode 100644
index 1b209798ab8d..000000000000
--- a/comms/soundmodem/files/patch-newqpsk_fec.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- newqpsk/fec.h.orig 2002-08-09 15:01:52.000000000 -0500
-+++ newqpsk/fec.h 2013-12-14 17:37:25.000000000 -0500
-@@ -13,7 +13,7 @@
-
- /* --------------------------------------------------------------------- */
-
--extern inline void init_fec(struct fecstate *f)
-+static inline void init_fec(struct fecstate *f)
- {
- switch (f->feclevel) {
- case 0:
-@@ -33,7 +33,7 @@
-
- /* --------------------------------------------------------------------- */
-
--extern inline void init_inlv(struct fecstate *f)
-+static inline void init_inlv(struct fecstate *f)
- {
- int i;
-
diff --git a/comms/soundmodem/files/patch-newqpsk_filter-i386.h b/comms/soundmodem/files/patch-newqpsk_filter-i386.h
index 4d962b6e79bc..33787122f7aa 100644
--- a/comms/soundmodem/files/patch-newqpsk_filter-i386.h
+++ b/comms/soundmodem/files/patch-newqpsk_filter-i386.h
@@ -1,5 +1,5 @@
---- newqpsk/filter-i386.h.orig 2012-11-07 05:41:08.000000000 -0500
-+++ newqpsk/filter-i386.h 2013-12-14 17:39:18.000000000 -0500
+--- newqpsk/filter-i386.h.orig 2015-05-04 17:52:25 UTC
++++ newqpsk/filter-i386.h
@@ -1,7 +1,7 @@
#ifndef _FILTER_I386_H
#define _FILTER_I386_H
diff --git a/comms/soundmodem/files/patch-newqpsk_filter.h b/comms/soundmodem/files/patch-newqpsk_filter.h
deleted file mode 100644
index 5c2bcc7cabe6..000000000000
--- a/comms/soundmodem/files/patch-newqpsk_filter.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- newqpsk/filter.h.orig 2002-08-09 15:01:52.000000000 -0500
-+++ newqpsk/filter.h 2013-12-14 17:39:02.000000000 -0500
-@@ -12,7 +12,7 @@
- /* ---------------------------------------------------------------------- */
-
- #ifndef __HAVE_ARCH_MAC
--extern inline float mac(const float *a, const float *b, unsigned int size)
-+static inline float mac(const float *a, const float *b, unsigned int size)
- {
- float sum = 0;
- unsigned int i;
diff --git a/comms/soundmodem/files/patch-newqpsk_genfilt.c b/comms/soundmodem/files/patch-newqpsk_genfilt.c
index 13ac4a1bbe19..3f7ad8e3f96b 100644
--- a/comms/soundmodem/files/patch-newqpsk_genfilt.c
+++ b/comms/soundmodem/files/patch-newqpsk_genfilt.c
@@ -1,6 +1,6 @@
---- newqpsk/genfilt.c.orig 2014-12-01 09:43:37.000000000 +0000
-+++ newqpsk/genfilt.c 2014-12-01 09:43:45.000000000 +0000
-@@ -18,7 +18,7 @@
+--- newqpsk/genfilt.c.orig 2002-08-09 20:01:52 UTC
++++ newqpsk/genfilt.c
+@@ -18,7 +18,7 @@ int main(int argc, char **argv)
puts("#define _FILTER_I386_H");
puts("#define __HAVE_ARCH_MAC");
diff --git a/comms/soundmodem/files/patch-newqpsk_misc.h b/comms/soundmodem/files/patch-newqpsk_misc.h
deleted file mode 100644
index 8c4ee56dd415..000000000000
--- a/comms/soundmodem/files/patch-newqpsk_misc.h
+++ /dev/null
@@ -1,80 +0,0 @@
---- newqpsk/misc.h.orig 2002-08-09 15:01:52.000000000 -0500
-+++ newqpsk/misc.h 2013-12-14 17:36:50.000000000 -0500
-@@ -10,7 +10,7 @@
- /*
- * Hamming weight (number of bits that are ones).
- */
--extern inline unsigned int hweight32(unsigned int w)
-+static inline unsigned int hweight32(unsigned int w)
- {
- w = (w & 0x55555555) + ((w >> 1) & 0x55555555);
- w = (w & 0x33333333) + ((w >> 2) & 0x33333333);
-@@ -20,7 +20,7 @@
- return w;
- }
-
--extern inline unsigned int hweight16(unsigned short w)
-+static inline unsigned int hweight16(unsigned short w)
- {
- w = (w & 0x5555) + ((w >> 1) & 0x5555);
- w = (w & 0x3333) + ((w >> 2) & 0x3333);
-@@ -29,7 +29,7 @@
- return w;
- }
-
--extern inline unsigned int hweight8(unsigned char w)
-+static inline unsigned int hweight8(unsigned char w)
- {
- w = (w & 0x55) + ((w >> 1) & 0x55);
- w = (w & 0x33) + ((w >> 2) & 0x33);
-@@ -42,7 +42,7 @@
- /*
- * Reverse order of bits.
- */
--extern inline unsigned int rbits32(unsigned int w)
-+static inline unsigned int rbits32(unsigned int w)
- {
- w = ((w >> 1) & 0x55555555) | ((w << 1) & 0xaaaaaaaa);
- w = ((w >> 2) & 0x33333333) | ((w << 2) & 0xcccccccc);
-@@ -52,7 +52,7 @@
- return w;
- }
-
--extern inline unsigned short rbits16(unsigned short w)
-+static inline unsigned short rbits16(unsigned short w)
- {
- w = ((w >> 1) & 0x5555) | ((w << 1) & 0xaaaa);
- w = ((w >> 2) & 0x3333) | ((w << 2) & 0xcccc);
-@@ -61,7 +61,7 @@
- return w;
- }
-
--extern inline unsigned char rbits8(unsigned char w)
-+static inline unsigned char rbits8(unsigned char w)
- {
- w = ((w >> 1) & 0x55) | ((w << 1) & 0xaa);
- w = ((w >> 2) & 0x33) | ((w << 2) & 0xcc);
-@@ -71,7 +71,7 @@
-
- /* ---------------------------------------------------------------------- */
-
--extern inline float avg(float average, float input, int scale)
-+static inline float avg(float average, float input, int scale)
- {
- int i;
-
-@@ -82,12 +82,12 @@
- return (average + input);
- }
-
--extern inline float avg2(float average, float input, float weight)
-+static inline float avg2(float average, float input, float weight)
- {
- return input * weight + average * (1.0 - weight);
- }
-
--extern inline float phaseavg(float *data, int len)
-+static inline float phaseavg(float *data, int len)
- {
- float sum = 0.0;
- float min = M_PI;
diff --git a/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c b/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c
index 7d6c5e289d6b..263228f89918 100644
--- a/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c
+++ b/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c
@@ -1,5 +1,5 @@
---- p3dmodem/genp3dtbl.c.orig 2002-08-09 15:01:52.000000000 -0500
-+++ p3dmodem/genp3dtbl.c 2013-12-14 17:48:45.000000000 -0500
+--- p3dmodem/genp3dtbl.c.orig 2002-08-09 20:01:52 UTC
++++ p3dmodem/genp3dtbl.c
@@ -39,6 +39,8 @@
#include <float.h>
#include <stdio.h>
diff --git a/comms/soundmodem/files/patch-p3dmodem_testcrc.c b/comms/soundmodem/files/patch-p3dmodem_testcrc.c
new file mode 100644
index 000000000000..451d41069735
--- /dev/null
+++ b/comms/soundmodem/files/patch-p3dmodem_testcrc.c
@@ -0,0 +1,11 @@
+--- p3dmodem/testcrc.c.orig 2002-08-09 20:01:52 UTC
++++ p3dmodem/testcrc.c
+@@ -40,6 +40,8 @@
+
+ #define BLOCKSZ 512
+
++unsigned int log_verblevel;
++
+ static int testone(void)
+ {
+ unsigned char data[BLOCKSZ];
diff --git a/comms/soundmodem/files/patch-pammodem_genpamtbl.c b/comms/soundmodem/files/patch-pammodem_genpamtbl.c
index 3b5084bc93ee..a3a7cdf0ee64 100644
--- a/comms/soundmodem/files/patch-pammodem_genpamtbl.c
+++ b/comms/soundmodem/files/patch-pammodem_genpamtbl.c
@@ -1,5 +1,5 @@
---- pammodem/genpamtbl.c.orig 2002-08-09 15:01:52.000000000 -0500
-+++ pammodem/genpamtbl.c 2013-12-14 17:52:08.000000000 -0500
+--- pammodem/genpamtbl.c.orig 2002-08-09 20:01:52 UTC
++++ pammodem/genpamtbl.c
@@ -38,6 +38,8 @@
#include <math.h>
#include <stdio.h>
diff --git a/comms/soundmodem/files/patch-pammodem_pammodem.c b/comms/soundmodem/files/patch-pammodem_pammodem.c
new file mode 100644
index 000000000000..ac9ff1c593f3
--- /dev/null
+++ b/comms/soundmodem/files/patch-pammodem_pammodem.c
@@ -0,0 +1,20 @@
+--- pammodem/pammodem.c.orig 2015-05-04 17:58:30 UTC
++++ pammodem/pammodem.c
+@@ -160,7 +160,7 @@ struct rxstate {
+ unsigned int rxptr;
+ };
+
+-extern inline int rxgsfir(const int16_t *buf, const int *coeff)
++inline int rxgsfir(const int16_t *buf, const int *coeff)
+ {
+ unsigned int i;
+ int s;
+@@ -207,7 +207,7 @@ static void rxrewindsamples(struct rxsta
+ rx->rxphase -= ph;
+ }
+
+-only_inline int calcsync(int *toten, int *corren, int16_t *samples)
++inline int calcsync(int *toten, int *corren, int16_t *samples)
+ {
+ const int *tr = trainsyms;
+ unsigned int i;
diff --git a/comms/soundmodem/files/patch-pskmodem_genpsktbl.c b/comms/soundmodem/files/patch-pskmodem_genpsktbl.c
index 73a284ae0b2e..887e925401bf 100644
--- a/comms/soundmodem/files/patch-pskmodem_genpsktbl.c
+++ b/comms/soundmodem/files/patch-pskmodem_genpsktbl.c
@@ -1,5 +1,5 @@
---- pskmodem/genpsktbl.c.orig 2013-12-14 14:02:09.000000000 -0500
-+++ pskmodem/genpsktbl.c 2013-12-14 14:02:34.000000000 -0500
+--- pskmodem/genpsktbl.c.orig 2002-08-09 20:01:52 UTC
++++ pskmodem/genpsktbl.c
@@ -40,6 +40,8 @@
#include <stdio.h>
#include <string.h>
diff --git a/comms/soundmodem/files/patch-pskmodem_pskmodem.c b/comms/soundmodem/files/patch-pskmodem_pskmodem.c
deleted file mode 100644
index bcdb16ef9bdc..000000000000
--- a/comms/soundmodem/files/patch-pskmodem_pskmodem.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- pskmodem/pskmodem.c.orig 2013-12-13 20:07:01.214995855 -0500
-+++ pskmodem/pskmodem.c 2013-12-13 20:07:04.005995698 -0500
-@@ -262,7 +262,7 @@
- }
- }
-
--extern inline int calcsync(int *toten, int *corren, cplxshort_t *samples)
-+inline int calcsync(int *toten, int *corren, cplxshort_t *samples)
- {
- const cplxshort_t *tr = traincorrrotated;
- unsigned int i;
diff --git a/comms/soundmodem/files/patch-soundcard_main.c b/comms/soundmodem/files/patch-soundcard_main.c
deleted file mode 100644
index 7fb03d7960ff..000000000000
--- a/comms/soundmodem/files/patch-soundcard_main.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- soundcard/main.c.orig 2010-10-30 11:49:10.000000000 -0500
-+++ soundcard/main.c 2012-11-05 17:22:52.000000000 -0500
-@@ -358,7 +358,7 @@
- { "daemonize", 0, 0, 'D' },
- { 0, 0, 0, 0 }
- };
-- char *configname = NULL, *cfgname, *filename = "/etc/ax25/soundmodem.conf";
-+ char *configname = NULL, *cfgname, *filename = "%%PREFIX%%/etc/soundmodem.conf";
- unsigned int verblevel = 2, tosyslog = 0, simd = 1, schedrr = 0, lockmem = 0, daemonize = 0;
- int c, err = 0;
- xmlDocPtr doc;
diff --git a/comms/soundmodem/files/patch-soundcard_modem.h b/comms/soundmodem/files/patch-soundcard_modem.h
deleted file mode 100644
index a09ae14f6624..000000000000
--- a/comms/soundmodem/files/patch-soundcard_modem.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- soundcard/modem.h.orig 2003-01-02 13:53:04.000000000 -0500
-+++ soundcard/modem.h 2013-12-14 17:32:44.000000000 -0500
-@@ -103,7 +103,7 @@
- extern void logprintf(unsigned int level, const char *fmt, ...);
- extern void logerr(unsigned int level, const char *st);
- extern unsigned int log_verblevel;
--extern inline int logcheck(unsigned int vl)
-+static inline int logcheck(unsigned int vl)
- {
- return vl <= log_verblevel;
- }
diff --git a/comms/soundmodem/files/patch-soundcard_ptt.c b/comms/soundmodem/files/patch-soundcard_ptt.c
index de073fc48cdb..5e84d638c27e 100644
--- a/comms/soundmodem/files/patch-soundcard_ptt.c
+++ b/comms/soundmodem/files/patch-soundcard_ptt.c
@@ -1,8 +1,8 @@
---- soundcard/ptt.c.orig 2012-11-07 11:05:55.000000000 -0500
-+++ soundcard/ptt.c 2012-11-07 11:06:15.000000000 -0500
-@@ -176,7 +176,7 @@
- #endif
-
+--- soundcard/ptt.c.orig 2014-09-01 16:22:57 UTC
++++ soundcard/ptt.c
+@@ -250,7 +250,7 @@ int pttinit(struct pttio *state, const c
+ return 0;
+ }
logprintf(MLOG_INFO, "Opening PTT device \"%s\"\n", path);
- if ((fd = open(path, O_RDWR, 0)) < 0) {
+ if ((fd = open(path, O_RDWR|O_NONBLOCK, 0)) < 0) {
diff --git a/comms/soundmodem/files/patch-soundcard_simd.h b/comms/soundmodem/files/patch-soundcard_simd.h
deleted file mode 100644
index 9f0fa105eaa0..000000000000
--- a/comms/soundmodem/files/patch-soundcard_simd.h
+++ /dev/null
@@ -1,79 +0,0 @@
---- soundcard/simd.h.orig 2002-08-09 15:01:52.000000000 -0500
-+++ soundcard/simd.h 2013-12-14 17:34:29.000000000 -0500
-@@ -54,16 +54,16 @@
-
- #if !defined(USEMMX) && !defined(USEVIS)
-
--extern inline void initsimd(int enable)
-+static inline void initsimd(int enable)
- {
- }
-
--extern inline int checksimd(void)
-+static inline int checksimd(void)
- {
- return 0;
- }
-
--extern inline int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
-+static inline int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
- {
- int s = 0;
-
-@@ -72,7 +72,7 @@
- return s;
- }
-
--extern inline void simdpreparefpu(void)
-+static inline void simdpreparefpu(void)
- {
- }
-
-@@ -80,9 +80,9 @@
-
- extern unsigned int simd_enabled;
-
--extern void initsimd(int enable);
-+void initsimd(int enable);
-
--extern inline int checksimd(void)
-+static inline int checksimd(void)
- {
- return simd_enabled;
- }
-@@ -91,7 +91,7 @@
-
- #define MMXCLOBBER "st", "st(1)", "st(2)", "st(3)", "st(4)", "st(5)", "st(6)", "st(7)"
-
--extern inline int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
-+static inline int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
- {
- unsigned int i, j;
- int s = 0;
-@@ -114,7 +114,7 @@
- return s;
- }
-
--extern inline void simdpreparefpu(void)
-+static inline void simdpreparefpu(void)
- {
- if (checksimd())
- asm volatile("emms");
-@@ -122,7 +122,7 @@
-
- #elif defined(USEVIS)
-
--/*extern inline*/static int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
-+/*extern static inline*/static int simdfir16(const int16_t *p1, const int16_t *p2, unsigned int nr)
- {
- double dsum1, dsum2, dsum3, dsum4, arg1, arg2, arg3, arg4;
- float sum, sum1, sum2;
-@@ -157,7 +157,7 @@
- return s;
- }
-
--extern inline void simdpreparefpu(void)
-+static inline void simdpreparefpu(void)
- {
- }
-
diff --git a/comms/soundmodem/files/patch-soundcard_soundmodem.8 b/comms/soundmodem/files/patch-soundcard_soundmodem.8
deleted file mode 100644
index b7c32e182afd..000000000000
--- a/comms/soundmodem/files/patch-soundcard_soundmodem.8
+++ /dev/null
@@ -1,11 +0,0 @@
---- soundcard/soundmodem.8.orig Fri Aug 9 16:01:52 2002
-+++ soundcard/soundmodem.8 Sun Nov 5 21:47:40 2006
-@@ -20,7 +20,7 @@
- driver (enable CONFIG_MKISS).
- .B soundmodem
- is controlled by a configuration file. The default filename is
--/etc/ax25/soundmodem.conf. Any other name may be specified on the command line.
-+%%PREFIX%%/etc/soundmodem.conf. Any other name may be specified on the command line.
-
-
-
diff --git a/comms/soundmodem/files/patch-soundcard_winlog.c b/comms/soundmodem/files/patch-soundcard_winlog.c
index add5816cf9e3..f28e48cc0604 100644
--- a/comms/soundmodem/files/patch-soundcard_winlog.c
+++ b/comms/soundmodem/files/patch-soundcard_winlog.c
@@ -1,5 +1,5 @@
---- soundcard/winlog.c.orig 2013-12-13 08:55:02.797125391 -0500
-+++ soundcard/winlog.c 2013-12-13 08:55:35.636772475 -0500
+--- soundcard/winlog.c.orig 2002-12-31 11:30:52 UTC
++++ soundcard/winlog.c
@@ -44,7 +44,7 @@
/* ---------------------------------------------------------------------- */
diff --git a/comms/soundmodem/files/soundmodem b/comms/soundmodem/files/soundmodem
deleted file mode 100644
index f602fd3bf9cc..000000000000
--- a/comms/soundmodem/files/soundmodem
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/sh
-#
-# PROVIDE: soundmodem
-# REQUIRE: LOGIN
-#
-# Add the following lines to /etc/rc.conf to enable soundmodem:
-#
-#soundmodem_enable="YES"
-
-. /etc/rc.subr
-
-name=soundmodem
-rcvar=soundmodem_enable
-load_rc_config $name
-soundmodem_enable=${soundmodem_enable-"NO"}
-
-command=/usr/local/sbin/soundmodem
-start_cmd=soundmodem_start
-stop_cmd=soundmodem_stop
-
-pidfile=/var/run/soundmodem.pid
-required_files=/usr/local/etc/soundmodem.conf
-
-soundmodem_start()
-{
- echo "Starting Soundmodem: "
- /usr/local/sbin/soundmodem --daemonize
- return 0
-}
-soundmodem_stop()
-{
- echo "Stopping Soundmodem: "
- killall soundmodem
- return 0
-}
-
-run_rc_command "$1"
diff --git a/comms/soundmodem/files/soundmodem.in b/comms/soundmodem/files/soundmodem.in
new file mode 100644
index 000000000000..12eebb869868
--- /dev/null
+++ b/comms/soundmodem/files/soundmodem.in
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: soundmodem
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add these lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# soundmodem_enable (bool): Set to NO by default.
+# Set it to YES to enable soundmodem.
+# soundmodem_config (path): Set to %%PREFIX%%/etc/soundmodem.conf
+# by default.
+
+. /etc/rc.subr
+
+name=soundmodem
+rcvar=soundmodem_enable
+load_rc_config $name
+
+: ${soundmodem_enable:="NO"}
+: ${soundmodem_config:="%%PREFIX%%/etc/soundmodem.conf"}
+
+command=%%PREFIX%%/sbin/${name}
+command_args="$soundmodem_config --daemonize"
+stop_cmd=soundmodem_stop
+
+required_files=%%PREFIX%%/etc/soundmodem.conf
+
+soundmodem_stop()
+{
+ echo "Stopping soundmodem."
+ killall soundmodem
+ return 0
+}
+
+run_rc_command "$1"
diff --git a/comms/soundmodem/pkg-descr b/comms/soundmodem/pkg-descr
index 737d0c78bf11..5faa9c82a883 100644
--- a/comms/soundmodem/pkg-descr
+++ b/comms/soundmodem/pkg-descr
@@ -1,3 +1,3 @@
soundmodem Tom's userland modem on FreeBSD
-WWW: http://www.baycom.org/~tom/ham/soundmodem/
+WWW: http://gna.org/projects/soundmodem
diff --git a/comms/soundmodem/pkg-plist b/comms/soundmodem/pkg-plist
index acd7de9a1751..ac9b583131fd 100644
--- a/comms/soundmodem/pkg-plist
+++ b/comms/soundmodem/pkg-plist
@@ -1,6 +1,5 @@
bin/soundmodemconfig
sbin/soundmodem
-etc/rc.d/soundmodem
include/modem.h
include/simd.h
share/locale/fr/LC_MESSAGES/soundmodem.mo