done
dist-clean:
- rm mlt-config packages.dat config.mak; \
+ rm mlt-config packages.dat; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) -C $$subdir $@; \
- done
+ done; \
+ rm config.mak;
install:
install -d "$(prefix)/bin"
install -d "$(prefix)/include"
install -d "$(prefix)/lib"
+ install -d "$(prefix)/lib/pkgconfig"
install -d "$(prefix)/share/mlt/modules"
install -c -m 755 mlt-config "$(bindir)"
+ install -c -m 644 *.pc "$(prefix)/lib/pkgconfig"
install -m 644 packages.dat "$(prefix)/share/mlt/"
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) -C $$subdir $@; \
done; \
/sbin/ldconfig || true
-
-README
-------
+MLT/Miracle README
+------------------
+ Copyright (C) 2003-2004 Ushodaya Enterprises Limited
+ by Charles Yates <charles.yates@pandora.be>
+ and Dan Dennedy <dan@dennedy.org>
+
+ MLT is a multimedia framework designed for television broadcasting, and
+ Miracle is a multi-unit video playout server with realtime effects.
This document provides a quick reference for the minimal configuration,
- build and installation of MLT.
+ build and installation of MLT. See the docs directory for usage and
+ development details.
Configuration
-------------
function build_config
{
(
- echo version=0.1.0
+ echo version=$version
echo prefix=$prefix
echo bindir=$prefix/bin
) > config.mak
echo -n > packages.dat
}
+function build_pkgconfig
+{
+ for i in framework valerie miracle
+ do
+ echo "prefix=$prefix" >mlt-$i.pc
+ echo "exec_prefix=$prefix" >>mlt-$i.pc
+ echo "libdir=$prefix/lib" >>mlt-$i.pc
+ echo "includedir=$prefix/include" >>mlt-$i.pc
+ echo "version=$version" >>mlt-$i.pc
+ echo "cflags=`grep ^$i packages.dat | cut -f 2`" >>mlt-$i.pc
+ echo "libs=`grep ^$i packages.dat | cut -f 3`" >>mlt-$i.pc
+ cat mlt-$i.pc.in >>mlt-$i.pc
+ done
+}
+
# Debug mode
set +x
export build_dir=`dirname $0`
export prefix=/usr/local
export help=0
+export version=0.1.0
# Iterate through arguments
for i in $*
done
# Show help if requested
-[ $help = 1 ] && show_help || build_config
+[ $help = 1 ] && show_help || build_config
# Iterate through each of the components
for i in framework modules inigo valerie miracle humperdink
fi
done
+# Build the pkg-config files
+build_pkgconfig
--- /dev/null
+
+Name: mlt-framework
+Description: MLT multimedia framework
+Version: ${version}
+Requires:
+Libs: -L${libdir} ${libs}
+Cflags: ${cflags}
--- /dev/null
+
+Name: mlt-miracle
+Description: MLT Miracle server API
+Version: ${version}
+Requires:
+Libs: -L${libdir} ${libs}
+Cflags: ${cflags}
--- /dev/null
+
+Name: mlt-valerie
+Description: MLT Valerie client API
+Version: ${version}
+Requires:
+Libs: -L${libdir} ${libs}
+Cflags: ${cflags}