ports/graphics/gdal/files/patch-scripts-GNUmakefile
2017-01-28 20:52:18 +00:00

12 lines
701 B
Text

--- scripts/GNUmakefile.orig 2017-01-20 08:20:46 UTC
+++ scripts/GNUmakefile
@@ -4,7 +4,5 @@ completion:
PATH=$(GDAL_ROOT)/swig/python/scripts:$(GDAL_ROOT)/apps:$(PATH) python completionFinder.py gdal-bash-completion.sh
install:
- if test "x`pkg-config --version 2>/dev/null`" != "x" -a "x`pkg-config --variable=compatdir bash-completion`" != "x"; then \
- $(INSTALL_DIR) $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion` ; \
- cp gdal-bash-completion.sh $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion`; \
- fi
+ $(INSTALL_DIR) $(DESTDIR)${prefix}/etc/bash_completion.d
+ $(INSTALL_DATA) gdal-bash-completion.sh $(DESTDIR)${prefix}/etc/bash_completion.d