freebsd-ports/graphics/gegl
Jan Beich e20fd87bcf graphics/gegl: unbreak FFMPEG=on runtime
$ gimp /path/to/file.png
GEGL-geglmodule.c-Message: Module '/usr/local/lib/gegl-0.2/ff-load.so'
load error: /usr/local/lib/gegl-0.2/ff-load.so: Undefined symbol "av_read_packet"

$ echo CFLAGS+=-Werror=implicit-function-declaration >>Makefile.local
$ make
[...]
./ff-load.c:140:9: error: implicit declaration of function 'av_close_input_file' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        av_close_input_file (p->ic);
        ^
./ff-load.c:219:23: error: implicit declaration of function 'av_read_packet' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
                  if (av_read_packet (p->ic, &p->pkt) < 0)
                      ^
./ff-load.c:274:13: error: implicit declaration of function 'av_open_input_file' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
      err = av_open_input_file (&p->ic, o->path, NULL, 0, NULL);
            ^
./ff-load.c:279:13: error: implicit declaration of function 'av_find_stream_info' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
      err = av_find_stream_info (p->ic);
            ^
./ff-load.c:279:13: note: did you mean 'avformat_find_stream_info'?
/usr/local/include/libavformat/avformat.h:2217:5: note: 'avformat_find_stream_info' declared here
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options);
    ^
./ff-load.c:315:11: error: implicit declaration of function 'avcodec_open' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
      if (avcodec_open (p->enc, p->codec) < 0)
          ^
./ff-load.c:315:11: note: did you mean 'avcodec_open2'?
/usr/local/include/libavcodec/avcodec.h:4324:5: note: 'avcodec_open2' declared here
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options);
    ^
./ff-load.c:324:23: error: implicit declaration of function 'avcodec_alloc_frame' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
      p->lavc_frame = avcodec_alloc_frame ();
                      ^

PR:		207547
Approved by:	portmgr blanket
2016-12-12 08:08:41 +00:00
..
files graphics/gegl: unbreak FFMPEG=on runtime 2016-12-12 08:08:41 +00:00
distinfo
Makefile graphics/gegl: unbreak FFMPEG=on runtime 2016-12-12 08:08:41 +00:00
pkg-descr
pkg-plist