aboutsummaryrefslogtreecommitdiffstats
path: root/irc/kvirc/Makefile
blob: 8228c25b62bc1fedc55514e45ca2f60b76f787d0 (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
# Created by: Michael Ranner
# $FreeBSD$

PORTNAME=   kvirc
PORTVERSION=    4.2.0
PORTREVISION=   6
CATEGORIES= irc kde
MASTER_SITES=   ftp://ftp.kvirc.de/pub/kvirc/%SUBDIR%/ \
        http://kvirc.gmake.de/pub/kvirc/%SUBDIR%/ \
        http://kvirc-ftp.visualscripts.com/%SUBDIR%/ \
        ftp://dedimarbo.ath.cx/pub/kvirc/%SUBDIR%/ \
        ftp://kvirc.eban-meban.com/%SUBDIR%/ \
        http://kvirc.tradebit.com/%SUBDIR%/ \
        http://kvirc.imsam.info/%SUBDIR%/ \
        http://kvirc.bcoos.net/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}/source

MAINTAINER= ports@FreeBSD.org
COMMENT?=   IRC client for KDE 4

USE_PERL5=  build
USE_QT4=    moc_build qmake_build rcc_build uic_build \
        dbus gui network sql xml
USES=       cmake cpe gettext perl5 ssl tar:bzip2
CMAKE_ARGS= -DWANT_ESD=no -DWANT_DOXYGEN=no \
        -DMANDIR=${MANPREFIX}
USE_LDCONFIG=   yes

OPTIONS_DEFINE= AUDIOFILE GSM PERL PYTHON DEBUG
OPTIONS_SUB=    yes

AUDIOFILE_DESC=     Support for various audio formats
AUDIOFILE_LIB_DEPENDS=  libaudiofile.so:audio/libaudiofile
AUDIOFILE_CMAKE_OFF=    -DWITHOUT_AUDIOFILE=yes

GSM_DESC=       u-law to gsm audio converter support
GSM_LIB_DEPENDS=    libgsm.so:audio/gsm
GSM_CMAKE_OFF=      -DWANT_GSM=no

PERL_DESC=  Perl scripting support
PERL_USE=   PERL5=run
PERL_CMAKE_OFF= -DWANT_PERL=no

PYTHON_DESC=        Python scripting support
PYTHON_USES=        python
PYTHON_CMAKE_OFF=   -DWANT_PYTHON=no

DEBUG_CMAKE_ON= -DWITH_DEBUG=yes -DVERBOSE=yes

.if defined(PKGNAMESUFFIX)
CONFLICTS_INSTALL=  kvirc-4.*

CMAKE_ARGS+=    -DWITHOUT_KDE4=yes
PLIST_SUB+= QT="" KDE="@comment "

OPTIONS_DEFINE+=    PHONON WEBKIT

PHONON_DESC=    Build with Phonon support
PHONON_USE= QT4=phonon
PHONON_CMAKE_OFF=   -DWITHOUT_PHONON=yes

WEBKIT_DESC=    Build with QtWebkit support
WEBKIT_USE= QT4=webkit
WEBKIT_CMAKE_OFF=   -DWITHOUT_QTWEBKIT=yes
.else #defined(PKGNAMESUFFIX)
CONFLICTS_INSTALL=  kvirc-qt4-4.*

USES+=      kde:4 shared-mime-info
USE_KDE=    kdelibs automoc4
PLIST_SUB+= QT="@comment " KDE=""
.endif #defined(PKGNAMESUFFIX)

PLIST_SUB+= VER="${PORTVERSION:R}"

pre-fetch-PERL-on:
    @${ECHO_CMD} "====================================================="
    @${ECHO_CMD} "    Perl scripting requires perl with multiplicity"
    @${ECHO_CMD} "    support (enabled in ports by default)."
    @${ECHO_CMD} "====================================================="

post-patch:
    ${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
        ${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>