ports/databases/grass/files/patch-Makefile
Dmitry Marakasov 3e4b9cf0c2 - Fix more shebangs
- Drop unneeded WX_UNICODE
- Remove useless checks to fix packaging as non-root
2015-10-01 15:50:25 +00:00

35 lines
1.3 KiB
Text

--- Makefile.orig 2014-12-16 22:11:04 UTC
+++ Makefile
@@ -240,32 +240,12 @@ install: FORCE
while [ ! -d $$INST_PATH ]; do \
INST_PATH=`dirname $$INST_PATH`; \
done; \
- if [ ! -d "${INST_DIR}" -a ! -w "$$INST_PATH" ] ; then \
- echo "ERROR: Directory $$INST_PATH is a parent directory of your"; \
- echo " install directory ${INST_DIR} and is not writable."; \
- echo " Perhaps you need root access."; \
- echo " Installation aborted, exiting Make."; \
- exit; \
- fi; \
- if [ -d ${INST_DIR} -a ! -w "${INST_DIR}" ] ; then \
- echo "ERROR: Your install directory ${INST_DIR} is not writable."; \
- echo " Perhaps you need root access."; \
- echo " Installation aborted, exiting Make."; \
- exit; \
- fi; \
result=`echo "${INST_DIR}" | awk '{ if ($$1 ~ /grass/) print $$1 }'`; \
if [ "$$result" = "" ] ; then \
echo "WARNING: Your install directory ${INST_DIR}"; \
echo " does not contain the word 'grass'."; \
echo " It is highly recommended that the word 'grass' be part"; \
echo " of your install directory to avoid conflicts."; \
- echo " Do you want to continue? [y/n]"; \
- read ans; \
- ans=`echo "$$ans" | tr A-Z a-z`; \
- if [ "$$ans" != "y" ] ; then \
- echo "Installation aborted, exiting Make."; \
- exit; \
- fi; \
fi; \
${MAKE} real-install