~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/vhook/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
include ../config.mak
2
2
 
3
 
VPATH=$(SRC_PATH)/vhook
4
 
 
5
 
CFLAGS=-fPIC $(OPTFLAGS) -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
6
 
 
7
 
ifeq ($(CONFIG_DARWIN),yes)
8
 
SHFLAGS+=-bundle -flat_namespace -undefined suppress
9
 
endif
10
 
HOOKS=null.so fish.so
 
3
VPATH=$(SRC_PATH_BARE)/vhook
 
4
 
 
5
CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
 
6
       -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
 
7
LDFLAGS+= -g
 
8
 
 
9
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
 
10
ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
11
11
 
12
12
ifeq ($(HAVE_IMLIB2),yes)
13
 
    HOOKS += imlib2.so
14
 
endif    
 
13
    HOOKS += imlib2$(SLIBSUF)
 
14
    CFLAGS += `imlib2-config --cflags`
 
15
    LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
 
16
endif
15
17
 
16
18
ifeq ($(HAVE_FREETYPE2),yes)
17
 
    HOOKS += drawtext.so
 
19
    HOOKS += drawtext$(SLIBSUF)
18
20
    CFLAGS += `freetype-config --cflags`
19
 
endif    
20
 
 
21
 
all: $(HOOKS) 
22
 
 
23
 
SRCS := $(HOOKS:.so=.c)
24
 
 
25
 
depend: $(SRCS)
 
21
    LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
 
22
endif
 
23
 
 
24
SRCS := $(HOOKS:$(SLIBSUF)=.c)
 
25
 
 
26
all: $(HOOKS)
 
27
 
 
28
depend dep: $(SRCS)
26
29
        $(CC) -MM $(CFLAGS) $^ 1>.depend
27
30
 
28
 
install:
29
 
        install -s -m 755 $(HOOKS) $(INSTDIR)
30
 
 
31
 
imlib2.so: imlib2.o
32
 
        $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
33
 
 
34
 
drawtext.so: drawtext.o
35
 
        $(CC) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
36
 
 
37
 
%.so: %.o
38
 
        $(CC) -g -o $@ $(SHFLAGS) $<
 
31
install: $(HOOKS)
 
32
        install -d "$(shlibdir)/vhook"
 
33
        install -m 755 $(HOOKS) "$(shlibdir)/vhook"
 
34
 
 
35
uninstall:
 
36
        rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
 
37
        -rmdir "$(shlibdir)/vhook/"
 
38
 
 
39
%$(SLIBSUF): %.o
 
40
        $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
39
41
 
40
42
clean:
41
 
        rm -f *.o *.d .depend *.so *~
42
 
 
43
 
ifneq ($(wildcard .depend),)
44
 
include .depend
45
 
endif
 
43
        rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
 
44
 
 
45
distclean: clean
 
46
        rm -f .depend
 
47
 
 
48
.PHONY: all depend dep clean distclean install* uninstall*
 
49
 
 
50
-include .depend