kn f368c8b933 Fix build with libutf8proc installed
Unicode 9.0 changed certain character widths, libutf8proc is used by
upstream to cope with this[0].

Our www/netsurf/libutf8proc is not same and builds fail if it's picked up.

Noticed the hard way by ajacoutot, thanks!

0: https://github.com/irssi/irssi/issues/720
2019-02-18 18:35:57 +00:00

61 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.79 2019/02/18 18:35:57 kn Exp $
COMMENT = modular IRC client with many features (ipv6,socks,proxy)
V = 1.2.0
DISTNAME = irssi-$V
PKGSPEC = irssi-=$V
CATEGORIES = net
HOMEPAGE = https://www.irssi.org/
MAINTAINER = Klemens Nanni <kn@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c crypto curses gcrypt glib-2.0 gmodule-2.0 gpg-error \
iconv intl m otr pcre perl pthread ssl
MASTER_SITES = https://github.com/irssi/irssi/releases/download/${V}/
FLAVORS = socks
FLAVOR ?=
LIB_DEPENDS = devel/glib2>=2.28.0 \
security/libgcrypt>=1.2.0 \
security/libotr>=4.1.0
LIBTOOL_FLAGS += --tag=disable-static
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-otr=module \
--with-perl-lib=${PREFIX}/libdata/perl5/site_perl \
--with-perl=yes \
--with-pic \
--with-proxy
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_lib_utf8proc_utf8proc_version=no
.if ${FLAVOR:Msocks}
CONFIGURE_ARGS += --with-socks
LIB_DEPENDS += security/dante
WANTLIB += socks
.endif
MAKE_FLAGS = scriptdir="${SYSCONFDIR}/irssi/scripts" \
themedir="${SYSCONFDIR}/irssi/themes"
FAKE_FLAGS = confdir="${PREFIX}/share/examples/irssi" \
scriptdir="${PREFIX}/share/examples/irssi/scripts" \
themedir="${PREFIX}/share/examples/irssi/themes"
pre-configure:
${SUBST_CMD} ${WRKSRC}/docs/irssi.1
post-install:
${INSTALL_DATA} ${WRKSRC}/irssi-config ${PREFIX}/include/irssi/
.include <bsd.port.mk>