Make swig bindings a superset of mlt.
[melted] / src / swig / tcl / build
1 #!/bin/sh
2
3 path=`which tclsh 2>/dev/null`
4
5 if [ "$path" != "" ]
6 then
7         ln -sf ../mlt.i
8
9         # Invoke swig
10         swig -c++ -I../../melted++ `pkg-config mlt++ --cflags` -tcl mlt.i || exit 1
11
12         # Compile the wrapper
13         g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../melted++ `pkg-config mlt++ --cflags` mlt_wrap.cxx || exit 1
14
15         # Create the module
16         gcc -shared mlt_wrap.o -L../../melted++ -lmelted++ -o mlt.so || exit 1
17 else
18         echo "Unable to locate tclsh."
19         exit 1
20 fi
21