summaryrefslogtreecommitdiffstats
path: root/net-im/simicq/Makefile
blob: e9209d5a3e641c6c787404d68cf48094474913eb (plain)
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
59
60
61
62
63
64
# New Ports Collection Makefile for:	sim-icq
# Date created:				4 Nov 2002
# Whom:					Josef El-Rayes <j.el-rayes@daemon.li>
#
# $FreeBSD$

PORTNAME=	simicq
PORTVERSION=	0.9.2
CATEGORIES=	net kde
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME:S/mi/m-i/}
DISTNAME=	${PORTNAME:S/icq//}-${PORTVERSION}

MAINTAINER=	brueffer@phoenix-systems.de
COMMENT=	Plugin-based instant messenger

LIB_DEPENDS=	sablot.70:${PORTSDIR}/textproc/sablotron

USE_GMAKE=	yes
USE_QT_VER=	3
USE_PERL5_BUILD=	yes
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes
INSTALLS_SHLIB=	yes

CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

.if !defined(WITHOUT_SSL)
USE_OPENSSL=	yes
PLIST_SUB+=	SSL=""
.else
CONFIGURE_ARGS+=--disable-openssl
PLIST_SUB+=	SSL="@comment "
.endif

.if defined(WITHOUT_KDE)
CONFIGURE_ARGS+=--disable-kde --enable-mt
LIB_DEPENDS+=	aspell.15:${PORTSDIR}/textproc/aspell
PLIST_SUB+=	KDE="@comment " \
		SPELL=""
.else
USE_KDELIBS_VER=3
PLIST_SUB+=	KDE="" \
		SPELL="@comment "
.endif

pre-everything::
.if !defined(WITHOUT_SSL)
	@${ECHO_MSG} "You can disable SSL support by defining WITHOUT_SSL."
.endif
.if !defined(WITHOUT_KDE)
	@${ECHO_MSG} "You can disable KDE support by defining WITHOUT_KDE."
.endif

post-extract:
.for i in _core filter forward icq remote
	@${TOUCH} ${WRKSRC}/plugins/${i}/Makefile.in
.endfor

post-patch:
	@${REINPLACE_CMD} -e 's/-O2//g; s/-lpthread/${PTHREAD_LIBS}/g' \
		${CONFIGURE_WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud