#!/bin/sh path=`which tclsh 2>/dev/null` if [ "$path" != "" ] then ln -sf ../mlt.i # Invoke swig swig -c++ -I../../melted++ `pkg-config mlt++ --cflags` -tcl mlt.i || exit 1 # Compile the wrapper g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../melted++ `pkg-config mlt++ --cflags` mlt_wrap.cxx || exit 1 # Create the module gcc -shared mlt_wrap.o -L../../melted++ -lmelted++ -o mlt.so || exit 1 else echo "Unable to locate tclsh." exit 1 fi