X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fswig%2Fperl%2FMakefile.PL;h=4bc0ec659adc84fda22c1a710731c64c32377f50;hb=35f01227243619f1bf989825b56148a13a7223dc;hp=464f4ebc2a0db24a047835fc1e37c23c7632bb9c;hpb=3e27e17ee89f8ba89d53fbb9fc36f3b780c639f9;p=melted diff --git a/mlt++/swig/perl/Makefile.PL b/mlt++/swig/perl/Makefile.PL index 464f4eb..4bc0ec6 100644 --- a/mlt++/swig/perl/Makefile.PL +++ b/mlt++/swig/perl/Makefile.PL @@ -1,11 +1,16 @@ #!/bin/env perl use ExtUtils::MakeMaker; + +my $CXX = $ENV{'CXX'} || 'g++'; + system( "ln -sf ../mltpp.i ." ); system( "swig -c++ -I../../src `mlt-config --cflags` -perl5 mltpp.i" ); WriteMakefile( 'NAME' => 'mltpp', - 'CC' => 'g++ `mlt-config --cflags` -I../../src', + 'CC' => '${CXX} `mlt-config --cflags` -I../../src', + 'OPTIMIZE' => '-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386', 'LIBS' => ['-L../../src -lmlt++'], - 'OBJECT' => 'mltpp_wrap.o' + 'OBJECT' => 'mltpp_wrap.o', + 'DESTDIR' => $ENV{'DESTDIR'}, );