diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2005-10-21 16:14:14 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2005-10-21 16:14:14 +0800 |
commit | 18c252a66f55329e32f77b7c17baaf45596ceb43 (patch) | |
tree | 2277d24df57042d9daed4529ea64151392f33183 /net-im | |
parent | 13ffe8ce240b5df8c21037a28875ee47acb78a66 (diff) | |
download | freebsd-ports-gnome-18c252a66f55329e32f77b7c17baaf45596ceb43.tar.gz freebsd-ports-gnome-18c252a66f55329e32f77b7c17baaf45596ceb43.tar.zst freebsd-ports-gnome-18c252a66f55329e32f77b7c17baaf45596ceb43.zip |
Actually fix build of mcabber on 4.x by fixing getopt usage.
Submitted by: vs
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/mcabber/Makefile | 5 | ||||
-rw-r--r-- | net-im/mcabber/files/patch-src_hbuf.c | 19 |
2 files changed, 22 insertions, 2 deletions
diff --git a/net-im/mcabber/Makefile b/net-im/mcabber/Makefile index 83b2108384b0..41a025a421cc 100644 --- a/net-im/mcabber/Makefile +++ b/net-im/mcabber/Makefile @@ -7,7 +7,7 @@ PORTNAME= mcabber PORTVERSION= 0.7.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ @@ -22,7 +22,8 @@ USE_GETTEXT= yes USE_GNOME= glib20 USE_GETOPT_LONG= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +LDFLAGS+= -lcrypto + MAN1= mcabber.1 PLIST_FILES= bin/mcabber %%EXAMPLESDIR%%/mcabberrc PLIST_DIRS= %%EXAMPLESDIR%% diff --git a/net-im/mcabber/files/patch-src_hbuf.c b/net-im/mcabber/files/patch-src_hbuf.c new file mode 100644 index 000000000000..4184cd99acfc --- /dev/null +++ b/net-im/mcabber/files/patch-src_hbuf.c @@ -0,0 +1,19 @@ +$FreeBSD$ + +--- src/hbuf.c.orig ++++ src/hbuf.c +@@ -70,12 +70,12 @@ + // Set p_hbuf to the end of the list, to speed up history loading + // (or CPU time will be used by g_list_last() for each line) + hbuf = *p_hbuf = g_list_last(*p_hbuf); +- hbuf_block *hbuf_b_prev = hbuf->data; ++ { hbuf_block *hbuf_b_prev = hbuf->data; + hbuf_block_elt->ptr = hbuf_b_prev->ptr_end; + hbuf_block_elt->flags = HBB_FLAG_PERSISTENT; + hbuf_block_elt->ptr_end_alloc = hbuf_b_prev->ptr_end_alloc; + g_list_append(*p_hbuf, hbuf_block_elt); +- } ++ }} + + if (strlen(text) >= HBB_BLOCKSIZE) { + // Too long |