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

« back to all changes in this revision

Viewing changes to ffmpeg/subdir.mak

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SRC_DIR := $(SRC_PATH_BARE)/lib$(NAME)
 
2
 
 
3
include $(SUBDIR)../common.mak
 
4
 
 
5
LIBVERSION := $(lib$(NAME)_VERSION)
 
6
LIBMAJOR   := $(lib$(NAME)_VERSION_MAJOR)
 
7
 
 
8
ifeq ($(BUILD_STATIC),yes)
 
9
all: $(SUBDIR)$(LIBNAME)
 
10
 
 
11
install-libs: install-lib$(NAME)-static
 
12
 
 
13
$(SUBDIR)$(LIBNAME): $(OBJS)
 
14
        rm -f $@
 
15
        $(AR) rc $@ $^ $(EXTRAOBJS)
 
16
        $(RANLIB) $@
 
17
endif
 
18
 
 
19
INCINSTDIR := $(INCDIR)/lib$(NAME)
 
20
 
 
21
define RULES
 
22
ifdef BUILD_SHARED
 
23
all: $(SUBDIR)$(SLIBNAME)
 
24
 
 
25
install-libs: install-lib$(NAME)-shared
 
26
 
 
27
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
 
28
        cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)
 
29
 
 
30
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS)
 
31
        $(SLIB_CREATE_DEF_CMD)
 
32
        $(CC) $(SHFLAGS) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS) $(EXTRAOBJS)
 
33
        $(SLIB_EXTRA_CMD)
 
34
 
 
35
ifdef SUBDIR
 
36
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(DEP_LIBS)
 
37
endif
 
38
endif
 
39
 
 
40
install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
 
41
        install -d "$(SHLIBDIR)"
 
42
        install -m 755 $(SUBDIR)$(SLIBNAME) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
 
43
        $(STRIP) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
 
44
        cd "$(SHLIBDIR)" && \
 
45
                $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
 
46
        cd "$(SHLIBDIR)" && \
 
47
                $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
 
48
        $(SLIB_INSTALL_EXTRA_CMD)
 
49
 
 
50
install-lib$(NAME)-static: $(SUBDIR)$(LIBNAME)
 
51
        install -d "$(LIBDIR)"
 
52
        install -m 644 $(SUBDIR)$(LIBNAME) "$(LIBDIR)"
 
53
        $(LIB_INSTALL_EXTRA_CMD)
 
54
 
 
55
install-headers::
 
56
        install -d "$(INCINSTDIR)"
 
57
        install -d "$(LIBDIR)/pkgconfig"
 
58
        install -m 644 $(addprefix "$(SRC_DIR)"/,$(HEADERS)) "$(INCINSTDIR)"
 
59
        install -m 644 $(BUILD_ROOT)/lib$(NAME).pc "$(LIBDIR)/pkgconfig"
 
60
 
 
61
uninstall-libs::
 
62
        -rm -f "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
 
63
               "$(SHLIBDIR)/$(SLIBNAME)"            \
 
64
               "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
 
65
        -$(SLIB_UNINSTALL_EXTRA_CMD)
 
66
        -rm -f "$(LIBDIR)/$(LIBNAME)"
 
67
 
 
68
uninstall-headers::
 
69
        rm -f $(addprefix "$(INCINSTDIR)/",$(HEADERS))
 
70
        rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
 
71
        -rmdir "$(INCDIR)"
 
72
endef
 
73
 
 
74
$(eval $(RULES))