openwrt-packages/multimedia
Jan Kratochvil e429c11b04 ffmpeg: fix compilation error of ffmpeg-custom
Fixes: #12320

After plain enable of libffmpeg-custom and ffmpeg-custom which adds:
- CONFIG_PACKAGE_libbz2=m
- CONFIG_PACKAGE_libffmpeg-custom=m
- CONFIG_FFMPEG_CUSTOM_GPL=y
- CONFIG_PACKAGE_zlib=m
- CONFIG_PACKAGE_ffmpeg-custom=m

I get on v22.03.5 compilation error:
```
cp -fpR /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-install/usr/bin/ffmpeg /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-mips_24kc/ffmpeg-custom/usr/bin/
cp: cannot stat '/.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-install/usr/bin/ffmpeg': No such file or directory
make[2]: *** [Makefile:756: /.../openwrt-git/bin/packages/mips_24kc/packages/ffmpeg-custom_5.1-1_mips_24kc.ipk] Error 1
```

It is because configure is missing `ffmpeg` in its `Programs:` section:
```
( cd /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1; CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1=ffmpeg-5.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/include -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/include/fortify -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/include -DPIC -fpic" LDFLAGS="-L/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/lib -L/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib -znow -zrelro" ./configure --enable-cross-compile --cross-prefix="mips-openwrt-linux-musl-" --arch="mips" --cpu=24kc --target-os=linux --prefix="/usr" --pkg-config="pkg-config" --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-altivec --disable-vsx --disable-power8 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-fast-unaligned --disable-runtime-cpudetect --disable-x86asm --enable-small --enable-gpl --disable-programs --disable-avfilter --disable-swresample --disable-swscale --disable-everything                                                                                                                                                                                                                                                                                      --disable-postproc )
install prefix            /usr
source path               .
C compiler                mips-openwrt-linux-musl-gcc
C library
host C compiler           gcc
host C library            glibc
ARCH                      mips (24kc)
big-endian                yes
runtime cpu detection     no
MIPS FPU enabled          no
MIPS DSP R1 enabled       no
MIPS DSP R2 enabled       no
MIPS MSA enabled          no
LOONGSON MMI enabled      no
debug symbols             no
strip symbols             yes
optimize for size         yes
optimizations             yes
static                    yes
shared                    yes
postprocessing support    no
network support           yes
threading support         pthreads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          yes
makeinfo supports HTML    no
xmllint enabled           yes

External libraries:
alsa                    iconv
bzlib                   zlib

External libraries providing hardware acceleration:
cuda_llvm               v4l2_m2m

Libraries:
avcodec                 avformat
avdevice                avutil

Programs:

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: GPL version 2 or later
```

Signed-off-by: Jan Kratochvil <jan@jankratochvil.net>
2023-10-05 14:37:03 -07:00
..
ffmpeg ffmpeg: fix compilation error of ffmpeg-custom 2023-10-05 14:37:03 -07:00
fswebcam treewide: remove rpath-link 2022-03-13 00:02:02 -08:00
gphoto2 gphoto2: fix compilation with BUILD_NLS 2023-01-13 00:03:49 -08:00
graphicsmagick treewide: refactor to use PKG_BUILD_FLAGS:=lto 2023-04-08 08:38:54 +02:00
grilo treewide: make all GNOME URLs consistent 2023-07-11 08:37:37 -07:00
grilo-plugins treewide: make all GNOME URLs consistent 2023-07-11 08:37:37 -07:00
gst1-libav gst1-libav: update to 1.22.3 2023-05-26 10:28:51 +08:00
gst1-plugins-bad gst1-plugins-bad: update to 1.22.3 2023-05-26 10:28:51 +08:00
gst1-plugins-base gst1-plugins-base: update to 1.22.3 2023-05-26 10:28:51 +08:00
gst1-plugins-good gst1-plugins-good: update to 1.22.3 2023-05-26 10:28:51 +08:00
gst1-plugins-ugly gst1-plugins-ugly: update to 1.22.3 2023-05-26 10:28:51 +08:00
gstreamer1 gstreamer1: update to 1.22.3 2023-05-26 10:28:51 +08:00
icecast icecast: add libxml2 include directory 2022-12-27 09:52:07 -03:00
ices ices: Update to 2.0.3 2022-11-21 15:09:43 +01:00
imagemagick treewide: refactor to use PKG_BUILD_FLAGS:=lto 2023-04-08 08:38:54 +02:00
lcdgrilo lcdgrilo: add gstreamer1-libs dependency 2020-03-19 03:17:17 -07:00
midisport-firmware midisport-firmware: add package 2022-09-17 02:00:59 +01:00
minidlna minidlna: update to 1.3.3 2023-06-29 18:05:10 -07:00
minisatip minisatip: add libdvbcsa support 2021-04-06 15:22:35 -07:00
mjpg-streamer treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
motion motion: refresh patches 2022-12-25 18:39:13 -08:00
oggfwd treewide: run "make check FIXUP=1" 2017-08-29 21:41:14 -07:00
rtpmidid treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
ttymidi-sysex treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
tvheadend tvheadend: add dependency on gettext (host) 2023-06-22 21:35:11 +03:00
v4l2camera v4l2camera: add new package 2023-07-20 14:51:58 +08:00
v4l2rtspserver treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
v4l2tools v4l2tools: upgrade to release 0.2.0 2023-01-29 20:32:26 -08:00
xupnpd xupnpd: fix compilation with musl 1.2.4 2023-05-18 09:29:06 +08:00
yt-dlp yt-dlp: add missing dependencies 2023-08-10 05:07:31 +08:00