Skip to content

Commit

Permalink
added pkgconfig files.
Browse files Browse the repository at this point in the history
fixed broken dist-clean make target.


git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@256 d19143bc-622f-0410-bfdd-b5b2a6649095
  • Loading branch information
ddennedy committed Mar 28, 2004
1 parent a83b862 commit 380ba25
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,25 @@ all clean depend:
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

13 changes: 10 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
README
------
MLT/Miracle README
------------------

Copyright (C) 2003-2004 Ushodaya Enterprises Limited
by Charles Yates <[email protected]>
and Dan Dennedy <[email protected]>

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
-------------
Expand Down
22 changes: 20 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ EOF
function build_config
{
(
echo version=0.1.0
echo version=$version
echo prefix=$prefix
echo bindir=$prefix/bin
) > config.mak
Expand All @@ -34,13 +34,29 @@ function build_config
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

# Define build directory for scripts called
export build_dir=`dirname $0`
export prefix=/usr/local
export help=0
export version=0.1.0

# Iterate through arguments
for i in $*
Expand All @@ -52,7 +68,7 @@ do
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
Expand All @@ -67,3 +83,5 @@ do
fi
done

# Build the pkg-config files
build_pkgconfig
7 changes: 7 additions & 0 deletions mlt-framework.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Name: mlt-framework
Description: MLT multimedia framework
Version: ${version}
Requires:
Libs: -L${libdir} ${libs}
Cflags: ${cflags}
7 changes: 7 additions & 0 deletions mlt-miracle.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Name: mlt-miracle
Description: MLT Miracle server API
Version: ${version}
Requires:
Libs: -L${libdir} ${libs}
Cflags: ${cflags}
7 changes: 7 additions & 0 deletions mlt-valerie.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Name: mlt-valerie
Description: MLT Valerie client API
Version: ${version}
Requires:
Libs: -L${libdir} ${libs}
Cflags: ${cflags}

0 comments on commit 380ba25

Please sign in to comment.