openbsd-ports/databases/redis/patches/patch-deps_hiredis_Makefile

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-02-28 06:57:11 -05:00
$OpenBSD: patch-deps_hiredis_Makefile,v 1.2 2012/02/28 11:57:11 dcoppa Exp $
--- deps/hiredis/Makefile.orig Wed Feb 22 14:23:43 2012
+++ deps/hiredis/Makefile Tue Feb 28 12:41:24 2012
@@ -12,9 +12,9 @@ HIREDIS_MINOR=10
2012-02-28 06:57:11 -05:00
# 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
2012-02-28 06:57:11 -05:00
-WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
-DEBUG?= -g -ggdb
2012-02-28 06:57:11 -05:00
+# OPTIMIZATION?=-O3
+WARNINGS=-Wstrict-prototypes -Wwrite-strings
+# DEBUG?= -g -ggdb
2012-02-28 06:57:11 -05:00
REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
@@ -116,8 +116,12 @@ endif
2012-02-28 06:57:11 -05:00
INSTALL?= cp -a
+ifndef INSTALL_DIR
+ INSTALL_DIR= mkdir -p
+endif
+
2012-02-28 06:57:11 -05:00
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)