From: ddennedy Date: Mon, 26 Jan 2009 18:32:03 +0000 (+0000) Subject: swig/configure, swig/php/*: add php bindings X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=b5ffb17cd26375ec255f2820cd224495f6586e5b;p=melted swig/configure, swig/php/*: add php bindings git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1325 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/mlt++/swig/configure b/mlt++/swig/configure index 971a5c2..794113a 100755 --- a/mlt++/swig/configure +++ b/mlt++/swig/configure @@ -7,14 +7,14 @@ pkg-config mlt-framework --cflags > /dev/null 2>&1 [ $? != 0 ] && echo "Please install mlt" && exit 1 if [ "$1" = "all" ] -then languages="perl python ruby tcl" +then languages="perl php python ruby tcl" elif [ "$1" != "" ] then languages=$* else echo "Usage: ./configure [ all | language * ]" exit 0 fi -for i in perl python ruby tcl +for i in perl php python ruby tcl do rm -f .$i done diff --git a/mlt++/swig/php/build b/mlt++/swig/php/build new file mode 100644 index 0000000..a06ed48 --- /dev/null +++ b/mlt++/swig/php/build @@ -0,0 +1,6 @@ +#!/bin/sh + +ln -s ../mltpp.i +swig -c++ -I../../src `pkg-config --cflags mlt-framework` -php5 -noproxy mltpp.i +g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config --cflags mlt-framework` `php-config --includes` mltpp_wrap.cpp + diff --git a/mlt++/swig/php/play.php b/mlt++/swig/php/play.php new file mode 100755 index 0000000..7cfa2fd --- /dev/null +++ b/mlt++/swig/php/play.php @@ -0,0 +1,21 @@ + +