6 Funky non-autotool config script for MLT.
10 --help - this information
11 --prefix=directory - install prefix for path (default: $prefix)
14 for i in src/modules/*
16 [ -d $i ] && [ "`basename $i`" != "CVS" ] && echo " --disable-`basename $i`"
27 echo bindir=$prefix/bin
30 echo "#!/bin/sh" > mlt-config
31 sed 's/^/export /' < config.mak >> mlt-config
32 cat < mlt-config-template >> mlt-config
34 echo -n > packages.dat
37 function build_pkgconfig
39 for i in framework valerie miracle
41 echo "prefix=$prefix" >mlt-$i.pc
42 echo "exec_prefix=$prefix" >>mlt-$i.pc
43 echo "libdir=$prefix/lib" >>mlt-$i.pc
44 echo "includedir=$prefix/include" >>mlt-$i.pc
45 echo "version=$version" >>mlt-$i.pc
46 echo "cflags=`grep ^$i packages.dat | cut -f 2`" >>mlt-$i.pc
47 echo "libs=`grep ^$i packages.dat | cut -f 3`" >>mlt-$i.pc
48 cat mlt-$i.pc.in >>mlt-$i.pc
55 # Define build directory for scripts called
56 export build_dir=`dirname $0`
57 export prefix=/usr/local
61 # Iterate through arguments
66 --prefix=* ) prefix="${i#--prefix=}" ;;
70 # Show help if requested
71 [ $help = 1 ] && show_help || build_config
73 # Iterate through each of the components
74 for i in framework modules inigo valerie miracle humperdink
76 if [ -x src/$i/configure ]
78 echo "Configuring `basename $i`:"
79 pushd src/$i > /dev/null
86 # Build the pkg-config files