mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-12 04:11:31 +00:00
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
# 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
|
|
|
|
SUBDIRS =
|
|
DIST_SUBDIRS = ffmpeg
|
|
TMP_DIST_DIR=ffmpeg-dist
|
|
DIST_DIR=$(TMP_DIST_DIR)/.ffmpeg
|
|
EXTRA_DIST=Makefile.am
|
|
MAINTAINERCLEANDIRS = $(DIST_SUBDIRS)
|
|
|
|
all-local:
|
|
cd ffmpeg && $(MAKE)
|
|
|
|
clean-local:
|
|
cd ffmpeg && $(MAKE) clean
|
|
|
|
dist-clean:
|
|
cd ffmpeg && $(MAKE) distclean
|
|
rm -rf $(TMP_DIST_DIR)
|
|
rm -f Makefile
|
|
rm -f ffmpeg/.version
|
|
rm -f ffmpeg/.config
|
|
|
|
distclean: dist-clean
|
|
|
|
maintainer-clean: distclean
|
|
rm -rf $(MAINTAINERCLEANDIRS)
|
|
|
|
maintainerclean: maintainer-clean
|
|
|
|
dist-local:
|
|
svn -r $(FFMPEG_REVISION) export $(FFMPEG_SVN) $(TMP_DIST_DIR)/ffmpeg/
|
|
@if [ "x$(FFMPEG_EXTERNALS_REVISION)" != x ]; then \
|
|
svn update -r $(FFMPEG_EXTERNALS_REVISION) $(TMP_DIST_DIR)/ffmpeg/libswscale; \
|
|
fi
|
|
touch $(TMP_DIST_DIR)/ffmpeg/config.mak
|
|
echo "Patching ffmpeg ./configure"
|
|
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
|
|
|
|
distdir: dist-local
|
|
cp -r $(TMP_DIST_DIR)/ffmpeg ${distdir}
|
|
cp -f $(top_srcdir)/gst-libs/ext/Makefile.am $(top_srcdir)/gst-libs/ext/Makefile.in ${distdir}
|
|
rm -rf $(TMP_DIST_DIR)
|
|
|
|
dist: dist-local
|
|
cd $(TMP_DIST_DIR) && tar -czf ffmpeg.tar.gz ffmpeg
|
|
mv $(TMP_DIST_DIR)/ffmpeg.tar.gz ./
|
|
rm -rf $(TMP_DIST_DIR)
|