2012-09-29 13:51:01 +00:00
|
|
|
# Created by: clement
|
2004-02-09 11:56:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= weechat
|
2016-01-12 17:39:03 +00:00
|
|
|
PORTVERSION= 1.4
|
2004-02-09 11:56:30 +00:00
|
|
|
CATEGORIES= irc
|
2015-10-10 20:52:20 +00:00
|
|
|
MASTER_SITES= http://weechat.org/files/src/
|
2004-02-09 11:56:30 +00:00
|
|
|
|
2012-06-10 17:28:57 +00:00
|
|
|
MAINTAINER= jase@FreeBSD.org
|
2014-06-13 07:36:27 +00:00
|
|
|
COMMENT= Lightweight and user friendly ncurses based IRC client
|
2004-02-09 11:56:30 +00:00
|
|
|
|
2011-10-23 15:48:30 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
CONFLICTS= weechat-devel-[0-9]*
|
2011-10-23 15:48:30 +00:00
|
|
|
|
2006-08-28 09:49:15 +00:00
|
|
|
USE_LDCONFIG= yes
|
2016-01-16 14:20:15 +00:00
|
|
|
USES= cmake iconv localbase ncurses tar:bzip2
|
2015-09-03 15:44:13 +00:00
|
|
|
CMAKE_ARGS+= -DENABLE_GUILE=no \
|
|
|
|
-DICONV_INCLUDE_PATH=${ICONV_INCLUDE_PATH}
|
2014-10-16 19:29:33 +00:00
|
|
|
|
2016-01-12 17:39:03 +00:00
|
|
|
LIB_DEPENDS+= libcurl.so:ftp/curl \
|
|
|
|
libgcrypt.so:security/libgcrypt
|
2004-02-09 11:56:30 +00:00
|
|
|
|
2015-12-21 18:35:52 +00:00
|
|
|
OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA JAVASCRIPT CHARSET BACKTRACE ASPELL \
|
2015-10-10 20:52:20 +00:00
|
|
|
GNUTLS CA_BUNDLE NLS ICON MANPAGES DOCS
|
2014-02-12 15:52:18 +00:00
|
|
|
OPTIONS_DEFAULT=RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
|
2015-10-10 20:52:20 +00:00
|
|
|
GNUTLS CA_BUNDLE ICON MANPAGES
|
2014-10-16 19:29:33 +00:00
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
2012-06-10 17:28:57 +00:00
|
|
|
|
2012-07-11 12:05:12 +00:00
|
|
|
BACKTRACE_DESC= Provide crash backtraces
|
2014-10-17 15:05:27 +00:00
|
|
|
CA_BUNDLE_DESC= Include CA bundle for certificate verification
|
2012-07-11 12:05:12 +00:00
|
|
|
CHARSET_DESC= Charset conversion support
|
2015-10-10 20:52:20 +00:00
|
|
|
ICON_DESC= Desktop icon
|
2015-12-21 18:35:52 +00:00
|
|
|
JAVASCRIPT_DESC=Javascript support
|
2014-10-17 15:05:27 +00:00
|
|
|
PYTHON_DESC= Python scripting language support
|
2015-10-10 20:52:20 +00:00
|
|
|
RUBY_DESC= Ruby scripting language support
|
2009-05-17 14:10:22 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
ASPELL_CMAKE_OFF= -DENABLE_ASPELL=no
|
2016-01-12 17:39:03 +00:00
|
|
|
ASPELL_LIB_DEPENDS= libaspell.so:textproc/aspell
|
2009-05-17 14:10:22 +00:00
|
|
|
|
2016-01-16 14:20:15 +00:00
|
|
|
BACKTRACE_USES= execinfo
|
2007-01-11 20:36:46 +00:00
|
|
|
|
2015-10-10 20:52:20 +00:00
|
|
|
CA_BUNDLE_CMAKE_ON= -DCA_FILE=${LOCALBASE}/share/certs/ca-root-nss.crt
|
2016-01-12 17:39:03 +00:00
|
|
|
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
|
2014-10-17 15:05:27 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
CHARSET_CMAKE_OFF= -DENABLE_CHARSET=no
|
2006-07-03 11:01:36 +00:00
|
|
|
|
2015-10-10 20:52:20 +00:00
|
|
|
DOCS_CMAKE_ON= -DENABLE_DOC=yes
|
|
|
|
|
2015-12-21 18:35:52 +00:00
|
|
|
JAVASCRIPT_CMAKE_OFF= -DENABLE_JAVASCRIPT=no
|
|
|
|
JAVASCRIPT_CMAKE_ON= -DENABLE_JAVASCRIPT=yes
|
2016-01-12 17:39:03 +00:00
|
|
|
JAVASCRIPT_LIB_DEPENDS= libv8.so:lang/v8
|
2015-12-21 18:35:52 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
GNUTLS_CMAKE_OFF= -DENABLE_GNUTLS=no
|
|
|
|
GNUTLS_USES= pkgconfig
|
2016-01-12 17:39:03 +00:00
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so.28:security/gnutls
|
2007-01-28 13:00:10 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
LUA_CMAKE_OFF= -DENABLE_LUA=no
|
|
|
|
LUA_CMAKE_ON= -DBSD_LUA_LIBDIR=${LUA_LIBDIR} \
|
2015-10-10 20:52:20 +00:00
|
|
|
-DBSD_LUA_INCDIR=${LUA_INCDIR} \
|
|
|
|
-DBSD_LUA_VER=${LUA_VER}
|
|
|
|
LUA_USES= lua:51
|
|
|
|
|
|
|
|
MANPAGES_CMAKE_ON= -DENABLE_MAN=yes -DMANDIR=${MANPREFIX}/man
|
2006-07-03 11:01:36 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
NLS_CMAKE_OFF= -DENABLE_NLS=no
|
2015-10-10 20:52:20 +00:00
|
|
|
NLS_USES= gettext
|
2006-07-03 11:01:36 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
PERL_CMAKE_OFF= -DENABLE_PERL=no
|
2015-10-10 20:52:20 +00:00
|
|
|
PERL_USES= perl5
|
2004-02-09 11:56:30 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
PYTHON_CMAKE_OFF= -DENABLE_PYTHON=no
|
|
|
|
PYTHON_CMAKE_ON= -DBSD_PYTHON_CMD=${PYTHON_CMD} \
|
2015-10-10 20:52:20 +00:00
|
|
|
-DBSD_PYTHON_VER=${PYTHON_VERSION}
|
2014-10-16 19:29:33 +00:00
|
|
|
PYTHON_USES= python
|
2005-11-15 15:40:23 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
RUBY_CMAKE_OFF= -DENABLE_RUBY=no
|
|
|
|
RUBY_CMAKE_ON= -DBSD_RUBY_CMD=${RUBY} \
|
2015-10-10 20:52:20 +00:00
|
|
|
-DBSD_RUBY_VER=${RUBY_NAME}
|
|
|
|
RUBY_USE= ruby=yes
|
2009-11-21 11:27:21 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
TCL_CMAKE_OFF= -DENABLE_TCL=no
|
|
|
|
TCL_CMAKE_ON= -DBSD_TCL_VER=${TCL_VER} \
|
2015-10-10 20:52:20 +00:00
|
|
|
-DBSD_TCL_LIBDIR=${LOCALBASE}/lib \
|
|
|
|
-DBSD_TCL_INCDIR=${TCL_INCLUDEDIR}
|
|
|
|
TCL_USES= tcl:85+
|
2014-02-13 13:23:05 +00:00
|
|
|
|
2014-10-16 19:29:33 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2015-10-10 20:52:20 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
|
2016-01-12 17:39:03 +00:00
|
|
|
BUILD_DEPENDS+= xsltproc:textproc/libxslt \
|
|
|
|
docbook-xsl>=0:textproc/docbook-xsl \
|
|
|
|
asciidoc:textproc/asciidoc \
|
|
|
|
source-highlight>=3.1.5:textproc/source-highlight
|
2013-10-18 21:50:45 +00:00
|
|
|
.endif
|
2013-05-24 14:16:47 +00:00
|
|
|
|
2008-08-20 00:57:32 +00:00
|
|
|
post-patch:
|
2015-10-10 20:52:20 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2011-01-28 04:55:55 +00:00
|
|
|
.for f in src/CMakeLists.txt src/core/CMakeLists.txt cmake/*.cmake
|
2015-10-10 20:52:20 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/${f}
|
2011-01-28 04:55:55 +00:00
|
|
|
.endfor
|
2012-06-10 17:28:57 +00:00
|
|
|
.if empty(PORT_OPTIONS:MBACKTRACE)
|
2015-10-10 20:52:20 +00:00
|
|
|
@${REINPLACE_CMD} -e '/IF.*FreeBSD/,/ENDIF.*FreeBSD/d' \
|
|
|
|
${WRKSRC}/src/core/CMakeLists.txt
|
2011-01-28 04:55:55 +00:00
|
|
|
.endif
|
2013-05-24 14:16:47 +00:00
|
|
|
.if empty(PORT_OPTIONS:MICON)
|
2015-10-10 20:52:20 +00:00
|
|
|
@${REINPLACE_CMD} -e '/^# icon$$/,/^$$/d' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2013-05-24 14:16:47 +00:00
|
|
|
.endif
|
2010-01-27 01:04:15 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-10-18 21:50:45 +00:00
|
|
|
${LN} -sf ${PREFIX}/bin/weechat ${STAGEDIR}${PREFIX}/bin/weechat-curses
|
2008-08-20 00:57:32 +00:00
|
|
|
|
2009-11-21 11:27:21 +00:00
|
|
|
.include <bsd.port.mk>
|