X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mlt-config-template;fp=mlt-config-template;h=5559bf73072a2890cdefdfdbdb69b44c9e0e748d;hb=c919073e754576f5fd705d912b0f54e7c0f26267;hp=ec0db9f8265bc9afcfc897a9e8c58c3fc9c92618;hpb=e44d60cd847c677334722410b39846ff763e846d;p=mlt diff --git a/mlt-config-template b/mlt-config-template index ec0db9f8..5559bf73 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.