Sha256: 699a99e136df0ab94011dcf6fefc4bc5baf03fc13dfb67c044c725dda25525cf

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

require 'mkmf'
require 'fileutils'
require 'mini_portile2'
ffmpeg_ver = '2.7.1'
recipe = MiniPortile.new('ffmpeg', ffmpeg_ver)
recipe.files = ["https://github.com/FFmpeg/FFmpeg/archive/n#{ffmpeg_ver}.tar.gz"]
recipe.configure_options = ['--enable-shared']
checkpoint = ".#{recipe.name}-#{recipe.version}.installed"
unless File.exist?(checkpoint)
  recipe.cook
  FileUtils.touch(checkpoint)
end
recipe.activate

$INCFLAGS << " -I#{recipe.path}/include"
$CXXFLAGS += '-fPIC'
unless ENV['LIBRARY_PATH'].nil?
  $LDFLAGS <<" -Wl,-rpath,#{ENV['LIBRARY_PATH']}:#{File.expand_path(File.dirname(__FILE__))}"
end

have_library('avcodec') or raise
have_library('avformat') or raise

create_makefile('ffmpeg_video_info_ext')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffmpeg-video-info-0.2.8 ext/ffmpeg_video_info_ext/extconf.rb
ffmpeg-video-info-0.2.7 ext/ffmpeg_video_info_ext/extconf.rb
ffmpeg-video-info-0.2.4 ext/ffmpeg_video_info_ext/extconf.rb