#!/bin/sh
-export version=0.7.9
+export version=0.8.8
export soversion=5
show_help()
--libdir=directory - lib directory (default: $prefix/lib)
--datadir=directory - data directory (default: $prefix/share)
--mandir=directory - man documentation directory (default: $prefix/share/man)
+ --rename-melt - Give melt executable a different name.
+ --no-compat-dirs - Do not create compatibility, unversioned, files and directories
--enable-gpl - Enable GPLv2 components
--enable-gpl3 - Enable GPLv3 components
--enable-debug - Compile without optimizations support (default: off)
echo "bindir=$prefix/bin"
echo "datadir=$datadir"
echo "mandir=$mandir"
+ echo "compat_dirs=$compat_dirs"
+ echo "compat_nomelt=$compat_nomelt"
echo "targetos=$targetos"
[ "$mmx" = "true" ] &&
NetBSD)
[ "$optimisations" = "true" ] &&
echo "OPTIMISATIONS+=-ffast-math"
- echo "CFLAGS+=-pthread"
+ echo "CFLAGS+=-fPIC -pthread"
echo "SHFLAGS=-shared"
echo "RDYNAMIC=-rdynamic"
echo "LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed"
;;
esac
echo "LIBSUF=$LIBSUF"
+ echo "moduledir=${libdir}/mlt-${soversion}"
+ echo "mltdatadir=${datadir}/mlt-${soversion}"
+ echo "meltname=${meltname}"
) > config.mak
echo "#!/bin/sh" > mlt-config
echo version=$version
echo cflags=`grep ^framework packages.dat | cut -f 2`
echo libs=`grep ^framework packages.dat | cut -f 3`
+ echo moduledir=${libdir}/mlt-${soversion}
+ echo mltdatadir=${datadir}/mlt-${soversion}
+ echo meltbin=${prefix}/bin/${meltname}
) >> mlt-framework.pc
cat mlt-framework.pc.in >>mlt-framework.pc
export targetos=$(uname -s)
export targetarch=
export amd64=false
+export compat_dirs=true
+export compat_nomelt=false
+
+# Define the compiler used in tests (gcc is not installed everywhere)
+: ${CC:=gcc}
# Iterate through arguments
for i in "$@"
--libdir=* ) libdir="${i#--libdir=}" ;;
--datadir=* ) datadir="${i#--datadir=}" ;;
--mandir=* ) mandir="${i#--mandir=}" ;;
+ --rename-melt=* ) meltname="${i#--rename-melt=}"; compat_nomelt=true ;;
+ --no-compat-dirs ) compat_dirs=false ;;
--enable-debug ) optimisations=false ;;
--disable-debug ) debug=false ;;
--disable-mmx ) mmx=false; sse=false; sse2=false ;;
esac
done
+if [ -z "${meltname}" ]
+then
+ meltname=melt${soversion}
+fi
+
# Chose appropriate suffix for libraries
case $targetos in
Darwin)
[ "$datadir" = "" ] && datadir=$prefix/share
[ "$mandir" = "" ] && mandir=$prefix/share/man
+export moduledir=${libdir}/mlt-${soversion}
+export mltdatadir=${datadir}/mlt-${soversion}
+
# Double check MMX (Darwin, Linux and FreeBSD supported, may end up disabling MMX on other platforms incorrectly)
if [ "$mmx" = "true" ]
then
[ $help = 0 ] && echo "Configuring `basename $i`:"
olddir=`pwd`
cd src/$i
- ./configure "$@"
+ CC="$CC" ./configure "$@"
[ $? != 0 ] && exit 1
cd $olddir
fi