Skip to content

Commit e4f5127

Browse files
committed
fixed giflib build on Linux when doc tools are missing by disabling docs
1 parent f7f5ba8 commit e4f5127

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-ffmpeg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ fi
369369
if build "giflib" "5.2.2"; then
370370
download "https://netcologne.dl.sourceforge.net/project/giflib/giflib-$CURRENT_PACKAGE_VERSION.tar.gz"
371371
cd "${PACKAGES}"/giflib-$CURRENT_PACKAGE_VERSION || exit
372+
#building docs fails if the tools needed are not installed
373+
#there is no option to not build the docs on Linux, we need to modify the Makefile
374+
sed 's/$(MAKE) -C doc//g' Makefile >Makefile.patched
375+
rm Makefile
376+
sed 's/install: all install-bin install-include install-lib install-man/install: all install-bin install-include install-lib/g' Makefile.patched >Makefile
372377
#multicore build disabled for this library
373378
execute make
374379
execute make PREFIX="${WORKSPACE}" install

0 commit comments

Comments
 (0)