void-packages/srcpkgs/http-parser/patches/fix-destdir.diff

41 lines
1.3 KiB
Diff
Raw Normal View History

2015-05-12 09:42:43 +02:00
--- Makefile.orig 2015-05-12 09:32:01.346321752 +0200
+++ Makefile 2015-05-12 09:33:29.063315187 +0200
@@ -43,7 +43,7 @@
LDFLAGS_LIB = $(LDFLAGS) -shared
INSTALL ?= install
-PREFIX ?= $(DESTDIR)/usr/local
+PREFIX ?= /usr/local
LIBDIR = $(PREFIX)/lib
INCLUDEDIR = $(PREFIX)/include
@@ -111,19 +111,19 @@
ctags $^
2015-05-12 09:42:43 +02:00
install: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
+ $(INSTALL) -D http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
2015-05-12 09:42:43 +02:00
install-strip: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
+ $(INSTALL) -D http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
2015-05-12 09:42:43 +02:00
uninstall:
- rm $(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
- rm $(LIBDIR)/$(SONAME)
- rm $(LIBDIR)/libhttp_parser.so
+ rm $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
2015-05-12 09:42:43 +02:00
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
clean:
rm -f *.o *.a tags test test_fast test_g \