mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-17 18:29:55 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
30 lines
872 B
Makefile
30 lines
872 B
Makefile
OPENJPEG = openjpeg-1.4
|
|
OPENJPEG_TGZ = openjpeg-1.4.tar.gz
|
|
OPENJPEG_URL = http://openjpeg.googlecode.com/files/openjpeg_v1_4_sources_r697.tgz
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(OPENJPEG)
|
|
|
|
prepare-openjpeg: $(CONTRIB_DIR)/$(OPENJPEG)
|
|
|
|
$(CONTRIB_DIR)/$(OPENJPEG): clean-openjpeg include/openjpeg/openjpeg.h
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(OPENJPEG_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) -O $@ $(OPENJPEG_URL) && touch $@
|
|
|
|
$(CONTRIB_DIR)/$(OPENJPEG): $(DOWNLOAD_DIR)/$(OPENJPEG_TGZ)
|
|
$(VERBOSE)tar xfz $< --transform "s/openjpeg_v1_4_sources_r697/$(OPENJPEG)/" -C $(CONTRIB_DIR) && touch $@
|
|
|
|
include/openjpeg/openjpeg.h:
|
|
$(VERBOSE)mkdir -p $(dir $@)
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(OPENJPEG)/libopenjpeg/openjpeg.h $@
|
|
|
|
clean-openjpeg:
|
|
$(VERBOSE)rm -rf include/openjpeg
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(OPENJPEG)
|