summaryrefslogtreecommitdiff
path: root/multimedia/fxtv/patches/patch-aq
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-07-05 03:27:22 +0000
committerdholland <dholland@pkgsrc.org>2011-07-05 03:27:22 +0000
commitb8b3dc49a35eb61c9a762f28926a3ded52fe3692 (patch)
treedb5385f5f4488324c3b602d00d1d1710a4717e93 /multimedia/fxtv/patches/patch-aq
parentbb242eb844fb9694445f9f799f8ed4da47234f9b (diff)
downloadpkgsrc-b8b3dc49a35eb61c9a762f28926a3ded52fe3692.tar.gz
Patch LP64 problems, add patch comments, fix some pkglint.
This may or may not fully run on LP64 platforms but it's much more likely to now than previously.
Diffstat (limited to 'multimedia/fxtv/patches/patch-aq')
-rw-r--r--multimedia/fxtv/patches/patch-aq96
1 files changed, 94 insertions, 2 deletions
diff --git a/multimedia/fxtv/patches/patch-aq b/multimedia/fxtv/patches/patch-aq
index 361b080f2c0..ca24c4eced7 100644
--- a/multimedia/fxtv/patches/patch-aq
+++ b/multimedia/fxtv/patches/patch-aq
@@ -1,6 +1,9 @@
-$NetBSD: patch-aq,v 1.1 2006/01/03 15:03:02 joerg Exp $
+$NetBSD: patch-aq,v 1.2 2011/07/05 03:27:22 dholland Exp $
---- tvcapture.c.orig 2006-01-03 14:52:51.000000000 +0000
+Support Dragonfly.
+Fix LP64 problems.
+
+--- tvcapture.c.orig 2001-02-12 18:59:22.000000000 +0000
+++ tvcapture.c
@@ -37,6 +37,8 @@
#include <sys/mman.h>
@@ -11,3 +14,92 @@ $NetBSD: patch-aq,v 1.1 2006/01/03 15:03:02 joerg Exp $
#else
# include <machine/ioctl_bt848.h>
#endif
+@@ -238,7 +240,7 @@ TV_BOOL TVCAPTUREGetPendingFrame( TV_IMA
+ return FALSE;
+
+ if ( S_frame_done_count-- > 0 )
+- DRVPRINTF(( "%ld frames behind\n", S_frame_done_count ));
++ DRVPRINTF(( "%d frames behind\n", S_frame_done_count ));
+
+ image.buf = c->drv_buf;
+ memcpy( &image.geom, &c->geom, sizeof( image.geom ) );
+@@ -815,7 +817,7 @@ TV_BOOL TVCAPTUREQueryDriverState( TV_CA
+ case METEOR_INPUT_DEV3 : s->input_dev = TV_DEVICE_DEV3 ; break;
+ #endif
+ default :
+- fprintf( stderr, "TVCAPTUREQueryDriverState(): Bad INPUT %ld\n",
++ fprintf( stderr, "TVCAPTUREQueryDriverState(): Bad INPUT %d\n",
+ larg );
+ return False;
+ }
+@@ -835,7 +837,7 @@ TV_BOOL TVCAPTUREQueryDriverState( TV_CA
+ case BT848_IFORM_F_SECAM : s->input_fmt = TV_INPUT_SECAM ; break;
+ case BT848_IFORM_F_RSVD : s->input_fmt = TV_INPUT_PALNCOMB; break;
+ default :
+- fprintf( stderr, "TVCAPTUREQueryDriverState(): Bad FMT %ld\n",
++ fprintf( stderr, "TVCAPTUREQueryDriverState(): Bad FMT %d\n",
+ larg );
+ return False;
+ }
+@@ -1289,7 +1291,7 @@ void TVCAPTUREPrintPixelFormats( TV_CAPT
+ }
+
+ SUPRINTF((
+- " %2ld %2ld %.8lx, %.8lx, %.8lx %s\n",
++ " %2d %2d %.8x, %.8x, %.8x %s\n",
+ bpp, pg->Bpp, pg->mask[0], pg->mask[1], pg->mask[2],
+ swap_chars ));
+ }
+@@ -1306,7 +1308,7 @@ void TVCAPTUREPrintPixelFormats( TV_CAPT
+ continue;
+
+ SUPRINTF((
+- " %ld,%ld,%ld %ld,%ld,%ld %ld,%ld,%ld %-7s %-10s "
++ " %d,%d,%d %d,%d,%d %d,%d,%d %-7s %-10s "
+ "%-5s %-6s %s\n",
+ pg->samp_size [0], pg->samp_size [1], pg->samp_size [2],
+ pg->samp_int_h[0], pg->samp_int_h[1], pg->samp_int_h[2],
+@@ -1535,7 +1537,7 @@ void TVCAPTUREInit( TV_CAPTURE *c )
+ c->contrast = 70.0; /* % */
+ c->sat_u = 100.0; /* % */
+ c->sat_v = 100.0; /* % */
+- c->addr = NULL;
++ c->addr = 0;
+ /* geom -- see below */
+
+ c->frame_done_cb = NULL;
+@@ -1565,7 +1567,7 @@ void TVCAPTUREInit( TV_CAPTURE *c )
+ default :
+ case TV_INPUT_AUTO :
+ fprintf( stderr,
+- "TVCAPTUREInit: Unsupported input format %ld\n",
++ "TVCAPTUREInit: Unsupported input format %d\n",
+ c->input_format );
+ exit(1);
+ }
+@@ -1729,7 +1731,7 @@ TV_BOOL TVCAPTUREConfigure( TV_CAPTURE
+ goto RETURN;
+ }
+
+- if ( c->xfer_mode == TV_TRANSFER_DIRECT )
++ if ( c->xfer_mode == TV_TRANSFER_DIRECT ) {
+ if ( !( x->visual_modes[ x->active_visual ] & TV_TRANSFER_DIRECT )) {
+ strcpy( S_err_msg, "Active visual does not support direct video");
+ goto RETURN;
+@@ -1738,6 +1740,7 @@ TV_BOOL TVCAPTUREConfigure( TV_CAPTURE
+ strcpy( S_err_msg, "Direct transfer only supported for video" );
+ goto RETURN;
+ }
++ }
+
+ /* Get capture geometry */
+ if ( c->xfer_mode == TV_TRANSFER_DIRECT ) {
+@@ -1752,7 +1755,7 @@ TV_BOOL TVCAPTUREConfigure( TV_CAPTURE
+ /* Verify res limits and precision (all modes) */
+ if (( g.w != g.w / c->width_res * c->width_res ) ||
+ ( g.h != g.h / c->height_res * c->height_res )) {
+- sprintf( S_err_msg, "Capture geometry must be a multiple of %ldx%ld",
++ sprintf( S_err_msg, "Capture geometry must be a multiple of %dx%d",
+ c->width_res, c->height_res );
+ goto RETURN;
+ }