mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
93d87c6f3a
approved by: infrastructure blanket
49 lines
1.1 KiB
Makefile
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>
|