aboutsummaryrefslogtreecommitdiffstats
path: root/www/rekonq/Makefile
blob: a9f48f4650471d34c6746e8816eed4c9dffcfbb4 (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
# $FreeBSD$

PORTNAME=   rekonq
PORTVERSION=    2.2.1
PORTREVISION=   1
CATEGORIES= www kde
MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION:C,\..*,.0,}/

MAINTAINER= makc@FreeBSD.org
COMMENT=    Lightweight KDE browser based on WebKit

USE_BZIP2=  yes
USES=       cmake:outsource
USE_KDE4=   kdehier kdelibs kdeprefix automoc4
USE_QT4=    script webkit \
        moc_build qmake_build rcc_build uic_build
MAKE_JOBS_SAFE= yes

OPTIONS_DEFINE= OPERA NEPOMUK
OPTIONS_DEFAULT=    NEPOMUK
OPERA_DESC= Support for Opera Sync service
NEPOMUK_DESC=   Bookmarks tagging via Nepomuk

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e \
        's,FIND_PACKAGE(NepomukCore,MACRO_OPTIONAL_FIND_PACKAGE(NepomukCore,' \
        ${WRKSRC}/CMakeLists.txt

.if ${PORT_OPTIONS:MNEPOMUK}
USE_KDE4+=  nepomuk-core
.else
CMAKE_ARGS+=    -DWITH_NepomukCore=off
.endif

.if ${PORT_OPTIONS:MOPERA}
LIB_DEPENDS+=   qca.2:${PORTSDIR}/devel/qca \
        qoauth.1:${PORTSDIR}/net/qoauth
.else
CMAKE_ARGS+=    -DWITH_QCA2=off \
        -DWITH_QtOAuth=off
.endif

.include <bsd.port.mk>