diff options
author | jase <jase@FreeBSD.org> | 2012-07-11 20:05:12 +0800 |
---|---|---|
committer | jase <jase@FreeBSD.org> | 2012-07-11 20:05:12 +0800 |
commit | 5870d5aa9a2b0b8dab821e2d96ff33754fedce03 (patch) | |
tree | ddfd49803b95032128140086322bafe70486697a /irc | |
parent | d3077005aafffb09005d7b071f15277b444f784b (diff) | |
download | freebsd-ports-gnome-5870d5aa9a2b0b8dab821e2d96ff33754fedce03.tar.gz freebsd-ports-gnome-5870d5aa9a2b0b8dab821e2d96ff33754fedce03.tar.zst freebsd-ports-gnome-5870d5aa9a2b0b8dab821e2d96ff33754fedce03.zip |
- Add SASL option to enable SASL authentication support
- Use devel/ncurses as it provides ability for 256 color support for
ncursesw
- Fix Lua support when used with devel/lua50
- Remove 'Enable' from option descriptions
Approved by: flo (mentor)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/weechat/Makefile | 29 | ||||
-rw-r--r-- | irc/weechat/files/patch-cmake-FindLua_cmake | 22 | ||||
-rw-r--r-- | irc/weechat/files/patch-src-gui-curses-CMakeLists_txt | 11 | ||||
-rw-r--r-- | irc/weechat/files/patch-src-gui-curses-gui_curses_h | 12 | ||||
-rw-r--r-- | irc/weechat/files/patch-src-gui-curses-gui_curses_term_c | 11 |
5 files changed, 31 insertions, 54 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile index a12545102e28..a8938d0609ac 100644 --- a/irc/weechat/Makefile +++ b/irc/weechat/Makefile @@ -7,6 +7,7 @@ PORTNAME= weechat PORTVERSION= 0.3.8 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= http://weechat.org/files/src/ @@ -20,24 +21,26 @@ CONFLICTS= weechat-devel-0.* USE_ICONV= yes USE_LDCONFIG= yes USE_NCURSES= yes +WITH_NCURSES_PORT= yes USE_CMAKE= yes +CMAKE_ARGS+= -DNCURSES_INCLUDE_PATH=${LOCALBASE}/include/ncurses CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib WANT_PERL= yes LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl -OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA GUILE CHARSET BACKTRACE ASPELL GNUTLS NLS DOCUMENTATION +OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA GUILE CHARSET BACKTRACE ASPELL GNUTLS NLS DOCUMENTATION SASL OPTIONS_DEFAULT=CHARSET -BACKTRACE_DESC= Enable crash backtraces -CHARSET_DESC= Enable charset conversion support +BACKTRACE_DESC= Provide crash backtraces +CHARSET_DESC= Charset conversion support DOCUMENTATION_DESC= Build and install documentation -GUILE_DESC= Enable Guile scripting support -LUA_DESC= Enable Lua scripting support -PERL_DESC= Enable Perl scripting support -PYTHON_DESC= Enable Python scripting support -RUBY_DESC= Enable Ruby scripting support -TCL_DESC= Enable Tcl scripting support +GUILE_DESC= Guile scripting support +LUA_DESC= Lua scripting support +PERL_DESC= Perl scripting support +PYTHON_DESC= Python scripting support +RUBY_DESC= Ruby scripting support +TCL_DESC= Tcl scripting support .include <bsd.port.options.mk> @@ -143,6 +146,14 @@ PLIST_SUB+= DOCUMENTATION="@comment " LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo .endif +.if ${PORT_OPTIONS:MSASL} +LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt +PLIST_SUB+= SASL="" +.else +CMAKE_ARGS+= -DENABLE_SASL=no +PLIST_SUB+= SASL="@comment " +.endif + MAN1= weechat-curses.1 post-patch: diff --git a/irc/weechat/files/patch-cmake-FindLua_cmake b/irc/weechat/files/patch-cmake-FindLua_cmake index 820b311b2195..e960bcef3623 100644 --- a/irc/weechat/files/patch-cmake-FindLua_cmake +++ b/irc/weechat/files/patch-cmake-FindLua_cmake @@ -1,6 +1,6 @@ ---- cmake/FindLua.cmake.orig 2010-12-10 15:13:27.000000000 +0000 -+++ cmake/FindLua.cmake 2010-12-12 04:00:45.000000000 +0000 -@@ -33,51 +33,24 @@ +--- cmake/FindLua.cmake.orig 2012-07-06 10:35:11.000000000 +0000 ++++ cmake/FindLua.cmake 2012-07-07 23:45:24.258581623 +0000 +@@ -33,51 +33,25 @@ SET(LUA_FIND_QUIETLY TRUE) ENDIF(LUA_FOUND) @@ -37,8 +37,13 @@ - LUA50_LIBRARY NAMES lua50 lua5.0 lua-5.0 lua - PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib - PATH_SUFFIXES lua50 lua5.0 lua-5.0 lua -- ) -- ++IF(BSD_LUA_VER VERSION_EQUAL "5.0") ++ FIND_LIBRARY(LUALIB_LIBRARY ++ NAMES lualib ++ PATHS ${BSD_LUA_LIBDIR} + ) ++ENDIF(BSD_LUA_VER VERSION_EQUAL "5.0") + - FIND_LIBRARY( - LUALIB50_LIBRARY NAMES lualib50 lualib5.0 lualib-5.0 lualib - PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib @@ -53,12 +58,7 @@ - SET(LUA_FOUND TRUE) - ENDIF(LUA50_INCLUDE_PATH AND LUA50_LIBRARY AND LUALIB50_LIBRARY) -ENDIF(LUA51_INCLUDE_PATH AND LUA51_LIBRARY) -+SET(LUA_VERSION ${BSD_LUA_VER}) -+ -+IF(LUA_VERSION STREQUAL "5.0") -+ SET(LUALIB_LIBRARY ${LUA_LIBRARY}) -+ENDIF(LUA_VERSION STREQUAL "5.0") - +- +IF(LUA_INCLUDE_PATH AND LUA_LIBRARY) + SET(LUA_FOUND TRUE) +ENDIF(LUA_INCLUDE_PATH AND LUA_LIBRARY) diff --git a/irc/weechat/files/patch-src-gui-curses-CMakeLists_txt b/irc/weechat/files/patch-src-gui-curses-CMakeLists_txt deleted file mode 100644 index 0ba9c2e07910..000000000000 --- a/irc/weechat/files/patch-src-gui-curses-CMakeLists_txt +++ /dev/null @@ -1,11 +0,0 @@ ---- src/gui/curses/CMakeLists.txt.orig 2011-08-18 04:19:10.997333389 +0100 -+++ src/gui/curses/CMakeLists.txt 2011-08-18 04:19:56.348074585 +0100 -@@ -38,7 +38,7 @@ - - FIND_PACKAGE(Ncurses) - IF(NCURSES_FOUND) -- CHECK_INCLUDE_FILES(ncursesw/ncurses.h NCURSESW_HEADERS) -+ CHECK_INCLUDE_FILES(ncurses.h NCURSESW_HEADERS) - IF(NCURSESW_HEADERS) - ADD_DEFINITIONS(-DHAVE_NCURSESW_CURSES_H) - ELSE(NCURSESW_HEADERS) diff --git a/irc/weechat/files/patch-src-gui-curses-gui_curses_h b/irc/weechat/files/patch-src-gui-curses-gui_curses_h deleted file mode 100644 index c813607047fc..000000000000 --- a/irc/weechat/files/patch-src-gui-curses-gui_curses_h +++ /dev/null @@ -1,12 +0,0 @@ ---- src/gui/curses/gui-curses.h.orig 2011-08-17 14:08:18.000000000 +0100 -+++ src/gui/curses/gui-curses.h 2011-08-18 05:02:47.647960373 +0100 -@@ -23,7 +23,8 @@ - #include <time.h> - - #ifdef HAVE_NCURSESW_CURSES_H --#include <ncursesw/ncurses.h> -+#define _XOPEN_SOURCE_EXTENDED 1 -+#include <ncurses.h> - #elif HAVE_NCURSES_H - #include <ncurses.h> - #else diff --git a/irc/weechat/files/patch-src-gui-curses-gui_curses_term_c b/irc/weechat/files/patch-src-gui-curses-gui_curses_term_c deleted file mode 100644 index 1d07c9c78616..000000000000 --- a/irc/weechat/files/patch-src-gui-curses-gui_curses_term_c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/gui/curses/gui-curses-term.c.orig 2011-08-18 04:25:40.510233646 +0100 -+++ src/gui/curses/gui-curses-term.c 2011-08-18 04:25:55.436405801 +0100 -@@ -26,7 +26,7 @@ - #endif - - #ifdef HAVE_NCURSESW_CURSES_H --#include <ncursesw/term.h> -+#include <term.h> - #else - #include <term.h> - #endif |