summaryrefslogtreecommitdiffstats
path: root/multimedia/xawtv
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2005-05-23 15:08:49 +0000
committeroliver <oliver@FreeBSD.org>2005-05-23 15:08:49 +0000
commite92cf9b1a1f63fae228926fa2f0dd07351eaa73f (patch)
tree4411a63583b822d57ce0e3d4be201033d1242053 /multimedia/xawtv
parent9ec57f6944768e25509371bfd98d94e6e0882952 (diff)
downloadFreeBSD-ports-e92cf9b1a1f63fae228926fa2f0dd07351eaa73f.zip
FreeBSD-ports-e92cf9b1a1f63fae228926fa2f0dd07351eaa73f.tar.gz
- add amd64 to ONLY_FOR_ARCHS
- fix build for amd64 - fix a bug on amd64 which caused xawtv to segfault on startup
Diffstat (limited to 'multimedia/xawtv')
-rw-r--r--multimedia/xawtv/Makefile4
-rw-r--r--multimedia/xawtv/files/patch-libng::plugins::drv0-bsd.c19
2 files changed, 18 insertions, 5 deletions
diff --git a/multimedia/xawtv/Makefile b/multimedia/xawtv/Makefile
index 09f577e..393d388 100644
--- a/multimedia/xawtv/Makefile
+++ b/multimedia/xawtv/Makefile
@@ -28,7 +28,7 @@ USE_GMAKE= yes
USE_XPM= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
-CONFIGURE_ENV= LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib"
+CONFIGURE_ENV= LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib" CFLAGS="${CFLAGS} -g"
MAKE_ENV= verbose=yes
INSTALLS_SHLIB= yes
@@ -46,7 +46,7 @@ MAN8= v4l-conf.8
.if ${OSVERSION} < 500000
ONLY_FOR_ARCHS= i386
.else
-ONLY_FOR_ARCHS= alpha i386
+ONLY_FOR_ARCHS= alpha amd64 i386
.endif
.if defined(WITHOUT_AA)
diff --git a/multimedia/xawtv/files/patch-libng::plugins::drv0-bsd.c b/multimedia/xawtv/files/patch-libng::plugins::drv0-bsd.c
index ee24825..283b76e 100644
--- a/multimedia/xawtv/files/patch-libng::plugins::drv0-bsd.c
+++ b/multimedia/xawtv/files/patch-libng::plugins::drv0-bsd.c
@@ -1,5 +1,5 @@
---- libng/plugins/drv0-bsd.c.orig Wed Feb 11 23:13:04 2004
-+++ libng/plugins/drv0-bsd.c Wed Feb 11 23:13:10 2004
+--- libng/plugins/drv0-bsd.c.orig Wed Mar 12 17:45:56 2003
++++ libng/plugins/drv0-bsd.c Mon May 23 17:01:27 2005
@@ -23,10 +23,12 @@
#ifdef HAVE_DEV_IC_BT8XX_H
@@ -15,7 +15,20 @@
#endif
#include "grab-ng.h"
-@@ -599,7 +599,15 @@
+@@ -502,10 +504,11 @@
+ static int bsd_read_attr(struct ng_attribute *attr)
+ {
+ struct bsd_handle *h = attr->handle;
+- int arg, get, set, i;
++ int get, set, i;
++ long arg;
+ int value = -1;
+
+ switch (attr->id) {
+ case ATTR_ID_NORM:
+ if (-1 != xioctl(h->fd,BT848GFMT,&arg))
+ for (i = 0; i < sizeof(norms_map)/sizeof(int); i++)
+@@ -599,7 +605,15 @@
static int bsd_tuned(void *handle)
{
OpenPOWER on IntegriCloud