1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/irc/ircII/Makefile
John Marino 93d87c6f3a irc/ircII: document ncurses requirement (USES+=ncurses)
approved by:	infrastructure blanket
2016-02-05 09:28:58 +00:00

49 lines
1.1 KiB
Makefile

# Created by: torstenb
# $FreeBSD$
PORTNAME= ircii
PORTVERSION= 20151120
CATEGORIES= irc ipv6
MASTER_SITES= http://ircii.warped.com/
MAINTAINER= adamw@FreeBSD.org
COMMENT= Small and high extensible IRC client
LICENSE= BSD3CLAUSE
GNU_CONFIGURE= yes
DATADIR= ${PREFIX}/share/irc
USES= iconv ncurses tar:bzip2
OPTIONS_DEFINE= IRCBUG EMACS_KEYS OPENSSL
OPTIONS_DEFAULT=OPENSSL
OPTIONS_SUB= yes
IRCBUG_DESC= Install ircII bug-reporting script
EMACS_KEYS_DESC=Use emacs meta keys
EMACS_KEYS_CONFIGURE_WITH= emacs-meta-keys
OPENSSL_USE= OPENSSL=yes
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MOPENSSL}
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
.else
CONFIGURE_ARGS+= --without-openssl
.endif
CPPFLAGS+= -I${ICONV_PREFIX}/include
LDFLAGS+= -L${ICONV_PREFIX}/lib
post-patch:
@${REINPLACE_CMD} -e '/^mandir =/s/@mandir@/$${DESTDIR}&/' \
-e '/^LDFLAGS =/s/$$/ -s ${ICONV_LIB}/' \
-e '/^INCLUDES =/s|$$| -I${ICONV_PREFIX}/include -DHAVE_ICONV_OPEN|' \
${WRKSRC}/Makefile.in
post-install:
${MV} -f ${STAGEDIR}${PREFIX}/bin/irc-${PORTVERSION} ${STAGEDIR}${PREFIX}/bin/irc
.include <bsd.port.post.mk>