aboutsummaryrefslogtreecommitdiffstats
path: root/irc/irssi-otr/Makefile
blob: 4b5449b19aca830abcb43740683877d9ceac187b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Ashish Shukla <wahjava@gmail.com>
# $FreeBSD$

PORTNAME=   irssi-otr
PORTVERSION=    1.0.2
PORTREVISION=   1
DISTVERSIONPREFIX=  v
CATEGORIES= irc

MAINTAINER= ashish@FreeBSD.org
COMMENT=    Plugin for irssi for Off-the-Record (OTR) messaging

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${LOCALBASE}/include/irssi/src/common.h:irc/irssi \
        ${LOCALBASE}/bin/libgcrypt-config:security/libgcrypt
LIB_DEPENDS=    libotr.so:security/libotr \
        libgcrypt.so:security/libgcrypt
RUN_DEPENDS=    irssi:irc/irssi

USES=       autoreconf libtool pkgconfig
USE_LDCONFIG=   yes
USE_GNOME=  glib20
USE_GITHUB= yes
GH_ACCOUNT= cryptodotis

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-libotr-inc-prefix=${LOCALBASE}/include --with-irssi-module-dir=${LOCALBASE}/lib/irssi/modules
INSTALL_TARGET= install-strip

PLIST_FILES=    lib/irssi/modules/libotr.so \
        share/irssi/help/otr

post-patch:
    ${GREP} -Rl '$$(oldincludedir)' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} 's,$$(oldincludedir),${LOCALBASE}/include,g'

.include <bsd.port.mk>