nixpkgs/pkgs/development/libraries/civetweb/0001-allow-setting-paths-in-makefile.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

2020-12-27 17:55:22 +00:00
diff -u a/Makefile b/Makefile
--- a/Makefile 2020-12-27 18:48:53.934098765 +0100
+++ b/Makefile 2020-12-27 18:50:44.022674117 +0100
@@ -19,13 +19,13 @@
2019-03-07 08:50:06 +00:00
# http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
PREFIX ?= /usr/local
EXEC_PREFIX = $(PREFIX)
-BINDIR = $(EXEC_PREFIX)/bin
+BINDIR ?= $(EXEC_PREFIX)/bin
DATAROOTDIR = $(PREFIX)/share
DOCDIR = $(DATAROOTDIR)/doc/$(CPROG)
2020-12-27 17:55:22 +00:00
SYSCONFDIR ?= $(PREFIX)/etc
2019-03-07 08:50:06 +00:00
HTMLDIR = $(DOCDIR)
-INCLUDEDIR = $(DESTDIR)$(PREFIX)/include
-LIBDIR = $(DESTDIR)$(EXEC_PREFIX)/lib
+INCLUDEDIR ?= $(DESTDIR)$(PREFIX)/include
+LIBDIR ?= $(DESTDIR)$(EXEC_PREFIX)/lib
2020-12-27 17:55:22 +00:00
PID_FILE ?= /var/run/$(CPROG).pid
2019-03-07 08:50:06 +00:00
# build tools
2020-12-27 17:55:22 +00:00
@@ -337,10 +337,10 @@
2019-03-07 08:50:06 +00:00
install -m 755 $(CPROG) "$(BINDIR)/"
install-headers:
- install -m 644 $(HEADERS) "$(INCLUDEDIR)"
+ install -m 644 $(HEADERS) "$(INCLUDEDIR)/"
install-lib: lib$(CPROG).a
- install -m 644 $< "$(LIBDIR)"
+ install -m 644 $< "$(LIBDIR)/"
install-slib: lib$(CPROG).so
$(eval version=$(shell grep -w "define CIVETWEB_VERSION" include/civetweb.h | sed 's|.*VERSION "\(.*\)"|\1|g'))