X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt-config-template;h=5559bf73072a2890cdefdfdbdb69b44c9e0e748d;hb=66509fd3206d09ae512886560660ac88d4b9c128;hp=ec0db9f8265bc9afcfc897a9e8c58c3fc9c92618;hpb=d6aab64e889e8b27370d585452e2d712a7a948a9;p=melted diff --git a/mlt-config-template b/mlt-config-template index ec0db9f..5559bf7 100644 --- a/mlt-config-template +++ b/mlt-config-template @@ -6,6 +6,7 @@ do case $1 in --help ) field=0 ;; --version ) field=-1 ;; + --prefix ) field=-2 ;; --prefix=* ) prefix="${i#--prefix=}" ;; --cflags ) field=2 ;; --libs ) field=3 ;; @@ -19,6 +20,11 @@ if [ "$field" = "0" ] then echo "Usage: mlt-config [ --version ] | [ --prefix=dir ] [ [ package ] [ --cflags ] [ --libs ] ]" elif [ "$field" = "-1" ] then echo $version +elif [ "$field" = "-2" ] +then config=`which mlt-config` + dir=`dirname $config` + dir=`dirname $dir` + echo $dir elif [ -f "$prefix/share/mlt/packages.dat" ] then grep "^$package" $prefix/share/mlt/packages.dat | cut -f $field else echo mlt-config cannot find package $package.