Index: head/comms/soundmodem/Makefile =================================================================== --- head/comms/soundmodem/Makefile (revision 409260) +++ head/comms/soundmodem/Makefile (revision 409261) @@ -1,37 +1,32 @@ # $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 CONFIGURE_ARGS= --disable-alsatest WRKSRC= ${WRKDIR}/${DISTNAME} USES= gmake pkgconfig gettext HAS_CONFIGURE= yes USE_GNOME= gtk20 libxml2 +USE_RC_SUBR= soundmodem +USE_SUBMAKE= yes -pre-patch: - @${CP} ${FILESDIR}/soundmodem ${WRKSRC} - 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 Index: head/comms/soundmodem/distinfo =================================================================== --- head/comms/soundmodem/distinfo (revision 409260) +++ head/comms/soundmodem/distinfo (revision 409261) @@ -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 Property changes on: head/comms/soundmodem/distinfo ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_misc.h =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_misc.h (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_misc.h (nonexistent) @@ -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; Property changes on: head/comms/soundmodem/files/patch-newqpsk_misc.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_simd.h =================================================================== --- head/comms/soundmodem/files/patch-soundcard_simd.h (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_simd.h (nonexistent) @@ -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) - { - } - Property changes on: head/comms/soundmodem/files/patch-soundcard_simd.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_complex.h =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_complex.h (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_complex.h (nonexistent) @@ -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); - } Property changes on: head/comms/soundmodem/files/patch-newqpsk_complex.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-pskmodem_pskmodem.c =================================================================== --- head/comms/soundmodem/files/patch-pskmodem_pskmodem.c (revision 409260) +++ head/comms/soundmodem/files/patch-pskmodem_pskmodem.c (nonexistent) @@ -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; Property changes on: head/comms/soundmodem/files/patch-pskmodem_pskmodem.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_modem.h =================================================================== --- head/comms/soundmodem/files/patch-soundcard_modem.h (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_modem.h (nonexistent) @@ -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; - } Property changes on: head/comms/soundmodem/files/patch-soundcard_modem.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8 =================================================================== --- head/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8 (revision 409260) +++ head/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8 (nonexistent) @@ -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. - - Property changes on: head/comms/soundmodem/files/patch-configapp_src_soundmodemconfig.8 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_soundmodem.8 =================================================================== --- head/comms/soundmodem/files/patch-soundcard_soundmodem.8 (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_soundmodem.8 (nonexistent) @@ -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. - - - Property changes on: head/comms/soundmodem/files/patch-soundcard_soundmodem.8 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_filter.h =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_filter.h (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_filter.h (nonexistent) @@ -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; Property changes on: head/comms/soundmodem/files/patch-newqpsk_filter.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_fec.h =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_fec.h (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_fec.h (nonexistent) @@ -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; - Property changes on: head/comms/soundmodem/files/patch-newqpsk_fec.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-configapp_src_main.c =================================================================== --- head/comms/soundmodem/files/patch-configapp_src_main.c (revision 409260) +++ head/comms/soundmodem/files/patch-configapp_src_main.c (nonexistent) @@ -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) - { Property changes on: head/comms/soundmodem/files/patch-configapp_src_main.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_main.c =================================================================== --- head/comms/soundmodem/files/patch-soundcard_main.c (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_main.c (nonexistent) @@ -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; Property changes on: head/comms/soundmodem/files/patch-soundcard_main.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/soundmodem =================================================================== --- head/comms/soundmodem/files/soundmodem (revision 409260) +++ head/comms/soundmodem/files/soundmodem (nonexistent) @@ -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" Property changes on: head/comms/soundmodem/files/soundmodem ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-configapp_src_Makefile.in =================================================================== --- head/comms/soundmodem/files/patch-configapp_src_Makefile.in (revision 409260) +++ head/comms/soundmodem/files/patch-configapp_src_Makefile.in (revision 409261) @@ -1,20 +1,20 @@ ---- 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 \ - @LIBTHREAD@ @GTK_LIBS@ @XML_LIBS@ @AUDIOFILE_LIBS@ @ALSA_LIBS@ $(RCOBJ) + @LIBINTL@ @LIBTHREAD@ @GTK_LIBS@ @XML_LIBS@ @AUDIOFILE_LIBS@ @ALSA_LIBS@ $(RCOBJ) soundmodemconfig_LDFLAGS = $(MWINDOWS) EXTRA_DIST = configapp.rc soundmodemconfig.8 Property changes on: head/comms/soundmodem/files/patch-configapp_src_Makefile.in ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-configure =================================================================== --- head/comms/soundmodem/files/patch-configure (revision 409260) +++ head/comms/soundmodem/files/patch-configure (revision 409261) @@ -1,20 +1,20 @@ ---- 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' -mandir='${datarootdir}/man' +mandir='${prefix}/man' ac_prev= ac_dashdash= -@@ -7265,7 +7265,7 @@ +@@ -7565,7 +7565,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ int main () { - +#include /* ensure backward compatibility */ #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR Property changes on: head/comms/soundmodem/files/patch-configure ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc =================================================================== --- head/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc (revision 409260) +++ head/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc (revision 409261) @@ -1,21 +1,21 @@ ---- 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" +#define FFTSZ 2048 + /* --------------------------------------------------------------------- */ template complex 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"; - complex fftb[fftsz]; +// complex fftb[fftsz]; + complex fftb[FFTSZ]; double rpulse[fftsz], tpulse[fftsz]; double dover = double(over) / fftsz; double sum; Property changes on: head/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-matlib_mat.hh =================================================================== --- head/comms/soundmodem/files/patch-matlib_mat.hh (revision 409260) +++ head/comms/soundmodem/files/patch-matlib_mat.hh (revision 409261) @@ -1,63 +1,63 @@ ---- 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 void mmul(T *c, con memcpy(c, r, d1 * d3 * sizeof(c[0])); } -template void mdet(const T *c, unsigned int d) -{ - T *c2; - unsigned int i, j, k, l; - T det = 0, dr; - - if (!d) - return 0; - if (d == 1) - return c[0]; - if (d == 2) - return c[0] * c[3] - c[1] * c[2]; - c2 = alloca(sizeof(T)*(d-1)*(d-1)); - for (i = 0; i < d; i++) { - for (j = k = 0; j < d; j++) { - if (j == i) - continue; - for (l = 0; l < d-1; l++) - c2[l*(d-1)+k] = c[(l+1)*d+j]; - k++; - } - dr = mdet(c2, d-1); - if (i & 1) - det -= dr * c[i]; - else - det += dr * c[i]; - } - return det; -} - /* Transpose a matrix (a el C^{d1 x d2}, b el C^{d2 x d1}) */ template void mtranspose(T *b, const T *a, unsigned int d1, unsigned int d2) { -@@ -440,23 +410,6 @@ +@@ -440,23 +410,6 @@ template void mlusolve(T *x, } } -template void minv(T *ainv, const T *a, unsigned int d) -{ - T *u, *y; - unsigned int *p; - unsigned int k; - - u = alloca(d * d * sizeof(u[0])); - p = alloca((d-1) * sizeof(p[0])); - mlufact(u, p, a, d); - for (k = 0; k < d; k++) { - y = &ainv[k*d]; - memset(y, 0, d * sizeof(y[0])); - y[k] = T(1); - mlusolve(y, y, u, p, d); - } - mtranspose(ainv, ainv, d, d); -} /* * Gauss-Seidel iterative solver Property changes on: head/comms/soundmodem/files/patch-matlib_mat.hh ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_filter-i386.h =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_filter-i386.h (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_filter-i386.h (revision 409261) @@ -1,11 +1,11 @@ ---- 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 #define __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 f; asm volatile ( Property changes on: head/comms/soundmodem/files/patch-newqpsk_filter-i386.h ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-newqpsk_genfilt.c =================================================================== --- head/comms/soundmodem/files/patch-newqpsk_genfilt.c (revision 409260) +++ head/comms/soundmodem/files/patch-newqpsk_genfilt.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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"); - puts("extern inline float mac(const float *a, const float *b, unsigned int size)"); + puts("static inline float mac(const float *a, const float *b, unsigned int size)"); puts("{"); puts("\tfloat f;"); puts("\tasm volatile ("); Property changes on: head/comms/soundmodem/files/patch-newqpsk_genfilt.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c =================================================================== --- head/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c (revision 409260) +++ head/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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 #include +unsigned int log_verblevel; + /* ---------------------------------------------------------------------- */ extern inline unsigned int hweight32(unsigned int w) Property changes on: head/comms/soundmodem/files/patch-p3dmodem_genp3dtbl.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-p3dmodem_testcrc.c =================================================================== --- head/comms/soundmodem/files/patch-p3dmodem_testcrc.c (nonexistent) +++ head/comms/soundmodem/files/patch-p3dmodem_testcrc.c (revision 409261) @@ -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]; Property changes on: head/comms/soundmodem/files/patch-p3dmodem_testcrc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-pammodem_genpamtbl.c =================================================================== --- head/comms/soundmodem/files/patch-pammodem_genpamtbl.c (revision 409260) +++ head/comms/soundmodem/files/patch-pammodem_genpamtbl.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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 #include +unsigned int log_verblevel; + /* ---------------------------------------------------------------------- */ /* Property changes on: head/comms/soundmodem/files/patch-pammodem_genpamtbl.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-pammodem_pammodem.c =================================================================== --- head/comms/soundmodem/files/patch-pammodem_pammodem.c (nonexistent) +++ head/comms/soundmodem/files/patch-pammodem_pammodem.c (revision 409261) @@ -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; Property changes on: head/comms/soundmodem/files/patch-pammodem_pammodem.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/soundmodem/files/patch-pskmodem_genpsktbl.c =================================================================== --- head/comms/soundmodem/files/patch-pskmodem_genpsktbl.c (revision 409260) +++ head/comms/soundmodem/files/patch-pskmodem_genpsktbl.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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 #include +unsigned int log_verblevel; + /* ---------------------------------------------------------------------- */ /* Property changes on: head/comms/soundmodem/files/patch-pskmodem_genpsktbl.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_ptt.c =================================================================== --- head/comms/soundmodem/files/patch-soundcard_ptt.c (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_ptt.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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) { logprintf(MLOG_ERROR, "Cannot open PTT device \"%s\"\n", path); return -1; } Property changes on: head/comms/soundmodem/files/patch-soundcard_ptt.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/patch-soundcard_winlog.c =================================================================== --- head/comms/soundmodem/files/patch-soundcard_winlog.c (revision 409260) +++ head/comms/soundmodem/files/patch-soundcard_winlog.c (revision 409261) @@ -1,11 +1,11 @@ ---- 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 @@ /* ---------------------------------------------------------------------- */ -unsigned int log_verblevel = 0; +extern unsigned int log_verblevel = 0; static HANDLE logh = NULL; /* ---------------------------------------------------------------------- */ Property changes on: head/comms/soundmodem/files/patch-soundcard_winlog.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/files/soundmodem.in =================================================================== --- head/comms/soundmodem/files/soundmodem.in (nonexistent) +++ head/comms/soundmodem/files/soundmodem.in (revision 409261) @@ -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" Property changes on: head/comms/soundmodem/files/soundmodem.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/soundmodem/pkg-descr =================================================================== --- head/comms/soundmodem/pkg-descr (revision 409260) +++ head/comms/soundmodem/pkg-descr (revision 409261) @@ -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 Property changes on: head/comms/soundmodem/pkg-descr ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/soundmodem/pkg-plist =================================================================== --- head/comms/soundmodem/pkg-plist (revision 409260) +++ head/comms/soundmodem/pkg-plist (revision 409261) @@ -1,9 +1,8 @@ bin/soundmodemconfig sbin/soundmodem -etc/rc.d/soundmodem include/modem.h include/simd.h share/locale/fr/LC_MESSAGES/soundmodem.mo share/locale/sv/LC_MESSAGES/soundmodem.mo man/man8/soundmodem.8.gz man/man8/soundmodemconfig.8.gz Property changes on: head/comms/soundmodem/pkg-plist ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property