aboutsummaryrefslogtreecommitdiffstats
path: root/math/rkward-kde4
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-04 22:26:02 +0800
committerbapt <bapt@FreeBSD.org>2013-06-04 22:26:02 +0800
commitf36bef79ce494b4a8a2803d74b6e8915c46bf013 (patch)
tree73c7c38d5c309b9ef66fa2f1996d32f45359d3a2 /math/rkward-kde4
parent2f969602cdd81b84a7db02fd82faaba4fadd9219 (diff)
downloadfreebsd-ports-gnome-f36bef79ce494b4a8a2803d74b6e8915c46bf013.tar.gz
freebsd-ports-gnome-f36bef79ce494b4a8a2803d74b6e8915c46bf013.tar.zst
freebsd-ports-gnome-f36bef79ce494b4a8a2803d74b6e8915c46bf013.zip
WITHOUT_NLS -> PORT_OPTIONS:MNLS
NOPORTDOCS -> PORT_OPTIONS:MDOCS
Diffstat (limited to 'math/rkward-kde4')
-rw-r--r--math/rkward-kde4/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/math/rkward-kde4/Makefile b/math/rkward-kde4/Makefile
index cefdb91b555e..8b0100bf652a 100644
--- a/math/rkward-kde4/Makefile
+++ b/math/rkward-kde4/Makefile
@@ -32,13 +32,6 @@ CFLAGS+= -I${LOCALBASE}/include
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(WITH_DEBUG)
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
.endif
@@ -49,6 +42,13 @@ 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:${PORTSDIR}/textproc/R-cran-R2HTML \
@@ -62,7 +62,7 @@ RUN_DEPENDS+= ${LR_MOD_DIR}/R2HTML/INDEX:${PORTSDIR}/textproc/R-cran-R2HTML \
pre-configure:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/rkward/rbackend/rkfrontendtransmitter.cpp
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(doc)|#ADD_SUBDIRECTORY(doc)|' \
${WRKSRC}/CMakeLists.txt
.else
@@ -70,7 +70,7 @@ pre-configure:
${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)
+.if ! ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(po)|#ADD_SUBDIRECTORY(po)|' \
${WRKSRC}/CMakeLists.txt
.endif