]> git.sesse.net Git - mlt/blob - mlt/configure
40b31a49225cf98bfb8e3b29afc135e31eb93733
[mlt] / mlt / configure
1 #!/bin/bash
2
3 function show_help
4 {
5         cat << EOF
6 Funky non-autotool config script for MLT.
7
8         Options are:
9
10         --help                  - this information
11         --prefix=directory      - install prefix for path (default: $prefix)
12 EOF
13
14         for i in src/modules/*
15         do
16                 [ -d $i ] && echo "     --disable-`basename $i`"
17         done
18
19         echo
20 }
21
22 # Debug mode
23 set +x
24
25 # Define build directory for scripts called
26 export build_dir=`dirname $0`
27 export prefix=/usr/local
28 export help=0
29
30 # Iterate through arguments
31 for i in $*
32 do
33         case $i in
34                 --help )                help=1 ;;
35                 --prefix=* )    prefix="${i#--prefix=}" ;;
36         esac
37 done
38
39 # Show help if requested
40 [ $help = 1 ] && show_help
41
42 # Iterate through each of the components
43 for i in framework modules valerie miracle humperdink
44 do
45         if [ -x src/$i/configure ]
46         then
47                 echo "Configuring `basename $i`:"
48                 pushd src/$i > /dev/null
49                 ./configure $@
50                 [ $? != 0 ] && exit 1
51                 popd > /dev/null
52         fi
53 done
54