genode/libports/ports/libav.mk
Christian Prochaska 25a82d6dd5 Add 'libav' to libports
Fixes #212.
2012-05-29 13:54:59 +02:00

26 lines
549 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 $@
clean-libav:
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBAV)