Permalink
Browse files

Disable sox when unavailable

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@705 d19143bc-622f-0410-bfdd-b5b2a6649095
  • Loading branch information...
1 parent ac9af01 commit 0d5c9e75b2c89bcaf012f31fbf3e29caa7860c71 lilo_booter committed Apr 13, 2005
Showing with 13 additions and 8 deletions.
  1. +3 −5 src/modules/sox/Makefile
  2. +10 −3 src/modules/sox/configure
@@ -5,11 +5,9 @@ TARGET = ../libmltsox$(LIBSUF)
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)
@@ -3,8 +3,15 @@
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

0 comments on commit 0d5c9e7

Please sign in to comment.