diff --git a/net/ekg/Makefile b/net/ekg/Makefile index 366a07a04f9..69dfdba3bfa 100644 --- a/net/ekg/Makefile +++ b/net/ekg/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.4 2010/10/18 18:36:47 espie Exp $ +# $OpenBSD: Makefile,v 1.5 2011/04/06 09:35:03 jasper Exp $ COMMENT= Gadu-Gadu IM protocol client DISTNAME= ekg-1.7 +REVISION= 0 CATEGORIES= net HOMEPAGE= http://ekg.chmurka.net/ @@ -15,21 +16,23 @@ PERMIT_PACKAGE_CDROM= Yes PERMIT_DISTFILES_FTP= Yes PERMIT_DISTFILES_CDROM= Yes -WANTLIB= ncurses ssl crypto z c pthread +WANTLIB= c crypto gadu ncurses pthread ssl z MASTER_SITES= ${HOMEPAGE} +LIB_DEPENDS= net/libgadu + CONFIGURE_STYLE=gnu CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" -CONFIGURE_ARGS= --disable-shared \ +CONFIGURE_ARGS= --enable-dynamic \ --with-pthread \ --without-libjpeg \ --without-libgsm \ --without-libungif -USE_GROFF = Yes +USE_GROFF= Yes NO_REGRESS= Yes .include diff --git a/net/ekg/patches/patch-Makefile_in b/net/ekg/patches/patch-Makefile_in new file mode 100644 index 00000000000..e33fe66429c --- /dev/null +++ b/net/ekg/patches/patch-Makefile_in @@ -0,0 +1,72 @@ +$OpenBSD: patch-Makefile_in,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- Makefile.in.orig Sat Aug 5 16:46:21 2006 ++++ Makefile.in Tue Mar 29 22:40:31 2011 +@@ -15,11 +15,8 @@ INSTALL = @INSTALL@ + + # + +-all: configure libgadu @ekg@ @make_ekgwap@ ++all: configure @ekg@ @make_ekgwap@ + +-libgadu: +- cd lib && $(MAKE) all +- + ekg: + cd src && $(MAKE) all + +@@ -31,11 +28,8 @@ examples: + + # + +-dep: dep-libgadu @dep_ekg@ ++dep: @dep_ekg@ + +-dep-libgadu: +- cd lib && $(MAKE) dep +- + dep-ekg: + cd src && $(MAKE) dep + +@@ -46,11 +40,8 @@ configure: configure.in m4/* + + # + +-install: all install-libgadu @install_ekg@ @install_ekgwap@ ++install: all @install_ekg@ @install_ekgwap@ + +-install-libgadu: +- cd lib && $(MAKE) install +- + install-ekg: install-ekg-data install-ekg-man + cd src && $(MAKE) install + +@@ -93,11 +84,8 @@ uninstall-ekg: + + # + +-clean: clean-libgadu @clean_ekg@ clean-examples clean-compat ++clean: @clean_ekg@ clean-examples clean-compat + +-clean-libgadu: +- cd lib && $(MAKE) clean +- + clean-ekg: + cd src && $(MAKE) clean + +@@ -109,12 +97,9 @@ clean-compat: + + # + +-distclean: distclean-libgadu @distclean_ekg@ distclean-examples distclean-compat ++distclean: @distclean_ekg@ distclean-examples distclean-compat + rm -f *~ config.log config.cache config.status config.h Makefile + rm -f config.h.in configure aclocal.m4 +- +-distclean-libgadu: +- cd lib && $(MAKE) distclean + + distclean-ekg: + cd src && $(MAKE) distclean diff --git a/net/ekg/patches/patch-lib_Makefile_in b/net/ekg/patches/patch-lib_Makefile_in index 2f29519f445..fe96ab49b2d 100644 --- a/net/ekg/patches/patch-lib_Makefile_in +++ b/net/ekg/patches/patch-lib_Makefile_in @@ -1,4 +1,7 @@ -$OpenBSD: patch-lib_Makefile_in,v 1.3 2008/10/15 14:59:37 ajacoutot Exp $ +$OpenBSD: patch-lib_Makefile_in,v 1.4 2011/04/06 09:35:03 jasper Exp $ + +- build without gnu make + --- lib/Makefile.in.orig Tue Apr 18 21:05:11 2006 +++ lib/Makefile.in Mon Oct 13 13:59:13 2008 @@ -11,7 +11,7 @@ VERSION_MAJOR=3 diff --git a/net/ekg/patches/patch-src_Makefile_in b/net/ekg/patches/patch-src_Makefile_in index 6ea3562df16..b20801a6d52 100644 --- a/net/ekg/patches/patch-src_Makefile_in +++ b/net/ekg/patches/patch-src_Makefile_in @@ -1,13 +1,36 @@ -$OpenBSD: patch-src_Makefile_in,v 1.2 2008/10/15 14:59:37 ajacoutot Exp $ ---- src/Makefile.in.orig Sat Apr 28 22:02:22 2007 -+++ src/Makefile.in Mon Oct 13 13:58:12 2008 -@@ -64,9 +64,3 @@ clean: +$OpenBSD: patch-src_Makefile_in,v 1.3 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org +- build without gnu make + +--- src/Makefile.in.orig Sat Apr 28 21:02:22 2007 ++++ src/Makefile.in Wed Mar 30 00:25:28 2011 +@@ -10,7 +10,7 @@ libexecdir = @libexecdir@ + sysconfdir = @sysconfdir@ + + CC = @CC@ +-CFLAGS = -I.. -I../lib @CFLAGS@ -DDATADIR=\"${datadir}/ekg\" -DSYSCONFDIR=\"${sysconfdir}\" ++CFLAGS = -I.. @CFLAGS@ -DDATADIR=\"${datadir}/ekg\" -DSYSCONFDIR=\"${sysconfdir}\" + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + +@@ -28,7 +28,7 @@ all: dep ekg @ioctld@ + + ekg: $(OBJS) comptime.c @libgadu_a@ + $(CC) $(CFLAGS) -c -o comptime.o comptime.c +- $(CC) $(CFLAGS) -o ekg $(OBJS) comptime.o -L../lib @lgadu@ @libgadu_a@ $(LDFLAGS) $(LIBS) ++ $(CC) $(CFLAGS) -o ekg $(OBJS) comptime.o @lgadu@ @libgadu_a@ $(LDFLAGS) $(LIBS) + + ioctld: ioctld.c + $(CC) $(CFLAGS) ioctld.c -o ioctld $(LIBS) @IOCTLD_OBJS@ +@@ -63,10 +63,4 @@ clean: + distclean: clean rm -f *~ Makefile - +- -# - -ifneq ($(wildcard .depend),) -include .depend -endif -- + diff --git a/net/ekg/patches/patch-src_commands_c b/net/ekg/patches/patch-src_commands_c new file mode 100644 index 00000000000..e07ff2aa59d --- /dev/null +++ b/net/ekg/patches/patch-src_commands_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_commands_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/commands.c.orig Sat Apr 28 21:02:22 2007 ++++ src/commands.c Tue Mar 29 22:40:31 2011 +@@ -52,7 +52,7 @@ + #include "configfile.h" + #include "dynstuff.h" + #include "events.h" +-#include "libgadu.h" ++#include + #include "log.h" + #include "msgqueue.h" + #ifdef HAVE_OPENSSL diff --git a/net/ekg/patches/patch-src_dynstuff_c b/net/ekg/patches/patch-src_dynstuff_c new file mode 100644 index 00000000000..8d509d85410 --- /dev/null +++ b/net/ekg/patches/patch-src_dynstuff_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_dynstuff_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/dynstuff.c.orig Sun Mar 11 12:27:18 2007 ++++ src/dynstuff.c Tue Mar 29 22:40:31 2011 +@@ -24,7 +24,7 @@ + #include + #include + +-#include "libgadu.h" ++#include + #include "dynstuff.h" + #include "stuff.h" + #include "xmalloc.h" diff --git a/net/ekg/patches/patch-src_ekg_c b/net/ekg/patches/patch-src_ekg_c new file mode 100644 index 00000000000..32f219d0181 --- /dev/null +++ b/net/ekg/patches/patch-src_ekg_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_ekg_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/ekg.c.orig Sat Apr 28 21:02:23 2007 ++++ src/ekg.c Tue Mar 29 22:40:31 2011 +@@ -60,7 +60,7 @@ + #include "configfile.h" + #include "emoticons.h" + #include "events.h" +-#include "libgadu.h" ++#include + #include "log.h" + #include "mail.h" + #include "msgqueue.h" diff --git a/net/ekg/patches/patch-src_events_c b/net/ekg/patches/patch-src_events_c new file mode 100644 index 00000000000..e397b569993 --- /dev/null +++ b/net/ekg/patches/patch-src_events_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_events_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/events.c.orig Sat Apr 28 21:02:24 2007 ++++ src/events.c Tue Mar 29 22:40:31 2011 +@@ -40,7 +40,7 @@ + #include "commands.h" + #include "emoticons.h" + #include "events.h" +-#include "libgadu.h" ++#include + #include "log.h" + #include "msgqueue.h" + #ifdef HAVE_OPENSSL diff --git a/net/ekg/patches/patch-src_events_h b/net/ekg/patches/patch-src_events_h new file mode 100644 index 00000000000..65fec4c1195 --- /dev/null +++ b/net/ekg/patches/patch-src_events_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_events_h,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/events.h.orig Fri Feb 18 14:06:17 2005 ++++ src/events.h Tue Mar 29 22:40:31 2011 +@@ -21,7 +21,7 @@ + #ifndef __EVENTS_H + #define __EVENTS_H + +-#include "libgadu.h" ++#include + #include "userlist.h" + + struct handler { diff --git a/net/ekg/patches/patch-src_log_h b/net/ekg/patches/patch-src_log_h new file mode 100644 index 00000000000..f18d738bad6 --- /dev/null +++ b/net/ekg/patches/patch-src_log_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_log_h,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/log.h.orig Mon Dec 5 20:20:08 2005 ++++ src/log.h Tue Mar 29 22:40:31 2011 +@@ -28,7 +28,7 @@ + #include + + #include "dynstuff.h" +-#include "libgadu.h" ++#include + + struct last { + int type; /* 0 - przychodz?ca, 1 - wychodz?ca */ diff --git a/net/ekg/patches/patch-src_msgqueue_c b/net/ekg/patches/patch-src_msgqueue_c new file mode 100644 index 00000000000..ddaf764955d --- /dev/null +++ b/net/ekg/patches/patch-src_msgqueue_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_msgqueue_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/msgqueue.c.orig Sat Aug 5 17:02:52 2006 ++++ src/msgqueue.c Tue Mar 29 22:40:31 2011 +@@ -32,7 +32,7 @@ + #include + + #include "dynstuff.h" +-#include "libgadu.h" ++#include + #include "msgqueue.h" + #include "stuff.h" + #include "xmalloc.h" diff --git a/net/ekg/patches/patch-src_msgqueue_h b/net/ekg/patches/patch-src_msgqueue_h new file mode 100644 index 00000000000..874de4fc068 --- /dev/null +++ b/net/ekg/patches/patch-src_msgqueue_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_msgqueue_h,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/msgqueue.h.orig Mon Dec 5 20:20:08 2005 ++++ src/msgqueue.h Tue Mar 29 22:40:31 2011 +@@ -25,7 +25,7 @@ + #include + + #include "dynstuff.h" +-#include "libgadu.h" ++#include + + struct msg_queue { + int msg_class; diff --git a/net/ekg/patches/patch-src_python_c b/net/ekg/patches/patch-src_python_c new file mode 100644 index 00000000000..54ca0922f32 --- /dev/null +++ b/net/ekg/patches/patch-src_python_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_python_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/python.c.orig Thu Aug 24 19:57:56 2006 ++++ src/python.c Tue Mar 29 22:40:31 2011 +@@ -27,7 +27,7 @@ + #include + + #include "commands.h" +-#include "libgadu.h" ++#include + #include "stuff.h" + #include "themes.h" + #include "ui.h" diff --git a/net/ekg/patches/patch-src_simlite_c b/net/ekg/patches/patch-src_simlite_c new file mode 100644 index 00000000000..da1ad3bbdc5 --- /dev/null +++ b/net/ekg/patches/patch-src_simlite_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_simlite_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/simlite.c.orig Sat Aug 5 17:02:52 2006 ++++ src/simlite.c Tue Mar 29 22:40:31 2011 +@@ -35,7 +35,7 @@ + #include + #include + +-#include "libgadu.h" ++#include + #include "simlite.h" + + #ifndef PATH_MAX diff --git a/net/ekg/patches/patch-src_stuff_c b/net/ekg/patches/patch-src_stuff_c new file mode 100644 index 00000000000..56aa14410d5 --- /dev/null +++ b/net/ekg/patches/patch-src_stuff_c @@ -0,0 +1,17 @@ +$OpenBSD: patch-src_stuff_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/stuff.c.orig Sat Apr 28 21:02:24 2007 ++++ src/stuff.c Wed Mar 30 00:32:56 2011 +@@ -53,9 +53,8 @@ + #include + + #include "commands.h" +-#include "compat.h" + #include "dynstuff.h" +-#include "libgadu.h" ++#include + #ifdef HAVE_OPENSSL + # include "simlite.h" + #endif diff --git a/net/ekg/patches/patch-src_stuff_h b/net/ekg/patches/patch-src_stuff_h new file mode 100644 index 00000000000..76444a6a5d8 --- /dev/null +++ b/net/ekg/patches/patch-src_stuff_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_stuff_h,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/stuff.h.orig Sat Apr 28 21:02:25 2007 ++++ src/stuff.h Tue Mar 29 22:40:31 2011 +@@ -35,7 +35,7 @@ + #include + + #include "dynstuff.h" +-#include "libgadu.h" ++#include + #include "ioctld.h" + + #define DEBUG_MAX_LINES 50 /* ile linii z debug zrzuca? do pliku */ diff --git a/net/ekg/patches/patch-src_ui-ncurses_c b/net/ekg/patches/patch-src_ui-ncurses_c new file mode 100644 index 00000000000..9717cbc4fa6 --- /dev/null +++ b/net/ekg/patches/patch-src_ui-ncurses_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_ui-ncurses_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/ui-ncurses.c.orig Sun Mar 11 12:27:21 2007 ++++ src/ui-ncurses.c Tue Mar 29 22:40:31 2011 +@@ -66,7 +66,7 @@ + #include + + #include "commands.h" +-#include "libgadu.h" ++#include + #include "mail.h" + #ifndef HAVE_STRLCAT + # include "../compat/strlcat.h" diff --git a/net/ekg/patches/patch-src_userlist_c b/net/ekg/patches/patch-src_userlist_c new file mode 100644 index 00000000000..7bf88e593d1 --- /dev/null +++ b/net/ekg/patches/patch-src_userlist_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_userlist_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/userlist.c.orig Sat Apr 28 21:02:26 2007 ++++ src/userlist.c Tue Mar 29 22:40:31 2011 +@@ -38,7 +38,7 @@ + + #include "commands.h" + #include "dynstuff.h" +-#include "libgadu.h" ++#include + #ifndef HAVE_STRLCAT + # include "../compat/strlcat.h" + #endif diff --git a/net/ekg/patches/patch-src_userlist_h b/net/ekg/patches/patch-src_userlist_h new file mode 100644 index 00000000000..305867369fc --- /dev/null +++ b/net/ekg/patches/patch-src_userlist_h @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_userlist_h,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/userlist.h.orig Sat Apr 28 21:02:26 2007 ++++ src/userlist.h Tue Mar 29 22:40:31 2011 +@@ -30,7 +30,7 @@ + #include + #include + +-#include "libgadu.h" ++#include + #include "dynstuff.h" + #include "stuff.h" + diff --git a/net/ekg/patches/patch-src_vars_c b/net/ekg/patches/patch-src_vars_c new file mode 100644 index 00000000000..15a8be4b547 --- /dev/null +++ b/net/ekg/patches/patch-src_vars_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_vars_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/vars.c.orig Sat Apr 28 21:02:26 2007 ++++ src/vars.c Tue Mar 29 22:40:31 2011 +@@ -28,7 +28,7 @@ + #include + + #include "dynstuff.h" +-#include "libgadu.h" ++#include + #include "mail.h" + #ifndef HAVE_STRLCAT + # include "../compat/strlcat.h" diff --git a/net/ekg/patches/patch-src_voice_c b/net/ekg/patches/patch-src_voice_c new file mode 100644 index 00000000000..5696d41dcf9 --- /dev/null +++ b/net/ekg/patches/patch-src_voice_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_voice_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/voice.c.orig Sun Mar 11 12:27:24 2007 ++++ src/voice.c Tue Mar 29 22:40:31 2011 +@@ -29,7 +29,7 @@ + #include + #include + +-#include "libgadu.h" ++#include + #include "voice.h" + #include "stuff.h" + #include "xmalloc.h" diff --git a/net/ekg/patches/patch-src_xmalloc_c b/net/ekg/patches/patch-src_xmalloc_c new file mode 100644 index 00000000000..bad6ba3045e --- /dev/null +++ b/net/ekg/patches/patch-src_xmalloc_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_xmalloc_c,v 1.1 2011/04/06 09:35:03 jasper Exp $ + +- external libgadu support, from cvs.pld-linux.org + +--- src/xmalloc.c.orig Thu Apr 3 14:39:07 2003 ++++ src/xmalloc.c Tue Mar 29 22:40:31 2011 +@@ -28,7 +28,7 @@ + #include "configfile.h" + #include "stuff.h" + #include "userlist.h" +-#include "libgadu.h" ++#include + + void ekg_oom_handler() + { diff --git a/net/ekg/pkg/PLIST b/net/ekg/pkg/PLIST index 401a94067a3..47b022465e4 100644 --- a/net/ekg/pkg/PLIST +++ b/net/ekg/pkg/PLIST @@ -1,10 +1,5 @@ -@comment $OpenBSD: PLIST,v 1.2 2008/10/15 14:59:37 ajacoutot Exp $ +@comment $OpenBSD: PLIST,v 1.3 2011/04/06 09:35:03 jasper Exp $ @bin bin/ekg -@comment include/libgadu-config.h -@comment include/libgadu.h -@comment lib/libgadu.a -@comment lib/pkgconfig/ -@comment lib/pkgconfig/libgadu.pc @man man/man1/ekg.1 man/pl/ man/pl/man1/