Remove usage of SVN now that we use git submodules for libav
[gstreamer-omap:gst-ffmpeg.git] / gst-libs / ext / Makefile.am
1 # we have to put in a little hack here for integration to work well
2 # libav can't be in SUBDIRS, because then automake will try to descend in it
3 # and find conditionals it doesn't know.
4
5 # so,
6 # - don't put it in SUBDIRS so automake doesn't descend
7 # - put it in DIST_SUBDIRS so make dist picks up the subtree
8 # - add an all-local hook so it does get built
9 # this also satisfies make distcheck
10
11 SUBDIRS = 
12 DIST_SUBDIRS = libav
13 TMP_DIST_DIR=libav-dist
14 DIST_DIR=$(TMP_DIST_DIR)/.libav
15 EXTRA_DIST=Makefile.am
16 MAINTAINERCLEANDIRS = $(DIST_SUBDIRS)
17
18 all-local:
19         cd libav && $(MAKE)
20
21 clean-local:
22         cd libav && $(MAKE) clean
23
24 dist-clean:
25         cd libav && $(MAKE) distclean
26         rm -rf $(TMP_DIST_DIR)
27         rm -f Makefile
28         rm -f libav/.version
29         rm -f libav/.config
30
31 distclean: dist-clean
32
33 maintainer-clean: distclean
34         rm -rf $(MAINTAINERCLEANDIRS)
35
36 maintainerclean: maintainer-clean
37
38 dist-local:
39         GIT_DIR=libav/.git git checkout-index --prefix=$(TMP_DIST_DIR)/libav/ -a
40         touch $(TMP_DIST_DIR)/libav/config.mak
41         echo "Patching libav ./configure"
42         sed -e '/Unknown option/ {N;N;s/exit 1//; }' $(TMP_DIST_DIR)/libav/configure > $(TMP_DIST_DIR)/libav/configure.tmp
43         mv $(TMP_DIST_DIR)/libav/configure.tmp $(TMP_DIST_DIR)/libav/configure
44         chmod +x $(TMP_DIST_DIR)/libav/configure
45
46 distdir: dist-local
47         cp -r $(TMP_DIST_DIR)/libav ${distdir}
48         cp -f $(top_srcdir)/gst-libs/ext/Makefile.am $(top_srcdir)/gst-libs/ext/Makefile.in ${distdir}
49         rm -rf $(TMP_DIST_DIR)
50
51 dist: dist-local
52         cd $(TMP_DIST_DIR) && tar -czf libav.tar.gz libav
53         mv $(TMP_DIST_DIR)/libav.tar.gz ./
54         rm -rf $(TMP_DIST_DIR)