aboutsummaryrefslogtreecommitdiff
path: root/irc/quassel/Makefile
blob: 2651884afa0942fb4e9a14e8debb4cdf3485210e (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
59
60
61
62
63
64
65
# New ports collection makefile for:	quassel
# Date created:		2008-08-10
# Whom:			Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	quassel
DISTVERSION=	0.3.0.3
CATEGORIES=	irc
MASTER_SITES=	http://www.quassel-irc.org/pub/

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Qt4 based distributed IRC client

LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo

USE_BZIP2=	yes
USE_CMAKE=	yes
USE_QT_VER=	4
QT_COMPONENTS=	qmake_build moc_build rcc_build uic_build
CMAKE_USE_PTHREAD=	yes

OPTIONS=	MONO "Quassel standalone client" on \
		CORE "Quassel core" on \
		CLIENT "Quassel client" on

CMAKE_ARGS+=	-DWANT_MONO=${QUASSEL_MONO} \
		-DWANT_CORE=${QUASSEL_CORE} \
		-DWANT_QTCLIENT=${QUASSEL_CLIENT}

.include <bsd.port.pre.mk>

.if defined(WITHOUT_MONO) && defined(WITHOUT_CORE) && defined(WITHOUT_CLIENT)
IGNORE=		needs at least one Quassel component. Please, rerun 'make config'
.endif

.if !defined(WITHOUT_MONO)
QT_COMPONENTS+=	dbus gui network script sql xml
QUASSEL_MONO=	ON
PLIST_SUB+=	MONO=""
.else
QUASSEL_MONO=	OFF
PLIST_SUB+=	MONO="@comment "
.endif

.if !defined(WITHOUT_CORE)
QT_COMPONENTS+=	network script sql
QUASSEL_CORE=	ON
PLIST_SUB+=	CORE=""
.else
QUASSEL_CORE=	OFF
PLIST_SUB+=	CORE="@comment "
.endif

.if !defined(WITHOUT_CLIENT)
QT_COMPONENTS+=	dbus gui network xml
QUASSEL_CLIENT=	ON
PLIST_SUB+=	CLIENT=""
.else
QUASSEL_CLIENT=	OFF
PLIST_SUB+=	CLIENT="@comment "
.endif

.include <bsd.port.post.mk>