aa89760550
- update math/R to 2.15.0, and adjust dependent ports - minor changes to bsd.cran.mk [2]: rename MASTER_CRAN_SITES to MASTER_SITE_CRAN, as in bsd.sites.mk; make the install target more flexible and allow CRAN ports to override it; add a regression-test target; set USE_FORTRAN to match math/R; remove some of the redundant checks of USE_R_MOD; honor NOPORTDATA and NOPORTDOCS Reviewed by: thierry, tota, wen Approved by: D. Rue (maintainer) [1], wen [2]
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
# New ports collection makefile for: RKWard
|
|
# Date created: 19 April 2006
|
|
# Whom: thierry@pompo.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rkward
|
|
DISTVERSION= 0.4.9a
|
|
PORTREVISION= 16
|
|
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
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
|
|
|
|
CONFLICTS= rkward-kde4-0.5.*
|
|
|
|
USE_KDELIBS_VER=3
|
|
USE_PHP= yes
|
|
WANT_PHP_CLI= yes
|
|
USE_GETTEXT= yes
|
|
USE_AUTOTOOLS= libtool
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
CONFIGURE_ARGS= --disable-fast-perl
|
|
|
|
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
|
|
@(if [ ! -e ${LOCALBASE}/lib/R/lib/libR.so ] ; then \
|
|
${ECHO_MSG} "==> ${PKGNAME} requires math/R to be built WITH_LIBR" ; \
|
|
exit 1; fi)
|
|
|
|
.include <bsd.port.mk>
|