forked from pool/rhash
b6a405bca5
moving package to more suitable devel project, please add me as maintainer OBS-URL: https://build.opensuse.org/request/show/500760 OBS-URL: https://build.opensuse.org/package/show/network:utilities/rhash?expand=0&rev=1
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
Description: Install development files with shared library.
|
|
Author: Kyrill Detinov <lazy.kent@opensuse.org>
|
|
Index: rhash-1.3.4/Makefile
|
|
===================================================================
|
|
--- rhash-1.3.4.orig/Makefile
|
|
+++ rhash-1.3.4/Makefile
|
|
@@ -164,7 +164,7 @@ check: version.h
|
|
echo "version=$(VERSION)" > bindings/version.properties
|
|
[ -s dist/rhash.1.html ]
|
|
|
|
-$(TARGET): $(OBJECTS) $(LIBRHASH)
|
|
+$(TARGET): $(OBJECTS)
|
|
$(CC) $(OBJECTS) -o $@ $(ALLLDFLAGS)
|
|
|
|
$(SHARED_TRG): $(OBJECTS) $(SHAREDLIB)
|
|
Index: rhash-1.3.4/librhash/Makefile
|
|
===================================================================
|
|
--- rhash-1.3.4.orig/librhash/Makefile
|
|
+++ rhash-1.3.4/librhash/Makefile
|
|
@@ -43,13 +43,14 @@ lib-shared: $(SONAME)
|
|
libs-all: lib-static lib-shared
|
|
dist-clean: clean
|
|
|
|
-install-lib-static: $(LIBRARY) install-headers
|
|
+install-lib-static: $(LIBRARY)
|
|
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBDIR)/
|
|
|
|
-install-lib-shared: $(SONAME)
|
|
+install-lib-shared: $(SONAME) install-headers
|
|
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
$(INSTALL_SHARED) $(SONAME) $(DESTDIR)$(LIBDIR)/
|
|
+ cp -d $(SOLINK) $(DESTDIR)$(LIBDIR)/
|
|
|
|
install-so-link:
|
|
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|