diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-02 01:19:48 +0000 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-02 01:19:48 +0000 |
| commit | 0ea721f7ce81357bc4ec6eea609cd50482c3d15b (patch) | |
| tree | 25a0871cb3c06f9716acf9c204192d548f214048 /contrib/ffmpeg/vhook/Makefile | |
| parent | d8ec380876e7f697ba609546d61757ab3f2d8715 (diff) | |
| download | xine-lib-0ea721f7ce81357bc4ec6eea609cd50482c3d15b.tar.gz xine-lib-0ea721f7ce81357bc4ec6eea609cd50482c3d15b.tar.bz2 | |
Start working on a branch where FFmpeg is not copied, patched and carved to be built with automake but instead imported inline and built using its own build system. This is an import of a slightly modified FFmpeg current tree. xine-lib builds, install and run fine with it, but there are of course plenty of things that needs to be fixed before it can even be considered for a 1.2.x series. Work will continue in the next days of course.
CVS patchset: 8397
CVS date: 2006/12/02 01:19:48
Diffstat (limited to 'contrib/ffmpeg/vhook/Makefile')
| -rw-r--r-- | contrib/ffmpeg/vhook/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/contrib/ffmpeg/vhook/Makefile b/contrib/ffmpeg/vhook/Makefile new file mode 100644 index 000000000..06b48935e --- /dev/null +++ b/contrib/ffmpeg/vhook/Makefile @@ -0,0 +1,51 @@ +include ../config.mak + +VPATH=$(SRC_PATH_BARE)/vhook + +CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \ + -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H +LDFLAGS+= -g + +HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF) +ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF) + +ifeq ($(HAVE_IMLIB2),yes) + HOOKS += imlib2$(SLIBSUF) + LIBS_imlib2$(SLIBSUF) = -lImlib2 +endif + +ifeq ($(HAVE_FREETYPE2),yes) + HOOKS += drawtext$(SLIBSUF) + CFLAGS += `freetype-config --cflags` + LIBS_drawtext$(SLIBSUF) = `freetype-config --libs` +endif + +SRCS := $(HOOKS:$(SLIBSUF)=.c) + +all: $(HOOKS) + +depend dep: $(SRCS) + $(CC) -MM $(CFLAGS) $^ 1>.depend + +install: $(HOOKS) + install -d "$(shlibdir)/vhook" + install -m 755 $(HOOKS) "$(shlibdir)/vhook" + +uninstall: + rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS)) + -rmdir "$(shlibdir)/vhook/" + +%$(SLIBSUF): %.o + $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@) + +clean: + rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll + +distclean: clean + rm -f .depend + +.PHONY: all depend dep clean distclean install* uninstall* + +ifneq ($(wildcard .depend),) +include .depend +endif |
