hornetseye-qt4 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +6 -1
  2. data/ext/xvwidget.cc +2 -0
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-qt4'
10
- PKG_VERSION = '0.3.0'
10
+ PKG_VERSION = '0.3.1'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -104,11 +104,16 @@ file 'ext/config.h' do |t|
104
104
  # need to compile with -D__STDC_CONSTANT_MACROS
105
105
  if check_c_header 'libswscale/swscale.h'
106
106
  s << "#define HAVE_LIBSWSCALE_INCDIR 1\n"
107
+ s << "#undef HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
108
+ elsif check_c_header 'ffmpeg/libswscale/swscale.h'
109
+ s << "#undef HAVE_LIBSWSCALE_INCDIR\n"
110
+ s << "#define HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
107
111
  else
108
112
  unless check_c_header 'ffmpeg/swscale.h'
109
113
  raise 'Cannot find swscale.h header file'
110
114
  end
111
115
  s << "#undef HAVE_LIBSWSCALE_INCDIR\n"
116
+ s << "#undef HAVE_FFMPEG_LIBSWSCALE_INCDIR 1\n"
112
117
  end
113
118
  File.open( t.name, 'w' ) { |f| f.puts s }
114
119
  end
@@ -19,6 +19,8 @@
19
19
  extern "C" {
20
20
  #ifndef HAVE_LIBSWSCALE_INCDIR
21
21
  #include <ffmpeg/swscale.h>
22
+ #elif HAVE_FFMPEG_LIBSWSCALE_INCDIR
23
+ #include <ffmpeg/libswscale/swscale.h>
22
24
  #else
23
25
  #include <libswscale/swscale.h>
24
26
  #endif
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-qt4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-20 00:00:00.000000000 Z
12
+ date: 2013-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: qtbindings