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
|
2010-09-30 06:49:02 +02:00
|
|
|
PORTVERSION= 20100928
|
2004-02-09 12:56:30 +01:00
|
|
|
CATEGORIES= irc
|
2010-03-09 08:46:32 +01:00
|
|
|
MASTER_SITES= http://perturb.me.uk/distfiles/ \
|
|
|
|
http://freebsd.unixfreunde.de/sources/
|
|
|
|
PKGNAMESUFFIX= -devel
|
2010-09-30 06:49:02 +02:00
|
|
|
DISTNAME= weechat-devel-b3b0f2d31c4d3c6a31561c3793c61dd81287daa8
|
2004-02-09 12:56:30 +01:00
|
|
|
|
2010-03-09 08:46:32 +01:00
|
|
|
MAINTAINER= freebsd@beardz.net
|
2004-02-09 12:56:30 +01:00
|
|
|
COMMENT= A lightweight and user friendly ncurse based IRC client
|
|
|
|
|
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
|
2010-01-27 02:04:15 +01:00
|
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_USE_PTHREAD= yes
|
|
|
|
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
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
OPTIONS= RUBY "Ruby scripting support." Off \
|
|
|
|
PYTHON "Python scripting support." Off \
|
|
|
|
PERL "Perl scripting support." Off \
|
|
|
|
TCL "TCL scripting support." Off \
|
2010-01-27 02:04:15 +01:00
|
|
|
LUA "Lua scripting support." Off \
|
2009-11-21 12:27:21 +01:00
|
|
|
CHARSET "Charset support." On \
|
2010-06-05 13:28:15 +02:00
|
|
|
BACKTRACE "Backtraces." Off \
|
2010-03-09 08:46:32 +01:00
|
|
|
DEBUG "Debugging." On \
|
2009-11-21 12:27:21 +01:00
|
|
|
ASPELL "Spell checking." Off \
|
|
|
|
GNUTLS "GNU TLS." Off \
|
|
|
|
NLS "NLS support." On \
|
|
|
|
DOCUMENTATION "Build documentation." Off
|
2009-05-17 16:10:22 +02:00
|
|
|
|
2010-09-30 06:49:02 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-b3b0f2d
|
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
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
2010-01-27 02:04:15 +01:00
|
|
|
CMAKE_BUILD_TYPE= Debug
|
2006-07-03 13:01:36 +02:00
|
|
|
.endif
|
2005-11-16 17:08:16 +01:00
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITHOUT_CHARSET)
|
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
|
|
|
.else
|
|
|
|
PLIST_SUB+= CHARSET=""
|
|
|
|
.endif
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
2010-09-10 06:37:23 +02:00
|
|
|
CMAKE_ARGS+= -DENABLE_NLS=no
|
2006-07-03 13:01:36 +02:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2009-11-21 12:27:21 +01:00
|
|
|
USE_GETTEXT= yes
|
2005-05-07 11:07:00 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2006-07-03 13:01:36 +02:00
|
|
|
.endif
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_ASPELL)
|
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
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
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
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
USE_RUBY= yes
|
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
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_GNUTLS)
|
2009-08-16 20:04:40 +02:00
|
|
|
LIB_DEPENDS+= gnutls.40:${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
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_PERL)
|
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
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
USE_TCL= 83+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
|
|
|
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
|
|
|
|
|
2010-01-27 02:04:15 +01:00
|
|
|
.if defined(WITH_LUA)
|
|
|
|
USE_LUA= 5.0+
|
|
|
|
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
|
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.if defined(WITH_DOCUMENTATION)
|
|
|
|
BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc
|
|
|
|
BUILD_DEPENDS+= source-highlight:${PORTSDIR}/textproc/source-highlight
|
|
|
|
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
|
|
|
|
|
2010-06-05 13:28:15 +02:00
|
|
|
.if defined(WITH_BACKTRACE)
|
|
|
|
LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
|
|
|
.endif
|
|
|
|
|
2010-01-27 02:04:15 +01:00
|
|
|
MAN1= weechat-curses.1
|
|
|
|
|
2010-03-09 08:46:32 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${WRKSRC}/doc/weechat-curses.1 ${WRKSRC}/
|
|
|
|
|
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-06-05 13:28:15 +02:00
|
|
|
.if defined(WITHOUT_BACKTRACE)
|
|
|
|
@${REINPLACE_CMD} -e '/IF.*FreeBSD/,/ENDIF.*FreeBSD/d' ${WRKSRC}/src/core/CMakeLists.txt
|
|
|
|
.endif
|
2010-01-27 02:04:15 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/weechat-curses.1 ${MANPREFIX}/man/man1
|
2008-08-20 02:57:32 +02:00
|
|
|
|
2009-11-21 12:27:21 +01:00
|
|
|
.include <bsd.port.mk>
|