From 347199b14cdcdfdb20122e1555e0b4ddf27d2515 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sat, 18 Apr 2009 19:24:03 +0000 Subject: [PATCH] Apply patch from Alberto Villa to use pkg-config for resample and vorbis modules. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1414 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/resample/Makefile | 6 +++--- src/modules/vorbis/Makefile | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/resample/Makefile b/src/modules/resample/Makefile index b9d9fa5..faf00a8 100644 --- a/src/modules/resample/Makefile +++ b/src/modules/resample/Makefile @@ -6,10 +6,10 @@ OBJS = factory.o \ filter_resample.o CFLAGS += -I../.. +CFLAGS += `pkg-config --cflags samplerate` -LDFLAGS += -lsamplerate - -LDFLAGS+=-L../../framework -lmlt +LDFLAGS += -L../../framework -lmlt +LDFLAGS += `pkg-config --libs samplerate` SRCS := $(OBJS:.o=.c) diff --git a/src/modules/vorbis/Makefile b/src/modules/vorbis/Makefile index 51557e5..f159a2a 100644 --- a/src/modules/vorbis/Makefile +++ b/src/modules/vorbis/Makefile @@ -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) -- 1.7.4.4