2004-03-11 18:21:34 +00:00
|
|
|
# we have to put in a little hack here for integration to work well
|
|
|
|
# ffmpeg can't be in SUBDIRS, because then automake will try to descend in it
|
|
|
|
# and find conditionals it doesn't know.
|
|
|
|
|
|
|
|
# so,
|
|
|
|
# - don't put it in SUBDIRS so automake doesn't descend
|
|
|
|
# - put it in DIST_SUBDIRS so make dist picks up the subtree
|
|
|
|
# - add an all-local hook so it does get built
|
|
|
|
# this also satisfies make distcheck
|
|
|
|
|
2007-12-17 12:43:06 +00:00
|
|
|
SUBDIRS =
|
2004-03-11 18:18:36 +00:00
|
|
|
DIST_SUBDIRS = ffmpeg
|
2007-12-17 12:43:06 +00:00
|
|
|
TMP_DIST_DIR=ffmpeg-dist
|
2008-08-31 11:49:06 +00:00
|
|
|
DIST_DIR=$(TMP_DIST_DIR)/.ffmpeg
|
2008-05-12 13:02:41 +00:00
|
|
|
EXTRA_DIST=Makefile.am
|
2009-08-19 13:28:35 +00:00
|
|
|
MAINTAINERCLEANDIRS = $(DIST_SUBDIRS)
|
2004-03-11 18:18:36 +00:00
|
|
|
|
|
|
|
all-local:
|
2005-12-10 13:59:55 +00:00
|
|
|
cd ffmpeg && $(MAKE)
|
2007-12-17 12:43:06 +00:00
|
|
|
|
|
|
|
clean-local:
|
2008-05-08 09:18:45 +00:00
|
|
|
cd ffmpeg && $(MAKE) clean
|
2007-12-17 12:43:06 +00:00
|
|
|
|
|
|
|
dist-clean:
|
2009-10-05 14:28:33 +00:00
|
|
|
cd ffmpeg && $(MAKE) distclean
|
2008-05-12 13:02:41 +00:00
|
|
|
rm -rf $(TMP_DIST_DIR)
|
|
|
|
rm -f Makefile
|
2010-06-16 10:10:34 +00:00
|
|
|
rm -f ffmpeg/.version
|
2011-01-25 10:30:02 +00:00
|
|
|
rm -f ffmpeg/.config
|
2007-12-17 12:43:06 +00:00
|
|
|
|
2008-05-08 16:04:32 +00:00
|
|
|
distclean: dist-clean
|
|
|
|
|
2009-08-19 13:28:35 +00:00
|
|
|
maintainer-clean: distclean
|
|
|
|
rm -rf $(MAINTAINERCLEANDIRS)
|
|
|
|
|
|
|
|
maintainerclean: maintainer-clean
|
|
|
|
|
2008-05-12 13:02:41 +00:00
|
|
|
dist-local:
|
2010-06-27 10:49:02 +00:00
|
|
|
svn -r $(FFMPEG_REVISION) export $(FFMPEG_SVN) $(TMP_DIST_DIR)/ffmpeg/
|
2009-06-06 14:14:45 +00:00
|
|
|
@if [ "x$(FFMPEG_EXTERNALS_REVISION)" != x ]; then \
|
2010-06-27 10:49:02 +00:00
|
|
|
svn update -r $(FFMPEG_EXTERNALS_REVISION) $(TMP_DIST_DIR)/ffmpeg/libswscale; \
|
2009-06-06 14:14:45 +00:00
|
|
|
fi
|
2009-01-27 20:10:53 +00:00
|
|
|
touch $(TMP_DIST_DIR)/ffmpeg/config.mak
|
2007-12-17 12:43:06 +00:00
|
|
|
echo "Patching ffmpeg ./configure"
|
2009-01-27 20:10:53 +00:00
|
|
|
sed -e '/Unknown option/ {N;N;s/exit 1//; }' $(TMP_DIST_DIR)/ffmpeg/configure > $(TMP_DIST_DIR)/ffmpeg/configure.tmp
|
|
|
|
mv $(TMP_DIST_DIR)/ffmpeg/configure.tmp $(TMP_DIST_DIR)/ffmpeg/configure
|
|
|
|
chmod +x $(TMP_DIST_DIR)/ffmpeg/configure
|
2007-12-17 12:43:06 +00:00
|
|
|
|
|
|
|
distdir: dist-local
|
2009-01-27 20:10:53 +00:00
|
|
|
cp -r $(TMP_DIST_DIR)/ffmpeg ${distdir}
|
2009-02-10 11:34:36 +00:00
|
|
|
cp -f $(top_srcdir)/gst-libs/ext/Makefile.am $(top_srcdir)/gst-libs/ext/Makefile.in ${distdir}
|
2009-01-27 20:10:53 +00:00
|
|
|
rm -rf $(TMP_DIST_DIR)
|
2008-05-08 09:18:45 +00:00
|
|
|
|
2007-12-17 12:43:06 +00:00
|
|
|
dist: dist-local
|
2009-01-27 20:10:53 +00:00
|
|
|
cd $(TMP_DIST_DIR) && tar -czf ffmpeg.tar.gz ffmpeg
|
|
|
|
mv $(TMP_DIST_DIR)/ffmpeg.tar.gz ./
|
|
|
|
rm -rf $(TMP_DIST_DIR)
|