2006-04-29 21:53:16 +02:00
|
|
|
# New ports collection makefile for: RKWard
|
|
|
|
# Date created: 19 April 2006
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rkward
|
2008-01-15 19:10:54 +01:00
|
|
|
PORTVERSION= 0.4.9
|
2007-12-11 22:07:09 +01:00
|
|
|
PORTEPOCH= 2
|
2006-04-29 21:53:16 +02:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= IDE/GUI for the R-project
|
|
|
|
|
|
|
|
LIB_DEPENDS= R.0:${PORTSDIR}/math/R
|
|
|
|
|
|
|
|
USE_KDELIBS_VER=3
|
|
|
|
USE_PHP= yes
|
|
|
|
WANT_PHP_CLI= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2007-05-25 18:25:03 +02:00
|
|
|
CONFIGURE_ARGS= --disable-fast-perl
|
2006-09-17 23:11:44 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2006-04-29 21:53:16 +02:00
|
|
|
|
2007-07-14 06:21:08 +02:00
|
|
|
USE_FORTRAN= yes
|
2007-05-25 18:25:03 +02:00
|
|
|
FORTRANLIBDIR2= `${DIRNAME} \\`gfortran42 -print-libgcc-file-name\\``/../../../
|
2007-01-24 02:23:35 +01:00
|
|
|
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
|
|
|
|
|
2006-04-29 21:53:16 +02:00
|
|
|
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}/|}
|
2007-05-25 18:25:03 +02:00
|
|
|
${REINPLACE_CMD} -e 's|-lgfortran|-L${FORTRANLIBDIR2} -lgfortran|' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
2006-04-29 21:53:16 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${REINPLACE_CMD} -e 's|rkward po doc debian|rkward po debian|' \
|
|
|
|
${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>
|