aboutsummaryrefslogtreecommitdiffstats
path: root/irc/irssi/Makefile
blob: 7e89844a2681d01d3e2dc48bf81984664e85e536 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

PORTNAME=   irssi
PORTVERSION=    1.0.0
PORTREVISION?=  0
CATEGORIES?=    irc
MASTER_SITES=   https://github.com/irssi/irssi/releases/download/${PORTVERSION}/

MAINTAINER?=    vanilla@FreeBSD.org
COMMENT?=   Modular IRC client with many features

LICENSE=    GPLv2

LIB_DEPENDS=    libglib-2.0.so:devel/glib20

CONFLICTS=  irssi-devel-[0-9]* zh-irssi-[0-9]*

USES=       gettext-runtime gmake libtool ncurses pkgconfig tar:xz
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= PERL PROXY SOCKS BOT DOCS TRUECOLOR
OPTIONS_DEFAULT=    PERL
OPTIONS_SUB=    yes
SOCKS_DESC= Socks proxy support
SOCKS_CONFIGURE_WITH=   socks
BOT_DESC=   Bot support
BOT_CONFIGURE_WITH= bot
PERL_USES=  perl5
PERL_CONFIGURE_ON=  --with-perl-lib=site
PERL_CONFIGURE_OFF= --with-perl=no
PROXY_CONFIGURE_WITH=   proxy
TRUECOLOR_DESC= Truecolor (24bit) support
TRUECOLOR_CONFIGURE_ENABLE= true-color

.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+=    --disable-ssl
.else
USES+=      ssl
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' -e 's|/etc|${PREFIX}&|' \
        ${WRKSRC}/docs/irssi.1

post-configure:
    @${MV} ${WRKSRC}/irssi.conf ${WRKSRC}/irssi.conf.sample

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/irssi/modules

post-install-PERL-on:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Irssi/Irssi.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Irssi/Irc/Irc.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Irssi/TextUI/TextUI.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Irssi/UI/UI.so

.include <bsd.port.mk>