You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mlt/src/modules/sox/configure

47 lines
896 B

#!/bin/sh
if [ "$help" != "1" ]
then
which libst-config > /dev/null 2>&1
if [ $? -eq 0 ]
then
disable_sox=0
echo "CFLAGS += $(libst-config --cflags) -I../../" > config.mak
echo "LDFLAGS += -lst $(libst-config --libs)" >> config.mak
else
sox --version 2> /dev/null | grep 'v14.' > /dev/null
disable_sox=$?
if [ $disable_sox -eq 0 ]
then
LIBDIR=lib
#bits=$(uname -m)
#case $bits in
#x86_64)
# export LIBDIR=lib64
# ;;
#*)
# export LIBDIR=lib
# ;;
#esac
sox=$(which sox)
# chop sox
soxdir=$(dirname $sox)
# chop bin
soxdir=$(dirname $soxdir)
echo "CFLAGS += -DSOX14 -I$soxdir/include" > config.mak
echo "LDFLAGS += -L$soxdir/$LIBDIR -lsox -lsfx" >> config.mak
fi
fi
if [ "$disable_sox" = "0" ]
then
echo "sox libmltsox$LIBSUF" >> ../filters.dat
else
echo "- sox not found: disabling"
touch ../disable-sox
fi
fi