# Invoke swig
mkdir -p src_swig/net/sourceforge/mltpp
- swig -c++ -I../../src `mlt-config --cflags` -java -outdir src_swig/net/sourceforge/mltpp -package net.sourceforge.mltpp mltpp.i || exit $?
+ swig -c++ -I../../src `pkg-config mlt-framework --cflags` -java -outdir src_swig/net/sourceforge/mltpp -package net.sourceforge.mltpp mltpp.i || exit $?
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `mlt-config --cflags` mltpp_wrap.cxx $JAVA_INCLUDE || exit $?
+ g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `pkg-config mlt-framework --cflags` mltpp_wrap.cxx $JAVA_INCLUDE || exit $?
# Create the module
ld -shared mltpp_wrap.o -L../../src -lmlt++ -o libmltpp_java.so || exit $?
my $CXX = $ENV{'CXX'} || 'g++';
system( "ln -sf ../mltpp.i ." );
-system( "swig -c++ -I../../src `mlt-config --cflags` -perl5 mltpp.i" );
+system( "swig -c++ -I../../src `pkg-config mlt-framework --cflags` -perl5 mltpp.i" );
WriteMakefile(
'NAME' => 'mltpp',
- 'CC' => '${CXX} `mlt-config --cflags` -I../../src',
+ 'CC' => '${CXX} `pkg-config mlt-framework --cflags` -I../../src',
'OPTIMIZE' => '-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386',
'LIBS' => ['-L../../src -lmlt++'],
'OBJECT' => 'mltpp_wrap.o',
ln -sf ../mltpp.i .
# Invoke swig
- swig -c++ -I../../src `mlt-config --cflags` -python mltpp.i || exit $?
+ swig -c++ -I../../src `pkg-config mlt-framework --cflags` -python mltpp.i || exit $?
# Compile the wrapper
- g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `mlt-config --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
+ g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config mlt-framework --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
# Create the module
ld -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?
#!/usr/bin/env ruby
require 'mkmf'
system( "ln -sf ../mltpp.i mltpp.i" )
-system( "swig -c++ -ruby -I../../src `mlt-config --cflags` mltpp.i" )
-$CFLAGS += " -I../../src `mlt-config --cflags`"
+system( "swig -c++ -ruby -I../../src `pkg-config mlt-framework --cflags` mltpp.i" )
+$CFLAGS += " -I../../src `pkg-config mlt-framework --cflags`"
$LDFLAGS += " -L../../src -lmlt++"
create_makefile('mltpp')
system( 'make' )
ln -sf ../mltpp.i .
# Invoke swig
- swig -c++ -I../../src `mlt-config --cflags` -tcl mltpp.i || exit 1
+ swig -c++ -I../../src `pkg-config mlt-framework --cflags` -tcl mltpp.i || exit 1
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `mlt-config --cflags` mltpp_wrap.cxx || exit 1
+ g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `pkg-config mlt-framework --cflags` mltpp_wrap.cxx || exit 1
# Create the module
ld -shared mltpp_wrap.o -L../../src -lmlt++ -o mltpp.so || exit 1
include ../config.mak
-CXXFLAGS+=-Wall -g `mlt-config --cflags` -I ../src
-LDFLAGS+=-L../src -lmlt++ -lmiracle -lvalerie `mlt-config --libs`
+CXXFLAGS+=-Wall -g `pkg-config mlt-framework --cflags` -I ../src
+LDFLAGS+=-L../src -lmlt++ -lmiracle -lvalerie `pkg-config mlt-framework --libs`
CC=c++
all: play server