Mercurial > mxe-octave
view src/ffmpeg.mk @ 4606:86c3c1fd16f1
build-gcc, native-gcc: build with --enable-threads=posix
* build-gcc.mk, native-gcc.mk: Use --enable-threads=posix. Update
build rules. Disable multilib (no longer needed for nsis).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 26 Feb 2018 10:37:40 -0500 |
parents | 93c4bd7acd4b |
children | 634526bb6d83 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := ffmpeg $(PKG)_IGNORE := $(PKG)_VERSION := 3.3.2 $(PKG)_CHECKSUM := 584544ced449e4a05f17711da33d7c46fd72f2e4 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) $(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE) $(PKG)_DEPS := bzip2 gnutls lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib $(PKG)_CONFIG_OPTS := define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ head -1 endef ifeq ($(MXE_NATIVE_BUILD),no) define $(PKG)_BUILD '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure cd '$(1)' && ./configure \ --cross-prefix='$(MXE_TOOL_PREFIX)' \ --enable-cross-compile \ --target-os=mingw32 \ --arch=$(firstword $(subst -, ,$(TARGET))) \ --prefix='$(HOST_PREFIX)' \ $(ENABLE_SHARED_OR_STATIC) \ --yasmexe='$(BUILD_TOOLS_PREFIX)/bin/yasm' \ --extra-libs='-mconsole' \ --disable-debug \ --disable-doc \ --enable-avresample \ --enable-gpl \ --enable-version3 \ --disable-pthreads \ --enable-w32threads \ --enable-avisynth \ --enable-gnutls \ --enable-libspeex \ --enable-libtheora \ --enable-libvorbis \ --enable-libmp3lame \ --enable-libxvid \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libx264 \ --enable-libvpx $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install endef else define $(PKG)_BUILD '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure cd '$(1)' && CPPFLAGS=-I$(HOST_INCDIR) LDFLAGS=-L$(HOST_LIBDIR) ./configure \ --prefix='$(HOST_PREFIX)' \ $(ENABLE_SHARED_OR_STATIC) \ --disable-debug \ --disable-doc \ --enable-gpl \ --enable-version3 \ --disable-nonfree \ --enable-postproc \ --enable-avisynth \ --enable-libspeex \ --enable-libtheora \ --enable-libvorbis \ --enable-libmp3lame \ --enable-libxvid \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libx264 \ --enable-libvpx $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install endef endif