+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / modules / vorbis / Makefile
index cf23e64..6720b31 100644 (file)
@@ -1,20 +1,22 @@
 include ../../../config.mak
 
-TARGET = ../libmltvorbis.so
+TARGET = ../libmltvorbis$(LIBSUF)
 
 OBJS = factory.o \
           producer_vorbis.o
 
 CFLAGS += -I../..
 
-LDFLAGS = -lvorbisfile -lvorbis
+LDFLAGS += -lvorbisfile -lvorbis
+
+LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
 all:   $(TARGET)
 
 $(TARGET): $(OBJS)
-               $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+               $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
@@ -26,7 +28,7 @@ clean:
                rm -f $(OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+       install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
 
 ifneq ($(wildcard .depend),)
 include .depend