78 lines
1.9 KiB
Makefile
78 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.86 2019/08/30 07:24:49 kn Exp $
|
|
|
|
MULTI_PACKAGES = -main -otr
|
|
|
|
COMMENT-main = modular IRC client with many features
|
|
COMMENT-otr = OTR (off-the-record) plugin for irssi
|
|
|
|
V = 1.2.2
|
|
DISTNAME = irssi-$V
|
|
PKGSPEC = irssi-=$V
|
|
PKGNAME-main = irssi-$V
|
|
|
|
# -otr module doesn't vary between FLAVORs; override default FLAVOR suffix
|
|
FULLPKGNAME-otr = irssi-otr-$V
|
|
FULLPKGPATH-otr = net/irssi,-otr
|
|
|
|
CATEGORIES = net
|
|
|
|
HOMEPAGE = https://www.irssi.org/
|
|
|
|
MAINTAINER = Klemens Nanni <kn@openbsd.org>
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c crypto curses glib-2.0 gmodule-2.0 \
|
|
iconv intl m pcre perl pthread ssl
|
|
|
|
MASTER_SITES = https://github.com/irssi/irssi/releases/download/${V}/
|
|
|
|
FLAVORS = socks
|
|
FLAVOR ?=
|
|
FLAVOR_STRING = ${FLAVOR_EXT:S/-/,/g}
|
|
SUBST_VARS = FLAVOR_STRING
|
|
|
|
LIB_DEPENDS = devel/glib2>=2.28.0
|
|
|
|
RUN_DEPENDS-otr = net/irssi,-main
|
|
LIB_DEPENDS-otr = security/libgcrypt>=1.2.0 \
|
|
security/libotr>=4.1.0
|
|
WANTLIB-otr = gcrypt gpg-error iconv intl otr
|
|
|
|
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
|
|
SEPARATE_BUILD = Yes
|
|
|
|
.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"
|
|
|
|
# tests write to it
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/docs/irssi.1
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKBUILD}/irssi-config ${PREFIX}/include/irssi/
|
|
|
|
.include <bsd.port.mk>
|