aboutsummaryrefslogtreecommitdiff
path: root/irc/weechat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'irc/weechat/Makefile')
-rw-r--r--irc/weechat/Makefile82
1 files changed, 34 insertions, 48 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index ebd40bdca273..80026f3a4483 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -2,9 +2,10 @@
# $FreeBSD$
PORTNAME= weechat
-PORTVERSION= 0.4.2
+PORTVERSION= 0.4.3
CATEGORIES= irc
MASTER_SITES= http://weechat.org/files/src/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= jase@FreeBSD.org
COMMENT= A lightweight and user friendly ncurses based IRC client
@@ -14,7 +15,7 @@ LICENSE= GPLv3
CONFLICTS= weechat-devel-0.*
USE_LDCONFIG= yes
-USES= cmake iconv
+USES= cmake iconv ncurses
CMAKE_ARGS+= -DENABLE_GUILE=no
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
@@ -22,18 +23,17 @@ LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl \
libgcrypt.so:${PORTSDIR}/security/libgcrypt
OPTIONS_DEFINE= RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
- GNUTLS NLS DOCUMENTATION COLOR256 ICON MANPAGES
-OPTIONS_DEFAULT=CHARSET MANPAGES
+ GNUTLS NLS ICON MANPAGES DOCS
+OPTIONS_DEFAULT=RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
+ GNUTLS ICON MANPAGES
BACKTRACE_DESC= Provide crash backtraces
CHARSET_DESC= Charset conversion support
-DOCUMENTATION_DESC= Build and install documentation
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
-COLOR256_DESC= Use ncurses port for 256 color support
ICON_DESC= Desktop icon
.include <bsd.port.options.mk>
@@ -97,7 +97,7 @@ PLIST_SUB+= PERL="@comment "
.endif
.if ${PORT_OPTIONS:MTCL}
-USE_TCL= 84+
+USE_TCL= 85+
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
CMAKE_ARGS+= -DBSD_TCL_VER=${TCL_VER} \
-DBSD_TCL_LIBDIR=${LOCALBASE}/lib \
@@ -118,55 +118,48 @@ CMAKE_ARGS+= -DENABLE_LUA=no
PLIST_SUB+= LUA="@comment "
.endif
-.if ${PORT_OPTIONS:MDOCUMENTATION}
-BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc \
- source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
-CMAKE_ARGS+= -DENABLE_DOC=yes
-PLIST_SUB+= DOCUMENTATION=""
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_SUB+= DOCS=""
+.if !defined(MAINTAINER_MODE)
+MASTER_SITES+= ${MASTER_SITE_LOCAL:S/$/:doc/}
+MASTER_SITE_SUBDIR+= jase/weechat/:doc
+DISTFILES+= ${DISTNAME}-docs.txz:doc
+.endif
.else
-CMAKE_ARGS+= -DENABLE_DOC=no
-PLIST_SUB+= DOCUMENTATION="@comment "
+PLIST_SUB+= DOCS="@comment "
.endif
.if ${PORT_OPTIONS:MMANPAGES}
-.if defined(MAINTAINER_MODE)
-BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
- docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl
-.if empty(PORT_OPTIONS:MDOCUMENTATION)
-BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc \
- source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
-.endif
-CMAKE_ARGS+= -DENABLE_MAN=yes -DMANDIR=${MANPREFIX}/man
-.else
+PLIST_SUB+= MANPAGES=""
+.if !defined(MAINTAINER_MODE)
MASTER_SITES+= ${MASTER_SITE_LOCAL:S/$/:man/}
MASTER_SITE_SUBDIR+= jase/weechat/:man
-DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
- ${DISTNAME}-manpages.tar.gz:man
-CMAKE_ARGS+= -DENABLE_MAN=no
+DISTFILES+= ${DISTNAME}-manpages.txz:man
.endif
-PLIST_SUB+= MANPAGES=""
.else
-CMAKE_ARGS+= -DENABLE_MAN=no
-PLIST_SUB+= MANPAGES="@comment"
+PLIST_SUB+= MANPAGES="@comment "
.endif
.if ${PORT_OPTIONS:MBACKTRACE}
LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo
.endif
-.if ${PORT_OPTIONS:MCOLOR256}
-USES+= ncurses:port
-CMAKE_ARGS+= -DNCURSES_INCLUDE_PATH=${LOCALBASE}/include/ncurses
-.else
-USES+= ncurses
-.endif
-
.if ${PORT_OPTIONS:MICON}
PLIST_SUB+= ICON=""
.else
PLIST_SUB+= ICON="@comment "
.endif
+.if defined(MAINTAINER_MODE)
+BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
+ docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl \
+ asciidoc:${PORTSDIR}/textproc/asciidoc \
+ source-highlight>=3.1.5:${PORTSDIR}/textproc/source-highlight
+CMAKE_ARGS+= -DENABLE_MAN=yes -DMANDIR=${MANPREFIX}/man -DENABLE_DOC=yes
+.else
+CMAKE_ARGS+= -DENABLE_MAN=no -DENABLE_DOC=no
+.endif
+
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
@@ -180,25 +173,18 @@ post-patch:
@${REINPLACE_CMD} -e '/^# icon$$/,/^$$/d' ${WRKSRC}/CMakeLists.txt
.endif
-pre-configure:
-.if ${PORT_OPTIONS:MCOLOR256}
- @${ECHO_MSG} ""
- @${ECHO_MSG} "==> You have selected the ncurses 256 color option. Please ensure that"
- @${ECHO_MSG} "==> the devel/ncurses port is built with the EXTCOLORS option enabled."
- @${ECHO_MSG} "==>"
- @${ECHO_MSG} "==> Press Ctrl-C now if you want to re-configure."
- @${ECHO_MSG} ""
- @sleep 5
-.endif
-
post-install:
.if ${PORT_OPTIONS:MMANPAGES} && !defined(MAINTAINER_MODE)
${INSTALL_MAN} ${WRKDIR}/manpages/weechat.1 ${STAGEDIR}${PREFIX}/man/man1
-.for f in de fr it ja
+.for f in de fr it ja pl
@${MKDIR} ${STAGEDIR}${PREFIX}/man/${f}/man1
${INSTALL_MAN} ${WRKDIR}/manpages/${f}/weechat.1 ${STAGEDIR}${PREFIX}/man/${f}/man1
.endfor
.endif
+.if ${PORT_OPTIONS:MDOCS} && !defined(MAINTAINER_MODE)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/docs/* ${STAGEDIR}${DOCSDIR}/
+.endif
${LN} -sf ${PREFIX}/bin/weechat ${STAGEDIR}${PREFIX}/bin/weechat-curses
.include <bsd.port.mk>