diff options
author | Måns Rullgård <mans@mansr.com> | 2007-07-09 20:22:16 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-07-09 20:22:16 +0000 |
commit | dd9f3d979170f36af2da4d0d1fed56f3ae851871 (patch) | |
tree | d119df6b7c55f05bee47a04b93f5994b06b6a6b7 /Makefile | |
parent | 9d99cc5a8a575dc50f77c0de87057a1d54751fe5 (diff) | |
download | ffmpeg-dd9f3d979170f36af2da4d0d1fed56f3ae851871.tar.gz |
clean up vhook variables
Originally committed as revision 9564 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 17 insertions, 14 deletions
@@ -34,23 +34,26 @@ ifeq ($(CONFIG_VHOOK),yes) all: videohook install: install-vhook endif + VHOOKCFLAGS += $(filter-out -mdynamic-no-pic,$(CFLAGS)) -HOOKS = vhook/fish$(SLIBSUF) vhook/null$(SLIBSUF) vhook/watermark$(SLIBSUF) -ALLHOOKS = $(HOOKS) vhook/drawtext$(SLIBSUF) vhook/imlib2$(SLIBSUF) vhook/ppm$(SLIBSUF) -ALLHOOKS_SRCS := $(ALLHOOKS:$(SLIBSUF)=.c) -ifeq ($(HAVE_FORK),yes) -HOOKS += vhook/ppm(SLIBSUF) -endif -ifeq ($(HAVE_IMLIB2),yes) -HOOKS += vhook/imlib2$(SLIBSUF) -VHOOKCFLAGS += `imlib2-config --cflags` + +BASEHOOKS = fish null watermark +ALLHOOKS = $(BASEHOOKS) drawtext imlib2 ppm +ALLHOOKS_SRCS = $(addprefix vhook/, $(addsuffix .c, $(ALLHOOKS))) + +HOOKS-$(HAVE_FORK) += ppm +HOOKS-$(HAVE_IMLIB2) += imlib2 +HOOKS-$(HAVE_FREETYPE2) += drawtext + +HOOKS = $(addprefix vhook/, $(addsuffix $(SLIBSUF), $(BASEHOOKS) $(HOOKS-yes))) + +VHOOKCFLAGS-$(HAVE_IMLIB2) += `imlib2-config --cflags` LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs` -endif -ifeq ($(HAVE_FREETYPE2),yes) -HOOKS += vhook/drawtext$(SLIBSUF) -VHOOKCFLAGS += `freetype-config --cflags` + +VHOOKCFLAGS-$(HAVE_FREETYPE2) += `freetype-config --cflags` LIBS_drawtext$(SLIBSUF) = `freetype-config --libs` -endif + +VHOOKCFLAGS += $(VHOOKCFLAGS-yes) ifeq ($(BUILD_DOC),yes) all: documentation |