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