summaryrefslogtreecommitdiffstats
path: root/libircclient-1.6-shared.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-10 14:45:13 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-10 14:45:13 +0100
commit4bdef9c918eeae156721e446bd6e164d5f24cbfe (patch)
tree8da7f2d8744861b34ffee75178bc77563db74879 /libircclient-1.6-shared.patch
libircclient: import from rawhide
Diffstat (limited to 'libircclient-1.6-shared.patch')
-rw-r--r--libircclient-1.6-shared.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/libircclient-1.6-shared.patch b/libircclient-1.6-shared.patch
new file mode 100644
index 0000000..15d1e39
--- /dev/null
+++ b/libircclient-1.6-shared.patch
@@ -0,0 +1,55 @@
+diff -up libircclient-1.6/src/Makefile.in.orig libircclient-1.6/src/Makefile.in
+--- libircclient-1.6/src/Makefile.in.orig 2012-05-01 16:29:17.976661058 -0300
++++ libircclient-1.6/src/Makefile.in 2012-05-01 16:30:00.726662877 -0300
+@@ -5,13 +5,14 @@ AR=@AR@ cr
+ RANLIB=@RANLIB@
+ INCLUDES=-I../include
+ DESTDIR=
++MAJOR=0
+
+ OBJS = libircclient.o
+
+ all: @TARGET@
+
+ static: libircclient.a
+-shared: libircclient.so
++shared: libircclient.so.$(MAJOR)
+ shared_mingw: libircclient.dll
+
+ install: @TARGET@
+@@ -22,11 +23,21 @@ install: @TARGET@
+ cp ../include/libirc_events.h $(DESTDIR)@includedir@/libirc_events.h
+ cp ../include/libirc_options.h $(DESTDIR)@includedir@/libirc_options.h
+ cp ../include/libirc_rfcnumeric.h $(DESTDIR)@includedir@/libirc_rfcnumeric.h
+- if [ -f libircclient.so ]; then cp libircclient.so $(DESTDIR)@libdir@; else :; fi
+- if [ -f libircclient.a ]; then cp libircclient.a $(DESTDIR)@libdir@; else :; fi
+-
+-libircclient.so: libircclient.o
+- $(CC) -shared -s -o libircclient.so libircclient.o @LIBS@
++ if [ -f libircclient.so.$(MAJOR) ]; then \
++ cp libircclient.so.$(MAJOR) $(DESTDIR)@libdir@; \
++ ln -s libircclient.so.$(MAJOR) $(DESTDIR)@libdir@/libircclient.so; \
++ else \
++ :; \
++ fi
++ if [ -f libircclient.a ]; then \
++ cp libircclient.a $(DESTDIR)@libdir@; \
++ else \
++ :; \
++ fi
++
++libircclient.so.$(MAJOR): libircclient.o
++ $(CC) -shared -o libircclient.so.$(MAJOR) -Wl,-soname=libircclient.so.$(MAJOR) libircclient.o @LIBS@
++ ln -s libircclient.so.$(MAJOR) libircclient.so
+
+ libircclient.dll: libircclient.o
+ $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@
+@@ -36,7 +47,7 @@ libircclient.a: libircclient.o
+ $(RANLIB) libircclient.a
+
+ clean:
+- rm -f libircclient.a libircclient.o
++ rm -f libircclient.so* libircclient.a libircclient.o
+
+ distclean: clean
+ -rm -f Makefile