diff options
Diffstat (limited to 'net-libs/libircclient/files/libircclient-1.8-shared.patch')
-rw-r--r-- | net-libs/libircclient/files/libircclient-1.8-shared.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-libs/libircclient/files/libircclient-1.8-shared.patch b/net-libs/libircclient/files/libircclient-1.8-shared.patch new file mode 100644 index 000000000000..1fbc0e693502 --- /dev/null +++ b/net-libs/libircclient/files/libircclient-1.8-shared.patch @@ -0,0 +1,50 @@ +--- libircclient-1.7.orig/src/Makefile.in ++++ libircclient-1.7/src/Makefile.in +@@ -1,8 +1,10 @@ + # $Id$ + CC = @CC@ +-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ ++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ + AR=@AR@ cr + RANLIB=@RANLIB@ ++INSTALL=install ++LN=ln -sf + INCLUDES=-I../include + DESTDIR= + APIVERSION = 1 +@@ -15,19 +17,24 @@ + shared: libircclient.so + shared_mingw: libircclient.dll + +-install: +- -mkdir -p $(DESTDIR)@prefix@/include +- -mkdir -p $(DESTDIR)@libdir@ +- 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)@libdir@/libircclient.so.$(APIVERSION) +- ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so ++install: install-headers install-static install-shared ++install-headers: ++ $(INSTALL) -d $(DESTDIR)@prefix@/include ++ $(INSTALL) -m0644 ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h ++ $(INSTALL) -m0644 ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h ++ $(INSTALL) -m0644 ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h ++ $(INSTALL) -m0644 ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h ++ $(INSTALL) -m0644 ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h ++install-shared: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0755 libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION) ++ $(LN) libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so ++install-static: ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(INSTALL) -m0644 libircclient.a $(DESTDIR)@libdir@/libircclient.a + + libircclient.so: libircclient.o +- $(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LIBS@ ++ $(CC) $(CFLAGS) -shared -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o $(LDFLAGS) @LIBS@ + + libircclient.dll: libircclient.o + $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@ |