git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@705
d19143bc-622f-0410-bfdd-
b5b2a6649095
OBJS = factory.o \
filter_sox.o
-CFLAGS += -I../../ -I/usr/include/sox
-
-LDFLAGS += -lst -lpopt -lvorbis -logg -lvorbisfile -lvorbisenc
-
-LDFLAGS+=-L../../framework -lmlt -lmp3lame
+CFLAGS += `libst-config --cflags` -I../../
+LDFLAGS += -lst `libst-config --libs`
+LDFLAGS += -L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
if [ "$help" != "1" ]
then
-cat << EOF >> ../filters.dat
-sox libmltsox$LIBSUF
-EOF
+ which libst-config > /dev/null 2>&1
+ disable_sox=$?
+
+ if [ "$disable_sox" == "0" ]
+ then
+ echo "sox libmltsox$LIBSUF" >> ../filters.dat
+ else
+ echo "- sox not found: disabling"
+ touch ../disable-sox
+ fi
fi