aboutsummaryrefslogtreecommitdiffstats
path: root/astro/marble/Makefile
blob: 077619f582a00fce8aa712e98fb10becb1a0ff3f (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
# $FreeBSD$

PORTNAME=   marble
PORTVERSION=    ${KDE4_VERSION}
CATEGORIES= astro kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org
COMMENT=    Virtual globe and world atlas for KDE

CONFLICTS=  kdeedu-4.4.[0-4]

USE_KDE4=   kdehier kdelibs kdeprefix automoc4
KDE4_BUILDENV=  yes
USE_QT4=    dbus declarative gui network \
        phonon script sql svg webkit xml \
        qmake_build moc_build rcc_build uic_build
USE_XZ= yes
USE_GMAKE=  yes
MAKE_JOBS_SAFE= yes
CMAKE_ARGS= -DMOBILE:BOOL=FALSE

OPTIONS_DEFINE= GPS
OPTIONS_DEFAULT=    ${OPTIONS_DEFINE}
GPS_DESC=   Support for GPS position provider

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGPS}
LIB_DEPENDS+=   gps.20:${PORTSDIR}/astro/gpsd
PLIST_SUB+= GPS=""
.else
CMAKE_ARGS+=    -DWITH_libgps:BOOL=FALSE
PLIST_SUB+= GPS="@comment "
.endif

pre-configure:
    ${REINPLACE_CMD} -e '/libgps/ s/FIND_PACKAGE/macro_optional_find_package/' \
        ${WRKSRC}/src/plugins/positionprovider/CMakeLists.txt

.include <bsd.port.mk>