From b5ffb17cd26375ec255f2820cd224495f6586e5b Mon Sep 17 00:00:00 2001 From: ddennedy Date: Mon, 26 Jan 2009 18:32:03 +0000 Subject: [PATCH] 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 --- mlt++/swig/configure | 4 ++-- mlt++/swig/php/build | 6 ++++++ mlt++/swig/php/play.php | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 mlt++/swig/php/build create mode 100755 mlt++/swig/php/play.php 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 @@ + + -- 1.7.4.4