http-parser: fix patch and shlibs

This commit is contained in:
Enno Boland 2015-10-30 06:17:18 +01:00
parent 51fdd9d668
commit 972a2ab09f
2 changed files with 11 additions and 15 deletions

View File

@ -2087,7 +2087,7 @@ libkasten2core.so.2 okteta-4.14.2_1
libkasten2controllers.so.2 okteta-4.14.2_1
libkasten2okteta1gui.so.1 okteta-4.14.2_1
libkasten2okteta1core.so.1 okteta-4.14.2_1
libhttp_parser.so.2.5.0 http-parser-2.5.0_1
libhttp_parser.so.2.6.0 http-parser-2.6.0_1
libmaa.so.3 libmaa-1.3.2_1
libcodeblocks.so.0 codeblocks-13.12_1
liblept.so.4 leptonica-1.72_1

View File

@ -1,6 +1,6 @@
--- Makefile.orig 2015-05-12 09:32:01.346321752 +0200
+++ Makefile 2015-05-12 09:33:29.063315187 +0200
@@ -43,7 +43,7 @@
--- Makefile.orig 2015-10-29 05:47:12.000000000 +0100
+++ Makefile 2015-10-30 06:13:29.642432556 +0100
@@ -55,7 +55,7 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
LDFLAGS_LIB = $(LDFLAGS) -shared
INSTALL ?= install
@ -9,32 +9,28 @@
LIBDIR = $(PREFIX)/lib
INCLUDEDIR = $(PREFIX)/include
@@ -111,19 +111,19 @@
@@ -123,17 +123,17 @@ tags: http_parser.c http_parser.h test.c
ctags $^
install: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
+ ln -sr $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.$(SOEXT)
install-strip: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
+ ln -sr $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.$(SOEXT)
uninstall:
- rm $(INCLUDEDIR)/http_parser.h
- rm $(LIBDIR)/$(SONAME)
- rm $(LIBDIR)/libhttp_parser.so
+ rm $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
rm $(LIBDIR)/$(SONAME)
rm $(LIBDIR)/libhttp_parser.so
clean:
rm -f *.o *.a tags test test_fast test_g \