diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2015-12-22 02:35:52 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2015-12-22 02:35:52 +0800 |
commit | ecdc0d5d9c00685d3e66335d9cbac8e85140c6c9 (patch) | |
tree | eb2deb21a0c8d85eb1296aa8c67c9db76f11b265 /irc | |
parent | 342f1ac8eb81b5d650b2cab183fede016c25852e (diff) | |
download | freebsd-ports-gnome-ecdc0d5d9c00685d3e66335d9cbac8e85140c6c9.tar.gz freebsd-ports-gnome-ecdc0d5d9c00685d3e66335d9cbac8e85140c6c9.tar.zst freebsd-ports-gnome-ecdc0d5d9c00685d3e66335d9cbac8e85140c6c9.zip |
- Fix build if lang/v8 is installed
- Add JAVASCRIPT option and set it off by default
PR: 204881
Submitted by: sunpoet (myself)
Approved by: maintainer (timeout, 23 days)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/weechat/Makefile | 7 | ||||
-rw-r--r-- | irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp | 10 | ||||
-rw-r--r-- | irc/weechat/pkg-plist | 1 |
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 |