Apply patch from Alberto Villa to use pkg-config for resample and vorbis modules.
[melted] / src / modules / vorbis / Makefile
index 51557e5..f159a2a 100644 (file)
@@ -6,10 +6,12 @@ OBJS = factory.o \
           producer_vorbis.o
 
 CFLAGS += -I../..
+CFLAGS += `pkg-config --cflags vorbis`
+CFLAGS += `pkg-config --cflags vorbisfile`
 
-LDFLAGS += -lvorbisfile -lvorbis
-
-LDFLAGS+=-L../../framework -lmlt
+LDFLAGS += -L../../framework -lmlt
+LDFLAGS += `pkg-config --libs vorbis`
+LDFLAGS += `pkg-config --libs vorbisfile`
 
 SRCS := $(OBJS:.o=.c)