Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates-src > by-pkgid > 39fce8e114a87aff2dbffe8c2f5f2239 > files > 1

hdhomerun-20180817-1.mga6.src.rpm

diff -Nru a/hdhomerun_config_gui/src/Makefile.am b/hdhomerun_config_gui/src/Makefile.am
--- a/hdhomerun_config_gui/src/Makefile.am	2016-11-18 19:48:11.000000000 +0100
+++ b/hdhomerun_config_gui/src/Makefile.am	2019-01-21 14:24:55.925337065 +0100
@@ -1,5 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 
+LIBVERSION = 4.0.0
+SONAME = 4
+LIBEXT := .so.$(LIBVERSION)
+SOEXT := .so.$(SONAME)
+
 INCLUDES = \
 	-I../../libhdhomerun \
 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
@@ -20,7 +25,8 @@
 
 install-exec-local:
 	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
-	$(INSTALL) ../../libhdhomerun/libhdhomerun.so $(DESTDIR)$(libdir)
+	$(INSTALL) ../../libhdhomerun/libhdhomerun$(LIBEXT) $(DESTDIR)$(libdir)
+	ln -s libhdhomerun$(SOEXT) $(DESTDIR)$(libdir)/libhdhomerun.so
 	$(INSTALL) ../../libhdhomerun/hdhomerun_config $(DESTDIR)$(bindir)
 
 uninstall-local:
diff -Nru a/hdhomerun_config_gui/src/Makefile.in b/hdhomerun_config_gui/src/Makefile.in
--- a/hdhomerun_config_gui/src/Makefile.in	2016-11-18 19:48:11.000000000 +0100
+++ b/hdhomerun_config_gui/src/Makefile.in	2019-01-21 14:26:21.451877125 +0100
@@ -278,6 +278,12 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
+
+LIBVERSION = 4.0.0
+SONAME = 4
+LIBEXT := .so.$(LIBVERSION)
+SOEXT := .so.$(SONAME)
+
 INCLUDES = \
 	-I../../libhdhomerun \
 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
@@ -615,7 +621,8 @@
 
 install-exec-local:
 	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
-	$(INSTALL) ../../libhdhomerun/libhdhomerun.so $(DESTDIR)$(libdir)
+	$(INSTALL) ../../libhdhomerun/libhdhomerun$(LIBEXT) $(DESTDIR)$(libdir)
+	ln -s libhdhomerun$(SOEXT) $(DESTDIR)$(libdir)/libhdhomerun.so
 	$(INSTALL) ../../libhdhomerun/hdhomerun_config $(DESTDIR)$(bindir)
 
 uninstall-local:
diff -Nru a/libhdhomerun/Makefile b/libhdhomerun/Makefile
--- a/libhdhomerun/Makefile	2016-11-18 19:48:11.000000000 +0100
+++ b/libhdhomerun/Makefile	2019-01-21 14:11:03.311068682 +0100
@@ -11,6 +11,9 @@
 LIBSRCS += hdhomerun_sock_posix.c
 LIBSRCS += hdhomerun_video.c
 
+LIBVERSION = 4.0.0
+SONAME = 4
+
 CC    := $(CROSS_COMPILE)gcc
 STRIP := $(CROSS_COMPILE)strip
 
@@ -24,7 +27,9 @@
   LDFLAGS += -liphlpapi
 else
   OS := $(shell uname -s)
-  LIBEXT := .so
+  LIBEXT := .so.$(LIBVERSION)
+  SOEXT := .so.$(SONAME)
+  SHARED := -shared -Wl,-soname,libhdhomerun$(SOEXT)
   ifeq ($(OS),Linux)
     LDFLAGS += -lrt
   endif
@@ -42,14 +47,17 @@
 
 hdhomerun_config$(BINEXT) : hdhomerun_config.c $(LIBSRCS)
 	$(CC) $(CFLAGS) $+ $(LDFLAGS) -o $@
-	$(STRIP) $@
 
 libhdhomerun$(LIBEXT) : $(LIBSRCS)
 	$(CC) $(CFLAGS) -fPIC -DDLL_EXPORT $(SHARED) $+ $(LDFLAGS) -o $@
+ifeq ($(OS),Linux)
+		ln -s $@ libhdhomerun$(SOEXT)
+		ln -s libhdhomerun$(SOEXT) libhdhomerun.so
+endif
 
 clean :
 	-rm -f hdhomerun_config$(BINEXT)
-	-rm -f libhdhomerun$(LIBEXT)
+	-rm -f libhdhomerun.*
 
 distclean : clean