diff options
author | miwi <miwi@FreeBSD.org> | 2009-05-17 22:10:22 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-05-17 22:10:22 +0800 |
commit | c33e99036e60ba8f819d91fdacef495178c8942a (patch) | |
tree | 3e08b11d2edde038d7300863d33200b04c448d04 /irc/weechat | |
parent | 1345ca6d64717c2e6c9cd48ed5b7b7736015f9b3 (diff) | |
download | freebsd-ports-graphics-c33e99036e60ba8f819d91fdacef495178c8942a.tar.gz freebsd-ports-graphics-c33e99036e60ba8f819d91fdacef495178c8942a.tar.zst freebsd-ports-graphics-c33e99036e60ba8f819d91fdacef495178c8942a.zip |
- Convert to OPTIONS
PR: 134104
Submitted by: Daniel Bretoi <daniel@netwalk.org>
Diffstat (limited to 'irc/weechat')
-rw-r--r-- | irc/weechat/Makefile | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile index 4a7c729a70d..31f32db8159 100644 --- a/irc/weechat/Makefile +++ b/irc/weechat/Makefile @@ -20,31 +20,44 @@ USE_AUTOTOOLS= autoconf:262 USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-lua +USE_PYTHON= yes +USE_RUBY= yes +USE_GETTEXT= yes MAN1= weechat-curses.1 -.if defined(WITH_DEBUG) +OPTIONS= RUBY "Ruby scripting support." off \ + PYTHON "Python scripting support." off \ + PERL "Perl scripting support." off \ + CHARSET "Charset support." on \ + DEBUG "Debugging." off \ + ASPELL "Spell checking." off \ + GNUTLS "GNU TLS." off \ + NLS "NLS support" on + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_DEBUG) CONFIGURE_ARGS+= --with-debug=2 .else CONFIGURE_ARGS+= --with-debug=0 .endif -.if defined(WITHOUT_CHARSET) +.if !defined(WITHOUT_CHARSET) CONFIGURE_ARGS+= --disable-charset PLIST_SUBS+= CHARSET="@comment" .else PLIST_SUB+= CHARSET="" .endif -.if defined(WITHOUT_NLS) +.if !defined(WITHOUT_NLS) CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .else -USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif -.if defined(WITH_ASPELL) +.if !defined(WITHOUT_ASPELL) CONFIGURE_ARGS+= --enable-aspell BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell PLIST_SUB+= ASPELL="" @@ -53,32 +66,30 @@ CONFIGURE_ARGS+= --disable-aspell PLIST_SUB+= ASPELL="@comment " .endif -.if defined(WITH_PYTHON) +.if !defined(WITHOUT_PYTHON) CONFIGURE_ARGS+= --enable-python -USE_PYTHON= yes PLIST_SUB+= PYTHON="" .else CONFIGURE_ARGS+= --disable-python PLIST_SUB+= PYTHON="@comment " .endif -.if defined(WITH_RUBY) +.if !defined(WITHOUT_RUBY) CONFIGURE_ARGS+= --enable-ruby -USE_RUBY= yes PLIST_SUB+= RUBY="" .else CONFIGURE_ARGS+= --disable-ruby PLIST_SUB+= RUBY="@comment " .endif -.if defined(WITH_GNUTLS) +.if !defined(WITHOUT_GNUTLS) CONFIGURE_ARGS+= --enable-gnutls LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls .else -CONFIGURE_ARGS+= --disable-gnu-tls +CONFIGURE_ARGS+= --disable-gnutls .endif -.if defined(WITH_PERL) +.if !defined(WITHOUT_PERL) CONFIGURE_ARGS+= --enable-perl USE_PERL5= yes PLIST_SUB+= PERL="" @@ -90,4 +101,4 @@ PLIST_SUB+= PERL="@comment " post-patch: @${REINPLACE_CMD} -e 's|2.61|2.62|g' ${WRKSRC}/aclocal.m4 -.include <bsd.port.mk> +.include <bsd.port.post.mk> |