GoldenDict compiling without avformat (ffmpeg)

Hi,
i would like to create GoldenDict package for openSUSE in OBS, but I can not use ffmpeg because of license. How can I compile GoldenDict with dissabled avformat (ffmpeg)?
i would like to create GoldenDict package for openSUSE in OBS, but I can not use ffmpeg because of license. How can I compile GoldenDict with dissabled avformat (ffmpeg)?