aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2005-10-21 16:14:14 +0800
committervsevolod <vsevolod@FreeBSD.org>2005-10-21 16:14:14 +0800
commit18c252a66f55329e32f77b7c17baaf45596ceb43 (patch)
tree2277d24df57042d9daed4529ea64151392f33183 /net
parent13ffe8ce240b5df8c21037a28875ee47acb78a66 (diff)
downloadfreebsd-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')
-rw-r--r--net/mcabber/Makefile5
-rw-r--r--net/mcabber/files/patch-src_hbuf.c19
2 files changed, 22 insertions, 2 deletions
diff --git a/net/mcabber/Makefile b/net/mcabber/Makefile
index 83b2108384b0..41a025a421cc 100644
--- a/net/mcabber/Makefile
+++ b/net/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/mcabber/files/patch-src_hbuf.c b/net/mcabber/files/patch-src_hbuf.c
new file mode 100644
index 000000000000..4184cd99acfc
--- /dev/null
+++ b/net/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