summaryrefslogtreecommitdiffstats
path: root/libircclient-1.6-install.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-install.patch
libircclient: import from rawhide
Diffstat (limited to 'libircclient-1.6-install.patch')
-rw-r--r--libircclient-1.6-install.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/libircclient-1.6-install.patch b/libircclient-1.6-install.patch
new file mode 100644
index 0000000..73c410c
--- /dev/null
+++ b/libircclient-1.6-install.patch
@@ -0,0 +1,30 @@
+diff -up libircclient-1.6/src/Makefile.in.orig libircclient-1.6/src/Makefile.in
+--- libircclient-1.6/src/Makefile.in.orig 2012-04-28 16:32:56.176139347 -0300
++++ libircclient-1.6/src/Makefile.in 2012-04-28 16:36:10.406147192 -0300
+@@ -14,16 +14,16 @@ static: libircclient.a
+ shared: libircclient.so
+ shared_mingw: libircclient.dll
+
+-install: lib
+- -mkdir -p $(DESTDIR)@prefix@/include
+- -mkdir -p $(DESTDIR)@prefix@/lib
+- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
+- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
+- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
+- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
+- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
+- cp libircclient.so $(DESTDIR)@prefix@/lib/
+- cp libircclient.a $(DESTDIR)@prefix@/lib/
++install: @TARGET@
++ -mkdir -p $(DESTDIR)@includedir@
++ -mkdir -p $(DESTDIR)@libdir@
++ cp ../include/libircclient.h $(DESTDIR)@includedir@/libircclient.h
++ cp ../include/libirc_errors.h $(DESTDIR)@includedir@/libirc_errors.h
++ 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@