[Midnightbsd-cvs] mports: mports/comms: Add acfax, a program to receive faxes over radio

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Aug 16 23:06:40 EDT 2008


Log Message:
-----------
Add acfax, a program to receive faxes over radio (ham)

Modified Files:
--------------
    mports/comms:
        Makefile (r1.8 -> r1.9)

Added Files:
-----------
    mports/comms/acfax:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
    mports/comms/acfax/files:
        patch-RegExp.c (r1.1)
        patch-fax_funcs.c (r1.1)
        patch-mod_demod.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/comms/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -L comms/Makefile -L comms/Makefile -u -r1.8 -r1.9
--- comms/Makefile
+++ comms/Makefile
@@ -3,6 +3,7 @@
 
     COMMENT = Communication utilities
 
+    SUBDIR += acfax
     SUBDIR += efax
     SUBDIR += libirman
     SUBDIR += libticables
--- /dev/null
+++ comms/acfax/pkg-descr
@@ -0,0 +1,2 @@
+acfax is a program to decode faxes off a radio.  It features on-the-fly
+image adjustments and control over a wide array of receiving options.
--- /dev/null
+++ comms/acfax/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for:   acfax
+# Date created:        20 February 2002
+# Whom:                Darren <igla at batterybackups.net>
+#
+# $MidnightBSD: mports/comms/acfax/Makefile,v 1.1 2008/08/17 03:06:38 laffer1 Exp $
+# $FreeBSD: ports/comms/acfax/Makefile,v 1.12 2007/12/19 22:18:20 pav Exp $
+#
+
+PORTNAME=	acfax
+PORTVERSION=	0.981011
+PORTREVISION=	0
+CATEGORIES=	comms hamradio
+MASTER_SITES=	ftp://ftp.funet.fi/pub/ham/unix/Linux/misc/
+DISTNAME=	${PORTNAME}-${PORTVERSION:S/^0.//}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Receive faxes using sound card and radio
+LICENSE=	gpl2
+
+LIB_DEPENDS=	Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
+
+PLIST_FILES=	bin/acfax
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+USE_IMAKE=	yes
+
+post-extract:
+	@${TOUCH} ${WRKSRC}/acfax.man
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|setup_fax(120, 288|setup_fax(120, 576|' \
+		${WRKSRC}/acfax.c
+	@${REINPLACE_CMD} -e 's|ixoc = 288|ixoc = 576|' ${WRKSRC}/fax_funcs.c
+	@${REINPLACE_CMD} -e 's|regex.h|gnuregex.h|' ${WRKSRC}/RegExp.h
+	@${REINPLACE_CMD} -e 's| -O2 -Wall||g ; \
+		 s|-lm|-lm -lgnuregex|' ${WRKSRC}/Imakefile
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/acfax ${PREFIX}/bin
+
+.include <bsd.port.mk>
--- /dev/null
+++ comms/acfax/distinfo
@@ -0,0 +1,3 @@
+MD5 (acfax-981011.tar.gz) = 60702f222272166fb4a1145820a80e2f
+SHA256 (acfax-981011.tar.gz) = 5df96467ca92cc7b26199dff3d7dc9d6e3df0e1b1799958728d3262b42b85809
+SIZE (acfax-981011.tar.gz) = 68170
--- /dev/null
+++ comms/acfax/files/patch-mod_demod.c
@@ -0,0 +1,13 @@
+$FreeBSD: ports/comms/acfax/files/patch-mod_demod.c,v 1.1 2002/06/08 04:53:25 petef Exp $
+
+--- mod_demod.c.orig	Sat Jun  8 00:38:29 2002
++++ mod_demod.c	Sat Jun  8 00:38:41 2002
+@@ -29,6 +29,8 @@
+ #include <unistd.h>
+ #include "mod_demod.h"
+ 
++#define PI M_PI
++
+ SHORT int firwide[] = {  6,   20,   7, -42, -74, -12, 159, 353, 440 };
+ SHORT int firmiddle[] = {   0, -18, -38, -39,   0,  83, 191, 284, 320 };
+ SHORT int firnarrow[] = {  -7, -18, -15,  11,  56, 116, 177, 223, 240 };
--- /dev/null
+++ comms/acfax/files/patch-RegExp.c
@@ -0,0 +1,12 @@
+$FreeBSD: ports/comms/acfax/files/patch-RegExp.c,v 1.1 2002/06/08 04:53:25 petef Exp $
+
+--- RegExp.c.old	Sun Feb 10 05:33:07 2002
++++ RegExp.c	Sun Feb 10 05:33:24 2002
+@@ -23,7 +23,6 @@
+  */ 
+ 
+ #include "RegExp.h"
+-#include <regex.h>
+ 
+ void RegExpCompile(regexp,fsm_ptr)
+ char *regexp;
--- /dev/null
+++ comms/acfax/files/patch-fax_funcs.c
@@ -0,0 +1,13 @@
+$FreeBSD: ports/comms/acfax/files/patch-fax_funcs.c,v 1.1 2002/06/08 04:53:25 petef Exp $
+
+--- fax_funcs.c.orig	Sat Jun  8 00:39:02 2002
++++ fax_funcs.c	Sat Jun  8 00:39:08 2002
+@@ -37,6 +37,8 @@
+ #include "widgets.h"
+ #include "fax_funcs.h"
+ 
++#define PI M_PI
++
+ /* some variables that are allowed to be global */
+ int	lpm;		/* lines per minute */
+ int     ixoc;           /* number of pixels of one scan-line / PI */


More information about the Midnightbsd-cvs mailing list