blob: c83d2b1d33b3890ba626548f6e9a28f956b85d64 (
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# New ports collection makefile for: kvirc
# Date created: 05 January 2004
# Whom: Michael Ranner
#
# $FreeBSD$
#
PORTNAME= kvirc
DISTVERSION= 4.0rc3
PORTREVISION= 1
CATEGORIES= irc kde
MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/snapshots/source/ \
http://distfiles.officialunix.com/
PKGNAMESUFFIX= -devel
MAINTAINER= ports@FreeBSD.org
COMMENT= IRC client for QT4 and KDE4
USE_BZIP2= yes
USE_GETTEXT= 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} -DMANDIR=${MANPREFIX}
INSTALLS_ICONS= yes
CONFLICTS= kvirc-3.4.*
# Fixes certain issues when installing/configuring
SVN_REV= 4255
MAN1= kvirc.1
MANLANG= "" de it
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 \
PYTHON "Compile support for python" off \
PERL "Compile support for perl" 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
.if defined(WITH_PYTHON)
USE_PYTHON= yes
CMAKE_ARGS+= -DWITH_PYTHON=yes
PLIST_SUB+= PYTHONMOD=""
.else
CMAKE_ARGS+= -DWITHOUT_PYTHON=yes
PLIST_SUB+= PYTHONMOD="@comment "
.endif
.if defined(WITH_PERL)
USE_PERL5= yes
CMAKE_ARGS+= -DWITH_PERL=yes
PLIST_SUB+= PERLMOD=""
.else
CMAKE_ARGS+= -DWITHOUT_PERL=yes
PLIST_SUB+= PERLMOD="@comment "
.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
.include <bsd.port.post.mk>
|