aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-12-21 18:35:52 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-12-21 18:35:52 +0000
commite40656d6cfd00c663ea66296f142de3f85e57a17 (patch)
treeeb2deb21a0c8d85eb1296aa8c67c9db76f11b265 /irc
parent84779f49e29773510fbd5daa5f0226a28d874187 (diff)
downloadports-e40656d6cfd00c663ea66296f142de3f85e57a17.tar.gz
ports-e40656d6cfd00c663ea66296f142de3f85e57a17.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/weechat/Makefile7
-rw-r--r--irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp10
-rw-r--r--irc/weechat/pkg-plist1
3 files changed, 17 insertions, 1 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 005a2df6dcba..d22edd7b8506 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -22,7 +22,7 @@ CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl \
libgcrypt.so:${PORTSDIR}/security/libgcrypt
-OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
+OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA JAVASCRIPT CHARSET BACKTRACE ASPELL \
GNUTLS CA_BUNDLE NLS ICON MANPAGES DOCS
OPTIONS_DEFAULT=RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
GNUTLS CA_BUNDLE ICON MANPAGES
@@ -33,6 +33,7 @@ BACKTRACE_DESC= Provide crash backtraces
CA_BUNDLE_DESC= Include CA bundle for certificate verification
CHARSET_DESC= Charset conversion support
ICON_DESC= Desktop icon
+JAVASCRIPT_DESC=Javascript support
PYTHON_DESC= Python scripting language support
RUBY_DESC= Ruby scripting language support
@@ -48,6 +49,10 @@ CHARSET_CMAKE_OFF= -DENABLE_CHARSET=no
DOCS_CMAKE_ON= -DENABLE_DOC=yes
+JAVASCRIPT_CMAKE_OFF= -DENABLE_JAVASCRIPT=no
+JAVASCRIPT_CMAKE_ON= -DENABLE_JAVASCRIPT=yes
+JAVASCRIPT_LIB_DEPENDS= libv8.so:${PORTSDIR}/lang/v8
+
GNUTLS_CMAKE_OFF= -DENABLE_GNUTLS=no
GNUTLS_USES= pkgconfig
GNUTLS_LIB_DEPENDS= libgnutls.so.28:${PORTSDIR}/security/gnutls
diff --git a/irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp b/irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp
new file mode 100644
index 000000000000..5f48b7cac790
--- /dev/null
+++ b/irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp
@@ -0,0 +1,10 @@
+--- src/plugins/javascript/weechat-js-api.cpp.orig 2015-08-16 06:27:07 UTC
++++ src/plugins/javascript/weechat-js-api.cpp
+@@ -25,6 +25,7 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <string>
++#include <time.h>
+
+ extern "C"
+ {
diff --git a/irc/weechat/pkg-plist b/irc/weechat/pkg-plist
index 060e9b655628..608ca8303186 100644
--- a/irc/weechat/pkg-plist
+++ b/irc/weechat/pkg-plist
@@ -20,6 +20,7 @@ libdata/pkgconfig/weechat.pc
%%MANPAGES%%man/ru/man1/weechat.1.gz
%%ASPELL%%lib/weechat/plugins/aspell.so
%%CHARSET%%lib/weechat/plugins/charset.so
+%%JAVASCRIPT%%lib/weechat/plugins/javascript.so
%%LUA%%lib/weechat/plugins/lua.so
%%PERL%%lib/weechat/plugins/perl.so
%%PYTHON%%lib/weechat/plugins/python.so