aboutsummaryrefslogtreecommitdiff
path: root/irc/kvirc-devel/Makefile
blob: 01007f1bd84a4e07253e57a49bddc638c4ef2b7d (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# New ports collection makefile for:   kvirc
# Date created:        05 January 2004
# Whom:                Michael Ranner
#
# $FreeBSD$
#

PORTNAME=	kvirc
DISTVERSION=	4.0rc1
CATEGORIES=	irc kde
MASTER_SITES=	ftp://ftp.kvirc.de/pub/kvirc/snapshots/source/ \
		http://distfiles.officialunix.com/
PKGNAMESUFFIX=	-devel

MAINTAINER=	chris@officialunix.com
COMMENT=	IRC client for QT4 and KDE4

USE_BZIP2=	yes
USE_GETTEXT=	yes
USE_PERL5=	yes
USE_QT_VER=	4
QT_COMPONENTS=	moc_build qmake_build rcc_build uic_build \
		dbus webkit gui network sql xml
USE_CMAKE=	yes
CMAKE_ARGS=	-DWITHOUT_ESD=yes -DWITHOUT_DOXYGEN=yes \
		-DMANUAL_REVISION=${SVN_REV}
INSTALLS_ICONS=	yes
CONFLICTS=	kvirc-3.4.*
SVN_REV=	3459

MAN1=	kvirc.1
MANLANG=	"" de.ISO8859-1 de.UTF-8 it it.ISO8859-1 it.UTF-8

OPTIONS=	AUDIOFILE "Compile with libaudiofile dependency" on \
			DEBUG "Compile with debug support" off \
			GSM "Compile with gsm support" off \
			KDE4 "Compile with KDE4 support" off \
			PHONON "Compile with phonon support" on

.include <bsd.port.options.mk>

.if defined(WITH_KDE4)
USE_KDE4=	kdelibs kdeprefix
CMAKE_ARGS+=	-DWITH_KDE4=yes
.else
CMAKE_ARGS+=	-DWITHOUT_KDE4=yes
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION}<700042
CMAKE_USE_PTHREAD=	yes
.endif

.if defined(WITH_AUDIOFILE)
LIB_DEPENDS+=	audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CMAKE_ARGS+=	-DWITHOUT_AUDIOFILE=yes
.endif

.if defined(WITH_DEBUG)
CMAKE_ARGS+=	-DDEBUG=yes -DVERBOSE=yes
.endif

.if defined(WITH_GSM)
LIB_DEPENDS+=	gsm.1:${PORTSDIR}/audio/gsm
.else
CMAKE_ARGS+=	-DWITHOUT_GSM=yes
.endif

.if defined(WITH_PHONON)
QT_COMPONENTS+=	phonon
CMAKE_ARGS+=	-DKDE4_LIB_INSTALL_DIR=${KDE4_PREFIX}/lib \
			-DKDE4_INCLUDE_INSTALL_DIR=${KDE4_PREFIX}/include
.else
CMAKE_ARGS+=	-DWITHOUT_PHONON=yes
.endif

post-configure:
	@${MV} ${WRKSRC}/data/protocols/irc.protocol ${WRKSRC}/data/protocols/kvirc.protocol
	@${MV} ${WRKSRC}/data/protocols/irc6.protocol ${WRKSRC}/data/protocols/kvirc6.protocol

# Todo
# Add NOPORTDOCS part (include support for doxygen)
# If user requires docs
# Add in special %%VER%% to pkg-plist
# Add in DATADIR instead of share/..

.include <bsd.port.post.mk>