1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/math/rkward-kde4/Makefile
Brendan Fabeny 73fa6e1345 update R to 2.13.1 [1], and adjust dependent ports (this
includes workarounds intended to fix the broken sparc64
build, and fixes to the static libR, which is now in a
separate slave port, math/libR)

PR:		158947 [1]
Submitted by:	wen ([1], independently)
2011-07-28 04:19:58 +00:00

81 lines
1.9 KiB
Makefile

# New ports collection makefile for: RKWard
# Date created: 19 April 2006
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= rkward
PORTVERSION= 0.5.6
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/Current_Stable_Releases
PKGNAMESUFFIX= -kde4
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
LICENSE= GPLv2
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
DOCSDIR= ${PREFIX}/share/doc/HTML/en/rkward
MAN1= rkward.1
.if defined(WITHOUT_NLS)
NLS= "@comment "
.else
NLS= ""
.endif
PLIST_SUB+= NLS=${NLS}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml
.endif
.if defined(WITH_DEBUG)
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
.endif
pre-configure:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/rkward/rkward.sh.template \
${WRKSRC}/rkward/rbackend/rkfrontendtransmitter.cpp
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(doc)|#ADD_SUBDIRECTORY(doc)|' \
${WRKSRC}/CMakeLists.txt
.else
#Fix build with kdelibs>=4.5.0
${REINPLACE_CMD} -e 's,V4.1-Based Variant V1.0,V4.2-Based Variant V1.1,g' \
${WRKSRC}/doc/rkward/index.docbook
.endif
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(po)|#ADD_SUBDIRECTORY(po)|' \
${WRKSRC}/CMakeLists.txt
.endif
@(if [ ! -e ${LOCALBASE}/lib/R/lib/libR.so ] ; then \
${ECHO_MSG} "==> ${PKGNAME} requires math/R to be built WITH_LIBR" ; \
exit 1; fi)
.if defined(MAINTAINER_MODE)
regression-test: install
@${ECHO_MSG} "To pass the tests, some CRAN packages like R2HTML"
@${ECHO_MSG} "must be installed."
(cd ${WRKSRC}/tests && make plugintests)
.endif
.include <bsd.port.mk>