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

PORTNAME=   rkward
DISTVERSION=    0.4.9a
PORTREVISION=   6
PORTEPOCH=  3
CATEGORIES= math
MASTER_SITES=   SF/${PORTNAME}/Historical_Releases/0.4.x_and_earlier/0.4.9a%20%28KDE3%29

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

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

BROKEN=     does not package

CONFLICTS=  rkward-kde4-0.5.*

USE_KDELIBS_VER=3
USE_PHP=    yes
WANT_PHP_CLI=   yes
USE_GETTEXT=    yes
USE_AUTOTOOLS=  libtool:22
CONFIGURE_ENV=  PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"  \
        PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --disable-fast-perl
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/plugins/makemakefileam.php   \
        rkward/settings/rksettingsmodulephp.cpp

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/bin/php|${LOCALBASE}/bin/php|'  \
        ${PHP2FIX:S|^|${WRKSRC}/|}
    ${REINPLACE_CMD} -e 's|-lgfortran|-L${FORTRANLIBDIR2} -lgfortran|'  \
        ${WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(NOPORTDOCS)
    ${REINPLACE_CMD} -e 's|rkward po doc|rkward po|'    \
        ${WRKSRC}/Makefile.in
.endif
.if defined(WITHOUT_NLS)
    ${REINPLACE_CMD} -e 's|SUBDIRS = rkward po|SUBDIRS = rkward|'   \
        ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>