aboutsummaryrefslogtreecommitdiff
path: root/irc/weechat-devel
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-06-05 11:28:15 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-06-05 11:28:15 +0000
commit8996ea43844c0653912185f870c7264ddb8d15c7 (patch)
treec23fd3dd65178b09e643d18bc32ce7ee4919ed58 /irc/weechat-devel
parentb18508c9708777cea1b077f11c61b896e852ddef (diff)
downloadports-8996ea43844c0653912185f870c7264ddb8d15c7.tar.gz
ports-8996ea43844c0653912185f870c7264ddb8d15c7.zip
Notes
Diffstat (limited to 'irc/weechat-devel')
-rw-r--r--irc/weechat-devel/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/irc/weechat-devel/Makefile b/irc/weechat-devel/Makefile
index 7b44bdc3fbb0..549d6bfb921e 100644
--- a/irc/weechat-devel/Makefile
+++ b/irc/weechat-devel/Makefile
@@ -32,6 +32,7 @@ OPTIONS= RUBY "Ruby scripting support." Off \
TCL "TCL scripting support." Off \
LUA "Lua scripting support." Off \
CHARSET "Charset support." On \
+ BACKTRACE "Backtraces." Off \
DEBUG "Debugging." On \
ASPELL "Spell checking." Off \
GNUTLS "GNU TLS." Off \
@@ -126,6 +127,10 @@ CMAKE_ARGS+= -DDISABLE_DOC=yes
PLIST_SUB+= DOCUMENTATION="@comment "
.endif
+.if defined(WITH_BACKTRACE)
+LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
+.endif
+
MAN1= weechat-curses.1
post-extract:
@@ -134,6 +139,9 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|INSTALL|#INSTALL|' ${WRKSRC}/doc/CMakeLists.txt
+.if defined(WITHOUT_BACKTRACE)
+ @${REINPLACE_CMD} -e '/IF.*FreeBSD/,/ENDIF.*FreeBSD/d' ${WRKSRC}/src/core/CMakeLists.txt
+.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/weechat-curses.1 ${MANPREFIX}/man/man1