Index: head/comms/acfax/Makefile =================================================================== --- head/comms/acfax/Makefile (revision 546299) +++ head/comms/acfax/Makefile (revision 546300) @@ -1,36 +1,37 @@ # Created by: Darren # $FreeBSD$ PORTNAME= acfax PORTVERSION= 0.981011 PORTREVISION= 3 CATEGORIES= comms hamradio MASTER_SITES= ftp://ftp.funet.fi/pub/ham/unix/Linux/misc/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/^0.//} MAINTAINER= hamradio@FreeBSD.org COMMENT= Receive faxes using sound card and radio +LICENSE= GPLv2 + LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d -PLIST_FILES= bin/acfax +USES= imake xorg + WRKSRC= ${WRKDIR}/${PORTNAME} -USES= imake xorg USE_XORG= x11 xext xmu xt sm ice +PLIST_FILES= bin/acfax + 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 ${STAGEDIR}${PREFIX}/bin .include Index: head/comms/acfax/files/patch-RegExp.c =================================================================== --- head/comms/acfax/files/patch-RegExp.c (revision 546299) +++ head/comms/acfax/files/patch-RegExp.c (revision 546300) @@ -1,10 +1,10 @@ ---- RegExp.c.old Sun Feb 10 05:33:07 2002 -+++ RegExp.c Sun Feb 10 05:33:24 2002 +--- RegExp.c.orig 1995-07-08 18:20:49 UTC ++++ RegExp.c @@ -23,7 +23,6 @@ */ #include "RegExp.h" -#include void RegExpCompile(regexp,fsm_ptr) char *regexp; Property changes on: head/comms/acfax/files/patch-RegExp.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/acfax/files/patch-acfax.c =================================================================== --- head/comms/acfax/files/patch-acfax.c (revision 546299) +++ head/comms/acfax/files/patch-acfax.c (revision 546300) @@ -1,11 +1,29 @@ ---- acfax.c.orig 2011-06-30 14:39:10.000000000 -0400 -+++ acfax.c 2011-06-30 14:39:23.000000000 -0400 -@@ -739,7 +739,7 @@ +--- acfax.c.orig 1998-10-06 21:32:35 UTC ++++ acfax.c +@@ -108,7 +108,7 @@ struct prginfo { + String sizedesc; + } prg_info; + +-Display *dpy; /* the X-Display to use */ ++extern Display *dpy; /* the X-Display to use */ + Screen *scr; /* screen of the display */ + Pixmap cpxmap; /* The "backing store" for the canvas-widget */ + GC cgc; /* GC for XPutImage from horimage/verimage to cpxmap */ +@@ -739,7 +739,7 @@ void quit_cb(Widget w, XtPointer client_data, XtPointe exit(0); } -void main(int argc, char **argv) +int main(int argc, char **argv) { int i; Pixel respix[20]; +@@ -795,7 +795,7 @@ void main(int argc, char **argv) + mode_notify = op_changed; + /* that's a hard one, but should set up all things right.... */ + XtVaGetValues(canvas, XtNwidth, &wid, XtNheight, &hei, NULL); +- setup_fax(120, 288, (FAX_CNOR | FAX_CUNFL | FAX_CROT0 | ++ setup_fax(120, 576, (FAX_CNOR | FAX_CUNFL | FAX_CROT0 | + FAX_LEF2RIG | FAX_TOP2BOT | FAX_HOR | FAX_PBLK | FAX_GRAY), + toplevel, (unsigned)wid, (unsigned)hei, 500, (MOD_FM | FIL_MIDL)); + aptstart = 300; Property changes on: head/comms/acfax/files/patch-acfax.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/acfax/files/patch-fax_funcs.c =================================================================== --- head/comms/acfax/files/patch-fax_funcs.c (revision 546299) +++ head/comms/acfax/files/patch-fax_funcs.c (revision 546300) @@ -1,11 +1,29 @@ ---- fax_funcs.c.orig Sat Jun 8 00:39:02 2002 -+++ fax_funcs.c Sat Jun 8 00:39:08 2002 +--- fax_funcs.c.orig 1998-10-11 16:34:37 UTC ++++ fax_funcs.c @@ -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 */ +@@ -96,7 +98,7 @@ char *mod_end; /* pointer to first byte behind end of + FILE *fsfile; /* file pointer of current save-file */ + char faxsavename[256]; /* current name of save-file */ + char *saveline; /* storage for 1 image-line in save_func */ +-XtAppContext mainapp; /* main app.context (needed for interv.timer) */ ++extern XtAppContext mainapp; /* main app.context (needed for interv.timer) */ + XtIntervalId chstime; /* for the repetitive called background function */ + XtInputId dspxid = 0; /* for the background function when using select() */ + XEvent event; /* event needed to form the XtAppMainLoop */ +@@ -117,7 +119,7 @@ void init_fax(void) + if (fax_inited) return; + fprintf(stderr, "initializing FAX procedures and alloc'ing core-space\n"); + lpm = 120; +- ixoc = 288; ++ ixoc = 576; + devi = 400; + mod_mode = MOD_FM | FIL_MIDL; + dmaxval = 63; Property changes on: head/comms/acfax/files/patch-fax_funcs.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/acfax/files/patch-mod_demod.c =================================================================== --- head/comms/acfax/files/patch-mod_demod.c (revision 546299) +++ head/comms/acfax/files/patch-mod_demod.c (revision 546300) @@ -1,11 +1,11 @@ ---- mod_demod.c.orig Sat Jun 8 00:38:29 2002 -+++ mod_demod.c Sat Jun 8 00:38:41 2002 +--- mod_demod.c.orig 1998-07-08 16:32:02 UTC ++++ mod_demod.c @@ -29,6 +29,8 @@ #include #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 }; Property changes on: head/comms/acfax/files/patch-mod_demod.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/acfax/files/patch-widgets.c =================================================================== --- head/comms/acfax/files/patch-widgets.c (nonexistent) +++ head/comms/acfax/files/patch-widgets.c (revision 546300) @@ -0,0 +1,11 @@ +--- widgets.c.orig 2020-08-26 20:41:16 UTC ++++ widgets.c +@@ -101,7 +101,7 @@ Pixmap px_horiz, + px_middle, + px_wide; + +-XtTranslations txt_trans; /* translations for numeric entries */ ++extern XtTranslations txt_trans; /* translations for numeric entries */ + XtTranslations name_trans; /* translations for name-entry */ + + static void fchs_cb(Widget, XtPointer, XtPointer); Property changes on: head/comms/acfax/files/patch-widgets.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/acfax/pkg-descr =================================================================== --- head/comms/acfax/pkg-descr (revision 546299) +++ head/comms/acfax/pkg-descr (revision 546300) @@ -1,2 +1,3 @@ +amateur FAX receiving software for Linux / X11 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. Property changes on: head/comms/acfax/pkg-descr ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property