diff options
author | gblach <gblach@FreeBSD.org> | 2013-01-01 01:32:16 +0800 |
---|---|---|
committer | gblach <gblach@FreeBSD.org> | 2013-01-01 01:32:16 +0800 |
commit | bd02842eb70bf618eed9e038f4e29e6fab831ace (patch) | |
tree | a53ac7f81ff43a3769fa85be23e1fa6180cf56d8 /multimedia | |
parent | 0f78293e1da544a4d89779f59e642165bae47d52 (diff) | |
download | freebsd-ports-gnome-bd02842eb70bf618eed9e038f4e29e6fab831ace.tar.gz freebsd-ports-gnome-bd02842eb70bf618eed9e038f4e29e6fab831ace.tar.zst freebsd-ports-gnome-bd02842eb70bf618eed9e038f4e29e6fab831ace.zip |
- Fix linking with giflib
- Fix linking with libbluray
PR: ports/174842
Approved by: crees (mentor)
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer2/Makefile | 1 | ||||
-rw-r--r-- | multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/multimedia/mplayer2/Makefile b/multimedia/mplayer2/Makefile index 1c85c7b41698..87062ccfce5f 100644 --- a/multimedia/mplayer2/Makefile +++ b/multimedia/mplayer2/Makefile @@ -166,7 +166,6 @@ CONFIGURE_ARGS+= --disable-portaudio .if ${PORT_OPTIONS:MLIBBLURAY} LIB_DEPENDS+= bluray:${PORTSDIR}/multimedia/libbluray -CONFIGURE_ARGS+= --enable-bluray .else CONFIGURE_ARGS+= --disable-bluray .endif diff --git a/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c b/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c new file mode 100644 index 000000000000..49944180d6c6 --- /dev/null +++ b/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c @@ -0,0 +1,19 @@ +--- libmpdemux/demux_gif.c.orig 2012-12-31 00:26:50.000000000 +0100 ++++ libmpdemux/demux_gif.c 2012-12-31 00:30:54.000000000 +0100 +@@ -44,6 +44,16 @@ + + #define GIF_SIGNATURE (('G' << 16) | ('I' << 8) | 'F') + ++static void PrintGifError(void) ++{ ++ char *Err = GifErrorString(); ++ ++ if (Err != NULL) ++ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); ++ else ++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); ++} ++ + #ifndef CONFIG_GIF_TVT_HACK + // not supported by certain versions of the library + static int my_read_gif(GifFileType *gif, uint8_t *buf, int len) |