mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
ba6dae9946
With this patch the SDL-based 'avplay' media player, which is part of 'libav', can be built. The run script expects a media file named 'mediafile' in the 'bin' directory. Fixes #216.
27 lines
634 B
Makefile
27 lines
634 B
Makefile
include lib/import/import-av.inc
|
|
|
|
LIBAV_TGZ = $(LIBAV).tar.gz
|
|
LIBAV_URL = http://www.libav.org/releases/$(LIBAV_TGZ)
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(LIBAV)
|
|
|
|
prepare-libav: $(CONTRIB_DIR)/$(LIBAV)
|
|
|
|
$(CONTRIB_DIR)/$(LIBAV): clean-libav
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(LIBAV_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIBAV_URL) && touch $@
|
|
|
|
$(CONTRIB_DIR)/$(LIBAV): $(DOWNLOAD_DIR)/$(LIBAV_TGZ)
|
|
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
|
|
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(LIBAV) -p1 -i ../../src/app/avplay/avplay.patch
|
|
|
|
clean-libav:
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBAV)
|