aboutsummaryrefslogtreecommitdiffstats
path: root/irc/weechat/Makefile
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-01-27 09:04:15 +0800
committermiwi <miwi@FreeBSD.org>2010-01-27 09:04:15 +0800
commitf3750a6f6d8b4e5a77550648f351adaf289135ce (patch)
treebb34e7e01de7dcc6f828914f405cfab443397a4f /irc/weechat/Makefile
parent1af3f331d81a9262f0649bb75c15ff63be6c4fdc (diff)
downloadfreebsd-ports-gnome-f3750a6f6d8b4e5a77550648f351adaf289135ce.tar.gz
freebsd-ports-gnome-f3750a6f6d8b4e5a77550648f351adaf289135ce.tar.zst
freebsd-ports-gnome-f3750a6f6d8b4e5a77550648f351adaf289135ce.zip
- Update to 0.3.1
- Change port to use cmake instead of make/configure/autotools, - ChangeLog : http://www.weechat.org/files/changelog/ChangeLog-0.3.1.html PR: 143128 Submitted by: Jase Thew <freebsd@beardz.net>
Diffstat (limited to 'irc/weechat/Makefile')
-rw-r--r--irc/weechat/Makefile73
1 files changed, 36 insertions, 37 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index b9ea52d9fcd5..a1b214217d2b 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,35 +1,30 @@
-# New ports collection makefile for: weechat
-# Date created: 2003-03-07
-# Whom: clement
+# New ports collection makefile for: weechat
+# Date created: 2003-03-07
+# Whom: clement
#
# $FreeBSD$
#
PORTNAME= weechat
-PORTVERSION= 0.3.0
-PORTREVISION= 1
+PORTVERSION= 0.3.1
CATEGORIES= irc
MASTER_SITES= http://weechat.org/files/src/
MAINTAINER= miwi@FreeBSD.org
COMMENT= A lightweight and user friendly ncurse based IRC client
-USE_BZIP2= yes
USE_ICONV= yes
-USE_AUTOTOOLS= autoconf:262
USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-lua
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include"\
- LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib"
-WANT_GNOME= yes
-USE_GNOME= gnomehack
+USE_CMAKE= yes
+CMAKE_USE_PTHREAD= yes
+CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
WANT_PERL= yes
OPTIONS= RUBY "Ruby scripting support." Off \
PYTHON "Python scripting support." Off \
PERL "Perl scripting support." Off \
TCL "TCL scripting support." Off \
+ LUA "Lua scripting support." Off \
CHARSET "Charset support." On \
DEBUG "Debugging." Off \
ASPELL "Spell checking." Off \
@@ -40,95 +35,99 @@ OPTIONS= RUBY "Ruby scripting support." Off \
.include <bsd.port.options.mk>
.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+= --with-debug=2
-.else
-CONFIGURE_ARGS+= --with-debug=0
+CMAKE_BUILD_TYPE= Debug
.endif
.if defined(WITHOUT_CHARSET)
-CONFIGURE_ARGS+= --disable-charset
+CMAKE_ARGS+= -DDISABLE_CHARSET=yes
PLIST_SUB+= CHARSET="@comment "
.else
-CONFIGURE_ARGS+= --enable-charset
PLIST_SUB+= CHARSET=""
.endif
.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
+CMAKE_ARGS+= -DDISABLE_NLS=yes
PLIST_SUB+= NLS="@comment "
.else
-CONFIGURE_ARGS+= --enable-nls
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if defined(WITH_ASPELL)
-CONFIGURE_ARGS+= --enable-aspell
BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
PLIST_SUB+= ASPELL=""
.else
-CONFIGURE_ARGS+= --disable-aspell
+CMAKE_ARGS+= -DDISABLE_ASPELL=yes
PLIST_SUB+= ASPELL="@comment "
.endif
.if defined(WITH_PYTHON)
-CONFIGURE_ARGS+= --enable-python
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
.else
-CONFIGURE_ARGS+= --disable-python
+CMAKE_ARGS+= -DDISABLE_PYTHON=yes
PLIST_SUB+= PYTHON="@comment "
.endif
.if defined(WITH_RUBY)
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-CONFIGURE_ARGS+= --enable-ruby
USE_RUBY= yes
PLIST_SUB+= RUBY=""
.else
-CONFIGURE_ARGS+= --disable-ruby
+CMAKE_ARGS+= -DDISABLE_RUBY=yes
PLIST_SUB+= RUBY="@comment "
.endif
.if defined(WITH_GNUTLS)
-CONFIGURE_ARGS+= --enable-gnutls
LIB_DEPENDS+= gnutls.40:${PORTSDIR}/security/gnutls
.else
-CONFIGURE_ARGS+= --disable-gnutls
+CMAKE_ARGS+= -DDISABLE_GNUTLS=yes
.endif
.if defined(WITH_PERL)
-CONFIGURE_ARGS+= --enable-perl
USE_PERL5= yes
PLIST_SUB+= PERL=""
.else
-CONFIGURE_ARGS+= --disable-perl
+CMAKE_ARGS+= -DDISABLE_PERL=yes
PLIST_SUB+= PERL="@comment "
.endif
.if defined(WITH_TCL)
USE_TCL= 83+
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
-CONFIGURE_ARGS+= --enable-tcl
-CONFIGURE_ARGS+= --with-tclconfig=${LOCALBASE}/lib/tcl${TCL_VER}
PLIST_SUB+= TCL=""
.else
-CONFIGURE_ARGS+= --disable-tcl
+CMAKE_ARGS+= -DDISABLE_TCL=yes
PLIST_SUB+= TCL="@comment "
.endif
+.if defined(WITH_LUA)
+USE_LUA= 5.0+
+PLIST_SUB+= LUA=""
+.else
+CMAKE_ARGS+= -DDISABLE_LUA=yes
+PLIST_SUB+= LUA="@comment "
+.endif
+
.if defined(WITH_DOCUMENTATION)
-CONFIGURE_ARGS+= --enable-doc
BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc
BUILD_DEPENDS+= source-highlight:${PORTSDIR}/textproc/source-highlight
PLIST_SUB+= DOCUMENTATION=""
-MAN1= weechat-curses.1
.else
-CONFIGURE_ARGS+= --disable-doc
+CMAKE_ARGS+= -DDISABLE_DOC=yes
PLIST_SUB+= DOCUMENTATION="@comment "
.endif
+MAN1= weechat-curses.1
+
+post-extract:
+ @${CP} ${WRKSRC}/doc/weechat-curses.1 ${WRKSRC}/
+
post-patch:
- @${REINPLACE_CMD} -e 's|2.61|2.62|g' ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e 's|INSTALL|#INSTALL|' ${WRKSRC}/doc/CMakeLists.txt
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/doc/weechat-curses.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>