1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

- add amd64 to ONLY_FOR_ARCHS

- fix build for amd64
- fix a bug on amd64 which caused xawtv to segfault on startup
This commit is contained in:
Oliver Lehmann 2005-05-23 15:08:49 +00:00
parent 6417242635
commit bf76f2fafc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135967
2 changed files with 18 additions and 5 deletions

View File

@ -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)

View File

@ -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)
{