1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

These files were left out of the previous checkin by mistake.

PR:				ports/62017
Submitted by/reminded by:	David Yeske (maintainer)
This commit is contained in:
Mark Linimon 2004-02-02 01:55:44 +00:00
parent a722c752b2
commit fa636c762b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99773
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- mpeg2dec/configure.orig Thu Jun 12 21:31:41 2003
+++ mpeg2dec/configure Thu Jun 12 21:32:01 2003
@@ -7842,6 +7842,7 @@
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
# Always use our own libtool.
LIBTOOL='${SHELL} /usr/local/bin/libtool'

View File

@ -0,0 +1,42 @@
--- mpeg2dec/libvo/video_out_x11.c.orig Fri Jun 6 02:15:57 2003
+++ mpeg2dec/libvo/video_out_x11.c Sun Jan 25 00:03:30 2004
@@ -235,7 +235,9 @@
/* this would break the solaris port though :-/ */
/* fuck solaris, plug the leak! */
+#ifndef __FreeBSD__
shmctl(instance->shminfo.shmid, IPC_RMID, 0);
+#endif
/* XShmAttach fails on remote displays, so we have to catch this event */
@@ -254,6 +256,9 @@
return NULL;
}
+#ifdef __FreeBSD__
+ shmctl(instance->shminfo.shmid, IPC_RMID, 0);
+#endif
return instance->shminfo.shmaddr;
}
@@ -640,6 +645,9 @@
if (instance == NULL)
return NULL;
+#ifdef __FreeBSD__
+ memset(instance, 0, sizeof(*instance));
+#endif
instance->vo.setup = x11_setup;
return (vo_instance_t *) instance;
}
@@ -658,6 +666,9 @@
if (instance == NULL)
return NULL;
+#ifdef __FreeBSD__
+ memset(instance, 0, sizeof(*instance));
+#endif
instance->vo.setup = xv_setup;
return (vo_instance_t *) instance;
}

View File

@ -0,0 +1,14 @@
--- mpeg2dec/libvo/vroot.h.orig Thu Dec 12 04:33:33 2002
+++ mpeg2dec/libvo/vroot.h Sun Jan 25 00:42:03 2004
@@ -98,7 +98,11 @@
__SWM_VROOT, 0, 1, False, XA_WINDOW,
&actual_type, &actual_format,
&nitems, &bytesafter,
+#ifdef __FreeBSD__
+ (void *)&newRoot) == Success
+#else
(unsigned char **) &newRoot) == Success
+#endif
&& newRoot) {
root = *newRoot;
break;