$OpenBSD: patch-deps_hiredis_Makefile,v 1.4 2013/01/16 13:13:03 dcoppa Exp $
--- deps/hiredis/Makefile.orig	Thu Jan 10 17:15:16 2013
+++ deps/hiredis/Makefile	Wed Jan 16 13:12:52 2013
@@ -12,9 +12,9 @@ HIREDIS_MINOR=10
 
 # Fallback to gcc when $CC is not in $PATH.
 CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
-OPTIMIZATION?=-O3
-WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
-DEBUG?= -g -ggdb
+# OPTIMIZATION?=-O3
+WARNINGS=-Wstrict-prototypes -Wwrite-strings
+# DEBUG?= -g -ggdb
 REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
 REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
 
@@ -116,8 +116,12 @@ endif
 
 INSTALL?= cp -a
 
+ifndef INSTALL_DIR
+  INSTALL_DIR= mkdir -p
+endif
+
 install: $(DYLIBNAME) $(STLIBNAME)
-	mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
+	$(INSTALL_DIR) $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
 	$(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
 	$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
 	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)
