MLT library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mlt-config-template 771B

1234567891011121314151617181920212223242526272829303132
  1. export package=framework
  2. export field=0
  3. while [ "$1" != "" ]
  4. do
  5. case $1 in
  6. --help ) field=0 ;;
  7. --version ) field=-1 ;;
  8. --prefix ) field=-2 ;;
  9. --prefix=* ) prefix="${i#--prefix=}" ;;
  10. --cflags ) field=2 ;;
  11. --libs ) field=3 ;;
  12. --list ) field=1; package="" ;;
  13. * ) package=$1 ;;
  14. esac
  15. shift
  16. done
  17. if [ "$field" = "0" ]
  18. then echo "Usage: mlt-config [ --version ] | [ --prefix=dir ] [ [ package ] [ --cflags ] [ --libs ] ]"
  19. elif [ "$field" = "-1" ]
  20. then echo $version
  21. elif [ "$field" = "-2" ]
  22. then config=`which mlt-config`
  23. dir=`dirname $config`
  24. dir=`dirname $dir`
  25. echo $dir
  26. elif [ -f "$prefix/share/mlt/packages.dat" ]
  27. then grep "^$package" $prefix/share/mlt/packages.dat | cut -f $field
  28. else echo mlt-config cannot find package $package.
  29. fi