Index: Portfile
===================================================================
--- Portfile	(revision 48830)
+++ Portfile	(working copy)
@@ -3,8 +3,7 @@
 PortSystem              1.0
 
 name                    silc-client
-version                 1.1.4
-revision                1
+version                 1.1.7
 categories              irc
 description             client for the silc-network.
 long_description        silc-client is a client for the SILC (Secure Internet \
@@ -14,9 +13,9 @@
 platforms               darwin
 maintainers             nomaintainer
 master_sites            ${homepage}download/client/sources/
-checksums               md5     03e9ef2eb4ce6267bf791c450b929fb7 \
-                        sha1    043fd02ffc0bb420d411c4ca14ad307b48beaa06 \
-                        rmd160  519ba59912da4bb514330ca8e87979844f957ad0
+checksums               md5     b274f687b1f6ce8747296f83aad519b3 \
+                        sha1    3d6ebdeaea98a728cd225114c972116c8746fb72 \
+                        rmd160  06bb20b4ee795b814fc0fb73c07b3ae19b9b4e71
 use_bzip2               yes
 use_parallel_build      yes
 
@@ -41,6 +40,16 @@
 
 universal_variant       no
 
+variant irssi description {Build as an irssi plugin instead of a standalone client} {
+   configure.args-append   --with-silc-plugin=${prefix}/lib/irssi \
+                           --without-silc-includes
+   post-destroot {
+      ln -s ${prefix}/lib/irssi/modules/libsilc_core.dylib \
+         ${destroot}${prefix}/lib/irssi/modules/libsilc_core.so
+   }
+}
+
 livecheck.check         regex
 livecheck.url           ${homepage}
 livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
+

