mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
0f583d8700
Plasma5 ports At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When working on the ports for KDE Frameworks and Plasma5 it seemed to be more reasonable to create a new kde.mk instead of adding an bsd.kde5.mk. The kde.mk in this review is a stripped down version of the one we are using in the KDE Test repositories plasma5 branch [1] to only contain the parts relevant to the current KDE4 ports in the portstree [2]. Changes to the KDE Ports needed by this: Replace USE_KDE4 by USE_KDE [3] Add USES=kde:4 [4] [1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk [2] The version in the plasma5 branch also handles frameworks/plasma5 and handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt Ports -- I chose to leave this out for now, as the diff is already large enough. [3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we want is already specified as argument to kde:<arg> [4] For KDE Frameworks and Plasma5 ports this would be kde:5 PR: 210667 Approved by: portmgr, mat (mentor), rakuco (mentor) Reviewed by: mat, rakuco Differential Revision: https://reviews.freebsd.org/D6961
85 lines
2.4 KiB
Makefile
85 lines
2.4 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rkward
|
|
PORTVERSION= 0.6.5
|
|
CATEGORIES= math
|
|
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src
|
|
PKGNAMESUFFIX= -kde4
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= IDE/GUI for the R-project
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/R:math/R
|
|
LIB_DEPENDS= libsoprano.so:textproc/soprano
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/R:math/R \
|
|
${KDE_PREFIX}/lib/kde4/katepart.so:editors/kate
|
|
|
|
USES= cmake gettext fortran kde:4 php:cli shared-mime-info
|
|
USE_QT4= corelib dbus gui qmake_build moc_build network phonon rcc_build \
|
|
script svg uic_build webkit xml
|
|
USE_XORG= x11
|
|
USE_KDE= automoc4 kdelibs
|
|
INSTALLS_ICONS= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/HTML/en/rkward
|
|
|
|
OPTIONS_DEFINE= RECDEP DOCS NLS
|
|
RECDEP_DESC= Recommended runtime dependencies
|
|
OPTIONS_DEFAULT=RECDEP
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
NLS= ""
|
|
.else
|
|
NLS= "@comment "
|
|
.endif
|
|
PLIST_SUB+= NLS=${NLS}
|
|
|
|
.if ${PORT_OPTIONS:MRECDEP}
|
|
LR_MOD_DIR= ${LOCALBASE}/lib/R/library
|
|
RUN_DEPENDS+= ${LR_MOD_DIR}/R2HTML/INDEX:textproc/R-cran-R2HTML \
|
|
${LR_MOD_DIR}/XML/INDEX:textproc/R-cran-XML \
|
|
${LR_MOD_DIR}/gdata/INDEX:devel/R-cran-gdata \
|
|
${LR_MOD_DIR}/mvtnorm/INDEX:math/R-cran-mvtnorm \
|
|
${LR_MOD_DIR}/outliers/INDEX:math/R-cran-outliers \
|
|
${LR_MOD_DIR}/tseries/INDEX:finance/R-cran-tseries \
|
|
${LR_MOD_DIR}/car/INDEX:math/R-cran-car
|
|
.endif
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
|
|
${WRKSRC}/rkward/rbackend/rkfrontendtransmitter.cpp
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
${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 ! ${PORT_OPTIONS:MNLS}
|
|
${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)
|
|
|
|
post-install:
|
|
${RM} ${STAGEDIR}${PREFIX}/share/apps/katepart/syntax/r.xml # Conflicts with kate
|
|
|
|
.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 && KDE_LANG=en_US make plugintests)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|