Skip to content

Commit

Permalink
mpeg2vidcodec: fix implicit declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Mar 2, 2025
1 parent 904fd7a commit 40bf6c7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multimedia/mpeg2vidcodec/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ master_sites http://www.mpeg.org/pub_ftp/mpeg/mssg/ \
distname mpeg2
distfiles ${name}_v12${extract.suffix}
checksums md5 4a66565979be0818bd8a41d948943451
platforms darwin

patchfiles implicit.patch

variant x11 {
depends_lib port:xorg-libXext
Expand Down
63 changes: 63 additions & 0 deletions multimedia/mpeg2vidcodec/files/implicit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
--- src/mpeg2dec/mpeg2dec.c.orig 1996-07-20 08:27:38
+++ src/mpeg2dec/mpeg2dec.c 2025-03-03 01:27:30
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <ctype.h>
#include <fcntl.h>
+#include <unistd.h>

#define GLOBAL
#include "config.h"
--- src/mpeg2enc/readpic.c.orig 1996-07-20 08:49:30
+++ src/mpeg2enc/readpic.c 2025-03-03 01:30:02
@@ -147,6 +147,8 @@ unsigned char *frame[];

fclose(fd);
}
+
+int pbm_getint(FILE* file);

static void read_ppm(fname,frame)
char *fname;
--- src/mpeg2dec/getbits.c.orig 1995-12-31 13:59:54
+++ src/mpeg2dec/getbits.c 2025-03-03 01:33:54
@@ -34,6 +34,7 @@

#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>

#include "config.h"
#include "global.h"
--- src/mpeg2dec/store.c.orig 1996-01-09 22:03:42
+++ src/mpeg2dec/store.c 2025-03-03 01:36:15
@@ -29,7 +29,9 @@

#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <fcntl.h>
+#include <unistd.h>

#include "config.h"
#include "global.h"
--- src/mpeg2dec/spatscal.c.orig 1996-07-20 08:31:36
+++ src/mpeg2dec/spatscal.c 2025-03-03 01:37:56
@@ -1,5 +1,7 @@

#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "config.h"
#include "global.h"

--- src/mpeg2dec/subspic.c.orig 1996-07-20 07:44:49
+++ src/mpeg2dec/subspic.c 2025-03-03 01:39:57
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <unistd.h>

#include "config.h"
#include "global.h"

0 comments on commit 40bf6c7

Please sign in to comment.