aboutsummaryrefslogtreecommitdiffstats
path: root/math/rkward-kde4/Makefile
blob: bd24d6ea8eabf6b2e944461433ca205e27b7dde3 (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
# New ports collection makefile for:    RKWard
# Date created:        19 April 2006
# Whom:                thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=   rkward
PORTVERSION=    0.5.2
CATEGORIES= math
MASTER_SITES=   SF/${PORTNAME}/Current_Stable_Releases
PKGNAMESUFFIX=  -kde4

MAINTAINER= thierry@FreeBSD.org
COMMENT=    IDE/GUI for the R-project

LIB_DEPENDS=    R.0:${PORTSDIR}/math/R
RUN_DEPENDS=    seq2:${PORTSDIR}/misc/seq2

CONFLICTS=  rkward-0.4.*

USE_QT_VER= 4
QT_COMPONENTS=  qmake_build moc_build rcc_build uic_build phonon

USE_KDE4=   kdehier kdeprefix automoc4 kdelibs
USE_PHP=    yes
WANT_PHP_CLI=   yes
USE_GETTEXT=    yes
USE_CMAKE=  yes
INSTALLS_ICONS= yes

#USE_FORTRAN=   yes
#FORTRANLIBDIR2=    `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../

DOCSDIR=    ${PREFIX}/share/doc/HTML/en/rkward

.if defined(WITHOUT_NLS)
NLS=        "@comment "
.else
NLS=        ""
.endif
PLIST_SUB+= NLS=${NLS}

PHP2FIX=    rkward/settings/rksettingsmodulephp.cpp

.if defined(WITH_DEBUG)
CMAKE_ARGS+=    -DCMAKE_BUILD_TYPE=Debug
.endif

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/bin/php|${LOCALBASE}/bin/php|'  \
        ${PHP2FIX:S|^|${WRKSRC}/|}
    ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|'   \
        ${WRKSRC}/rkward/rkward.sh.template
.if defined(NOPORTDOCS)
    ${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(doc)|#ADD_SUBDIRECTORY(doc)|'   \
        ${WRKSRC}/CMakeLists.txt
.endif
.if defined(WITHOUT_NLS)
    ${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(po)|#ADD_SUBDIRECTORY(po)|' \
        ${WRKSRC}/CMakeLists.txt
.endif

.if defined(MAINTAINER_MODE)
regression-test:    install
    @${ECHO_MSG} "To pass the tests, somme CRAN packages like R2HTML"
    @${ECHO_MSG} "must be installed."
    (cd ${WRKSRC}/tests && make plugintests)
.endif

.include <bsd.port.mk>