2010-03-09 08:46:32 +01:00
|
|
|
# New ports collection makefile for: weechat-devel
|
|
|
|
# Date created: 2010-01-06
|
|
|
|
# Whom: Jase Thew <freebsd@beardz.net>
|
2004-02-09 12:56:30 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= weechat
|
2012-07-11 14:06:27 +02:00
|
|
|
PORTVERSION= 20120707
|
2004-02-09 12:56:30 +01:00
|
|
|
CATEGORIES= irc
|
2010-12-20 06:37:32 +01:00
|
|
|
MASTER_SITES= http://perturb.me.uk/distfiles/
|
2010-03-09 08:46:32 +01:00
|
|
|
PKGNAMESUFFIX= -devel
|
2012-02-14 06:42:02 +01:00
|
|
|
DISTNAME= weechat-devel-${GITREV}
|
2004-02-09 12:56:30 +01:00
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
MAINTAINER= jase@FreeBSD.org
|
2012-03-27 06:19:52 +02:00
|
|
|
COMMENT= A lightweight and user friendly ncurses based IRC client
|
2004-02-09 12:56:30 +01:00
|
|
|
|
2011-08-18 08:22:18 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-03-09 08:46:32 +01:00
|
|
|
CONFLICTS= weechat-0.3*
|
|
|
|
|
2006-07-03 13:01:36 +02:00
|
|
|
USE_ICONV= yes
|
2006-08-28 11:49:15 +02:00
|
|
|
USE_LDCONFIG= yes
|
2011-08-18 08:22:18 +02:00
|
|
|
USE_NCURSES= yes
|
2012-07-11 14:06:27 +02:00
|
|
|
WITH_NCURSES_PORT= yes
|
2010-01-27 02:04:15 +01:00
|
|
|
USE_CMAKE= yes
|
2012-07-11 14:06:27 +02:00
|
|
|
CMAKE_ARGS+= -DNCURSES_INCLUDE_PATH=${LOCALBASE}/include/ncurses
|
2010-01-27 02:04:15 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
2009-11-21 12:27:21 +01:00
|
|
|
WANT_PERL= yes
|
2004-02-09 12:56:30 +01:00
|
|
|
|
2012-05-22 13:07:26 +02:00
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
2012-02-07 07:32:58 +01:00
|
|
|
|
2012-07-11 14:06:27 +02:00
|
|
|
GITREV= 92aa9bf
|
2012-06-10 19:20:10 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${GITREV}
|
|
|
|
|
2012-02-27 21:28:30 +01:00
|
|
|
# Please note: the DEBUG option is *NOT* empty, it is utilised by
|
2012-03-27 06:19:52 +02:00
|
|
|
# bsd.cmake.mk to set the cmake build type to Debug instead of
|
2012-02-27 21:28:30 +01:00
|
|
|
# Release.
|
|
|
|
|
2012-07-11 14:06:27 +02:00
|
|
|
OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA GUILE CHARSET BACKTRACE DEBUG ASPELL GNUTLS NLS DOCUMENTATION SASL
|
2012-06-10 19:20:10 +02:00
|
|
|
OPTIONS_DEFAULT=CHARSET BACKTRACE DEBUG
|
|
|
|
|
2012-07-11 14:06:27 +02:00
|
|
|
BACKTRACE_DESC= Provide crash backtraces
|
|
|
|
CHARSET_DESC= Charset conversion support
|
2012-06-10 19:20:10 +02:00
|
|
|
DOCUMENTATION_DESC= Build and install documentation
|
2012-07-11 14:06:27 +02:00
|
|
|
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
|
2010-03-09 08:46:32 +01:00
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-05-17 16:10:22 +02:00
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MCHARSET}
|
|
|
|
PLIST_SUB+= CHARSET=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_CHARSET=no
|
2009-05-19 16:26:30 +02:00
|
|
|
PLIST_SUB+= CHARSET="@comment "
|
2007-01-11 21:36:46 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2009-11-21 12:27:21 +01:00
|
|
|
USE_GETTEXT= yes
|
2005-05-07 11:07:00 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2012-06-10 19:20:10 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_NLS=no
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2006-07-03 13:01:36 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2007-01-28 14:00:10 +01:00
|
|
|
BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
|
|
|
|
PLIST_SUB+= ASPELL=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_ASPELL=no
|
2007-01-28 14:00:10 +01:00
|
|
|
PLIST_SUB+= ASPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2010-12-20 06:37:32 +01:00
|
|
|
USE_PYTHON= -2.7
|
|
|
|
CMAKE_ARGS+= -DBSD_PYTHON_CMD=${PYTHON_CMD} \
|
|
|
|
-DBSD_PYTHON_VER=${PYTHON_VERSION}
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= PYTHON=""
|
2005-05-07 11:07:00 +02:00
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_PYTHON=no
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MRUBY}
|
2009-11-21 12:27:21 +01:00
|
|
|
USE_RUBY= yes
|
2010-12-20 06:37:32 +01:00
|
|
|
CMAKE_ARGS+= -DBSD_RUBY_CMD=${RUBY} \
|
|
|
|
-DBSD_RUBY_VER=${RUBY_NAME}
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= RUBY=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_RUBY=no
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= RUBY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
2012-05-22 13:07:26 +02:00
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
2006-07-03 13:01:36 +02:00
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_GNUTLS=no
|
2005-05-07 11:07:00 +02:00
|
|
|
.endif
|
2004-02-09 12:56:30 +01:00
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2007-07-25 09:27:23 +02:00
|
|
|
USE_PERL5= yes
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_PERL=no
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= PERL="@comment "
|
2005-11-16 17:08:16 +01:00
|
|
|
.endif
|
2005-11-15 16:40:23 +01:00
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MTCL}
|
2009-11-21 12:27:21 +01:00
|
|
|
USE_TCL= 83+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
2010-12-20 06:37:32 +01:00
|
|
|
CMAKE_ARGS+= -DBSD_TCL_VER=${TCL_VER} \
|
|
|
|
-DBSD_TCL_LIBDIR=${LOCALBASE}/lib \
|
|
|
|
-DBSD_TCL_INCDIR=${TCL_INCLUDEDIR}
|
2009-11-21 12:27:21 +01:00
|
|
|
PLIST_SUB+= TCL=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_TCL=no
|
2009-11-21 12:27:21 +01:00
|
|
|
PLIST_SUB+= TCL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MLUA}
|
2012-07-11 14:06:27 +02:00
|
|
|
USE_LUA= 5.1+
|
|
|
|
CMAKE_ARGS+= -DBSD_LUA_LIBDIR=${LUA_LIBDIR} \
|
2010-12-20 06:37:32 +01:00
|
|
|
-DBSD_LUA_INCDIR=${LUA_INCDIR}
|
2010-01-27 02:04:15 +01:00
|
|
|
PLIST_SUB+= LUA=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_LUA=no
|
2010-01-27 02:04:15 +01:00
|
|
|
PLIST_SUB+= LUA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUILE}
|
2012-02-07 07:32:58 +01:00
|
|
|
IGNORE= guile support currently causes a segfault on exit. Please re-run 'make config' and disable GUILE
|
2012-05-22 13:07:26 +02:00
|
|
|
LIB_DEPENDS+= guile:${PORTSDIR}/lang/guile
|
2012-02-07 07:32:58 +01:00
|
|
|
PLIST_SUB+= GUILE=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_GUILE=no
|
|
|
|
PLIST_SUB+= GUILE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCUMENTATION}
|
2009-11-21 12:27:21 +01:00
|
|
|
BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc
|
2012-02-07 07:32:58 +01:00
|
|
|
BUILD_DEPENDS+= source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
|
2009-11-21 12:27:21 +01:00
|
|
|
PLIST_SUB+= DOCUMENTATION=""
|
|
|
|
.else
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_DOC=no
|
2009-11-21 12:27:21 +01:00
|
|
|
PLIST_SUB+= DOCUMENTATION="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-10 19:20:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MBACKTRACE}
|
2012-05-22 13:07:26 +02:00
|
|
|
LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo
|
2010-06-05 13:28:15 +02:00
|
|
|
.endif
|
|
|
|
|
2012-07-11 14:06:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MSASL}
|
|
|
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
|
|
|
PLIST_SUB+= SASL=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_SASL=no
|
|
|
|
PLIST_SUB+= SASL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2010-01-27 02:04:15 +01:00
|
|
|
MAN1= weechat-curses.1
|
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
post-patch:
|
2010-01-27 02:04:15 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e 's|INSTALL|#INSTALL|' ${WRKSRC}/doc/CMakeLists.txt
|
2010-12-20 06:37:32 +01:00
|
|
|
.for f in src/CMakeLists.txt src/core/CMakeLists.txt cmake/*.cmake
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
2012-06-10 19:20:10 +02:00
|
|
|
.if empty(PORT_OPTIONS:MBACKTRACE)
|
2010-06-05 13:28:15 +02:00
|
|
|
@${REINPLACE_CMD} -e '/IF.*FreeBSD/,/ENDIF.*FreeBSD/d' ${WRKSRC}/src/core/CMakeLists.txt
|
|
|
|
.endif
|
2010-01-27 02:04:15 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-02-14 06:42:02 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/weechat-curses.1 ${MAN1PREFIX}/man/man1
|
2008-08-20 02:57:32 +02:00
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.include <bsd.port.mk>
|