summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]media-libs/mlt/files/mlt-0.9.8-ruby-link.patch29
1 files changed, 14 insertions, 15 deletions
diff --git a/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch b/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
index 3dd319a54a2f..9b2327d1dc87 100755..100644
--- a/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
+++ b/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
@@ -1,20 +1,19 @@
-The build system tries to link to installed system libraries first, which
+The build system tries to link to installed system libraries first, which
fails because the ABI has changed...
---- swig/ruby/build
-+++ swig/ruby/build
-@@ -0,0 +1,14 @@
-+#!/usr/bin/env ruby
-+require 'mkmf'
-+if ARGV.shift == 'clean'
-+ system( "rm -f *.cxx *.so *.o mlt.i ../.ruby Makefile" )
-+ exit 0
-+end
-+system( "ln -sf ../mlt.i" )
+Index: mlt-0.9.8/src/swig/ruby/build
+===================================================================
+--- mlt-0.9.8.orig/src/swig/ruby/build
++++ mlt-0.9.8/src/swig/ruby/build
+@@ -5,8 +5,10 @@ if ARGV.shift == 'clean'
+ exit 0
+ end
+ system( "ln -sf ../mlt.i" )
+system( "ln -sf ../../framework/libmlt.so" )
+system( "ln -sf ../../mlt++/libmlt++.so" )
-+system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
-+$CFLAGS += " -I../.. " + (ENV.has_key?('CXXFLAGS')? ENV['CXXFLAGS'] : '')
+ system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
+ $CFLAGS += " -I../.. " + (ENV.has_key?('CXXFLAGS')? ENV['CXXFLAGS'] : '')
+-$LDFLAGS += " -L../../mlt++ -lmlt++"
+$LIBS += " -lmlt++ -lmlt -lstdc++"
-+create_makefile('mlt')
-+system( "make" )
+ create_makefile('mlt')
+ system( "make" )