freebsd-ports/irc/weechat/Makefile
Andrej Zverev 60fcecc73b - Update to version 0.1.6
- Implement WITH_PYTHON knob

Submitted by:	Rudolf Polzer <freebsd-dr@durchnull.de> (via email)
2005-11-15 15:40:23 +00:00

60 lines
1.6 KiB
Makefile

# New ports collection makefile for: weechat
# Date created: 2003-03-07
# Whom: clement
#
# $FreeBSD$
#
PORTNAME= weechat
PORTVERSION= 0.1.6
CATEGORIES= irc
MASTER_SITES= http://flashcode.free.fr/flashtux/weechat/ \
http://weechat.flashtux.org/download/
MAINTAINER= az@FreeBSD.org
COMMENT= A lightweight and user friendly ncurse based IRC client
USE_BZIP2= yes
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= weechat-curses.1
INFO= weechat_doc_en weechat_doc_es weechat_doc_fr weechat_doc_pt
PLIST_FILES= bin/weechat-curses
PLIST_DIRS= lib/weechat/plugins lib/weechat
.for lang in cs fr es
PLIST_FILES+= %%NLS%%share/locale/${lang}/LC_MESSAGES/weechat.mo
.endfor
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
#Tempory disable due problems with perl < 5.6 (4.x)
#.if defined(WITH_PERL)
#CONFIGURE_ARGS+=--enable-perl
#USE_PERL= yes
#PLIST_FILES+= lib/weechat/plugins/libperl.a lib/weechat/plugins/libperl.la \
# lib/weechat/plugins/libperl.so lib/weechat/plugins/libperl.so.0
#.endif
.if defined(WITH_PYTHON)
CONFIGURE_ARGS+=--enable-python
USE_PYTHON= yes
PLIST_FILES+= lib/weechat/plugins/libpython.a lib/weechat/plugins/libpython.la \
lib/weechat/plugins/libpython.so lib/weechat/plugins/libpython.so.0
.endif
pre-configure:
@${CP} ${LOCALBASE}/share/gettext/config.rpath ${WRKSRC}
.include <bsd.port.mk>