libports: make include paths absolute

If contrib and/or download in libports are symlinks, then using ".." ends up
in the wrong directory. Use CURDIR variable set by make.
This commit is contained in:
Alexander Boettcher 2013-03-11 10:35:27 +01:00 committed by Norman Feske
parent b85447c602
commit fb0ca69fe4
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ $(CONTRIB_DIR)/$(FFAT): $(DOWNLOAD_DIR)/$(FFAT_ZIP) include/ffat
$(VERBOSE)for i in $(FFAT_HEADERS); do \
ln -sf ../../$(CONTRIB_DIR)/$(FFAT)/src/$$i include/ffat/; done
$(VERBOSE)rm $(addprefix $(CONTRIB_DIR)/$(FFAT)/src/,$(FFAT_DELETE))
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(FFAT) -p1 -i ../../src/lib/ffat/config.patch
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(FFAT) -p1 -i $(CURDIR)/src/lib/ffat/config.patch
clean-ffat:
$(VERBOSE)rm -f $(addprefix include/ffat/,$(FFAT_HEADERS))

View File

@ -20,7 +20,7 @@ $(DOWNLOAD_DIR)/$(LIBAV_TGZ):
$(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
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(LIBAV) -p1 -i $(CURDIR)/src/app/avplay/avplay.patch
clean-libav:
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBAV)

View File

@ -25,7 +25,7 @@ $(CONTRIB_DIR)/$(SDL): $(DOWNLOAD_DIR)/$(SDL_TGZ)
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
$(VERBOSE)rm -f $@/include/SDL_config.h
$(VERBOSE)patch -p0 -i src/lib/sdl/SDL_video.patch
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(SDL) -p1 -i ../../src/lib/sdl/SDL_audio.patch
$(VERBOSE)patch -d $(CONTRIB_DIR)/$(SDL) -p1 -i $(CURDIR)/src/lib/sdl/SDL_audio.patch
#
# Install SDL headers