add modified mxe ffmpeg package

This commit is contained in:
Connor Olding 2018-02-20 11:35:19 +01:00
parent 6c3013090b
commit 14a4be9b15
2 changed files with 94 additions and 0 deletions

View File

@ -25,3 +25,14 @@ currently, it doesn't follow any guidelines.
modified to download from a mirror.
the original URL is offline.
## mxe-src
there's some mxe stuff in this repo too.
just dump the files in mxe-src into mxe's src directory.
### ffmpeg
this package has been tweaked to build a more recent version
and to enable(-nonfree) some stuff they tell you not to.
there's licensing conflicts, so don't redistribute the resulting binaries.

83
mxe-src/ffmpeg.mk Normal file
View File

@ -0,0 +1,83 @@
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := ffmpeg
$(PKG)_WEBSITE := https://ffmpeg.org/
$(PKG)_IGNORE :=
$(PKG)_VERSION := acdea9e
$(PKG)_CHECKSUM := e0c5d95c2f9866bd15ae8beb258e95ec8dc5b491c9640528aa561c651e04a546
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/$($(PKG)_FILE)
$(PKG)_DEPS := cc bzip2 fdk-aac gnutls lame libass libbluray libbs2b \
libcaca librtmp libvpx libwebp opencore-amr opus \
sdl speex theora vidstab vo-amrwbenc \
vorbis x264 xvidcore yasm zlib \
freetype fontconfig fribidi \
vidstab
# NOTE: you'll have to manually copy ladspa.h into mxe's usr directory
#cp /usr/include/ladspa.h usr/x86_64-w64-mingw32.static/include/ladspa.h
# --enable-libebur128 \
# --enable-libflite \
# --enable-libzmq \
# --enable-opencl \
# NOTE: opencv should work if you pass the right C++ standard
# --enable-libopencv \
# also has an issue linking using gcc 6
# --enable-netcdf \
# doesn't exist anymore?
# --disable-ffserver \
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--cross-prefix='$(TARGET)'- \
--enable-cross-compile \
--arch=$(firstword $(subst -, ,$(TARGET))) \
--target-os=mingw32 \
--prefix='$(PREFIX)/$(TARGET)' \
$(if $(BUILD_STATIC), \
--enable-static --disable-shared , \
--disable-static --enable-shared ) \
--yasmexe='$(TARGET)-yasm' \
--disable-debug \
--disable-pthreads \
--enable-w32threads \
--disable-ffplay --disable-ffprobe \
--disable-doc \
--enable-avresample \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
\
--extra-libs='-mconsole' \
--enable-avisynth \
--enable-gnutls \
--enable-libass \
--enable-libbluray \
--enable-libbs2b \
--enable-libcaca \
--enable-libfdk-aac \
--enable-libmp3lame \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libopus \
--enable-librtmp \
--enable-libspeex \
--enable-libtheora \
--enable-libvidstab \
--enable-libvo-amrwbenc \
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libx264 \
--enable-libxvid \
\
--enable-ladspa \
--enable-libass \
--enable-libfreetype --enable-libfontconfig --enable-libfribidi \
--enable-libvidstab \
--enable-bzlib --enable-zlib
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef