SHARE
TWEET

Untitled

a guest Aug 13th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ***************************************************************************
  2.  
  3. # ffmpeg
  4. # ***************************************************************************
  5.  
  6. ifdef SVN
  7. ifdef HAVE_WIN32
  8. ffmpeg: .dshow_headers
  9. else
  10. ffmpeg:
  11. endif
  12.         $(SVN) co $(FFMPEG_SVN) ffmpeg
  13. ifdef HAVE_ISA_THUMB
  14.         patch -p0 < Patches/ffmpeg-avcodec-no-thumb.patch
  15. endif
  16. ifdef HAVE_WIN64
  17.         (cd ffmpeg/libswscale; patch -p0 < ../../Patches/ffmpeg-win64.patch;)
  18. endif
  19. ifdef HAVE_UCLIBC
  20.         patch -p0 < Patches/ffmpeg-svn-uclibc.patch
  21.         patch -p0 < Patches/ffmpeg-svn-internal-define.patch
  22.         patch -p0 < Patches/ffmpeg-svn-libavformat.patch
  23. endif
  24. ifdef HAVE_WIN32
  25.         sed -i "s/std=c99/std=gnu99/" ffmpeg/configure
  26. endif
  27.         (cd ffmpeg; patch -p1 < ../Patches/libavformat-ape.c.patch )
  28.  
  29. else
  30. ffmpeg-$(FFMPEG_VERSION).tar.gz:
  31.         echo "ffmpeg snapshot is too old, you MUST use subversion !"
  32.         exit -1
  33.         $(WGET) $(FFMPEG_URL)
  34.  
  35. ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz
  36.         $(EXTRACT_GZ)
  37. endif
  38.  
  39. FFMPEGCONF += \
  40.         --disable-debug \
  41.         --enable-gpl \
  42.         --enable-postproc \
  43.         --disable-ffserver \
  44.         --disable-ffmpeg \
  45.         --disable-ffplay \
  46.         --disable-devices \
  47.         --disable-protocols \
  48.         --disable-filters \
  49.         --disable-network
  50. ifdef HAVE_WIN64
  51. FFMPEGCONF += --disable-bzlib --disable-decoder=dca --disable-encoder=vorbis --enable-libmp3lame --enable-w32threads --disable-dxva2 --disable-bsfs
  52. else
  53. ifdef HAVE_WIN32
  54. FFMPEGCONF += --disable-bzlib --disable-decoder=dca --disable-encoder=vorbis --enable-libmp3lame --enable-w32threads --enable-dxva2 --disable-bsfs
  55. else
  56. FFMPEGCONFG += --enable-pthreads
  57. endif
  58. endif
  59.  
  60. ifdef HAVE_WINCE
  61. .ffmpeg: ffmpeg .zlib
  62. else
  63. ifdef HAVE_UCLIBC
  64. .ffmpeg: ffmpeg
  65. else
  66. .ffmpeg: ffmpeg .lame .gsm
  67. endif
  68. endif
  69.         (cd $<; $(HOSTCC) ./configure --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) $(FFMPEG_CFLAGS)" --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) --disable-shared --enable-static && make && make install-libs install-headers)
  70.         touch $@
  71.  
  72. ifdef SVN
  73. ffmpeg-source: ffmpeg
  74.         tar cv --exclude=.svn ffmpeg | bzip2 > ffmpeg-$(DATE).tar.bz2
  75.  
  76. SOURCE += ffmpeg-source
  77. endif
  78.  
  79. CLEAN_FILE += .ffmpeg
  80. CLEAN_PKG += ffmpeg
  81. DISTCLEAN_PKG += ffmpeg-$(FFMPEG_VERSION).tar.gz
RAW Paste Data
Top