67 lines · 2.3 KB · Text
RawDownload
# This file is part of MXE. See LICENSE.md for licensing information. PKG             := ffmpeg$(PKG)_WEBSITE  := https://ffmpeg.org/$(PKG)_IGNORE   :=$(PKG)_VERSION  := 7.1.1$(PKG)_CHECKSUM := 733984395e0dbbe5c046abda2dc49a5544e7e0e1e2366bba849222ae9e3a03b1$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.xz$(PKG)_URL      := https://ffmpeg.org/releases/$($(PKG)_FILE)$(PKG)_DEPS     := cc bzip2 gnutls lame libass libbluray libbs2b libcaca \                   libvpx opencore-amr opus sdl2 speex theora vidstab \                   vo-amrwbenc vorbis x264 xvidcore yasm zlib # DO NOT ADD fdk-aac OR openssl SUPPORT.# Although they are free softwares, their licenses are not compatible with# the GPL, and we'd like to enable GPL in our default ffmpeg build.# See docs/index.html#potential-legal-issues define $(PKG)_UPDATE    $(WGET) -q -O- 'https://ffmpeg.org/releases/' | \    $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \    grep -v 'alpha\|beta\|rc\|git' | \    $(SORT) -Vr | \    head -1endef define $(PKG)_BUILD    cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/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-doc \        --enable-gpl \        --enable-version3 \        --extra-libs='-mconsole' \        --enable-gnutls \        --enable-libass \        --enable-libbluray \        --enable-libbs2b \        --enable-libcaca \        --enable-libmp3lame \        --enable-libopencore-amrnb \        --enable-libopencore-amrwb \        --enable-libopus \        --enable-libspeex \        --enable-libtheora \        --enable-libvidstab \        --enable-libvo-amrwbenc \        --enable-libvorbis \        --enable-libvpx \        --enable-libx264 \        --enable-libxvid \        --extra-ldflags="-fstack-protector" \        $($(PKG)_CONFIGURE_OPTS)    $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'    $(MAKE) -C '$(BUILD_DIR)' -j 1 installendef

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t