opnsense-ports/databases/mdbx/files/patch-GNUmakefile
Franco Fichtner ce8e4d0604 */*: sync with upstream
Taken from: FreeBSD
2022-08-12 11:47:35 +02:00

42 lines
1.9 KiB
Text

--- GNUmakefile.orig 2022-08-02 10:17:33 UTC
+++ GNUmakefile
@@ -9,7 +9,7 @@
# Basic internal definitios. For a customizable variables and options see below.
#
$(info // The GNU Make $(MAKE_VERSION))
-SHELL := $(shell env bash -c 'echo $$BASH')
+SHELL := sh
MAKE_VERx3 := $(shell printf "%3s%3s%3s" $(subst ., ,$(MAKE_VERSION)))
make_lt_3_81 := $(shell expr "$(MAKE_VERx3)" "<" " 3 81")
ifneq ($(make_lt_3_81),0)
@@ -117,7 +117,7 @@ define uname2libs
esac
endef
-SO_SUFFIX := $(shell $(uname2sosuffix))
+SO_SUFFIX := so.0.11.9
HEADERS := mdbx.h mdbx.h++
LIBRARIES := libmdbx.a libmdbx.$(SO_SUFFIX)
TOOLS := mdbx_stat mdbx_copy mdbx_dump mdbx_load mdbx_chk mdbx_drop
@@ -284,16 +284,11 @@ mdbx_%.static-lto: mdbx_%.c config.h mdbx.c mdbx.h
install: $(LIBRARIES) $(TOOLS) $(HEADERS)
@echo ' INSTALLING...'
- $(QUIET)mkdir -p $(DESTDIR)$(prefix)/bin$(suffix) && \
- $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix)/ && \
- mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \
- $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix)/ && \
- mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \
- $(INSTALL) -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix)/ && \
- mkdir -p $(DESTDIR)$(prefix)/include/ && \
- $(INSTALL) -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include/ && \
- mkdir -p $(DESTDIR)$(mandir)/man1/ && \
- $(INSTALL) -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1/
+ install -p -s $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix) && \
+ install -p -s $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix) && \
+ install -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix) && \
+ install -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include && \
+ install -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1
install-strip: EXE_INSTALL_FLAGS = -s
install-strip: install