1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

WITHOUT_NLS -> PORT_OPTIONS:MNLS

NOPORTDOCS -> PORT_OPTIONS:MDOCS
This commit is contained in:
Baptiste Daroussin 2013-06-04 14:26:02 +00:00
parent ee8cbb16fc
commit f6bc9847f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319863
2 changed files with 16 additions and 14 deletions

View File

@ -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

View File

@ -30,10 +30,12 @@ FORTRANLIBDIR2= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../
DOCSDIR= ${PREFIX}/share/doc/HTML/en/rkward
.if defined(WITHOUT_NLS)
NLS= "@comment "
.else
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
NLS= ""
.else
NLS= "@comment "
.endif
PLIST_SUB+= NLS=${NLS}
@ -45,11 +47,11 @@ pre-configure:
${PHP2FIX:S|^|${WRKSRC}/|}
${REINPLACE_CMD} -e 's|-lgfortran|-L${FORTRANLIBDIR2} -lgfortran|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(NOPORTDOCS)
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|rkward po doc|rkward po|' \
${WRKSRC}/Makefile.in
.endif
.if defined(WITHOUT_NLS)
.if ! ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e 's|SUBDIRS = rkward po|SUBDIRS = rkward|' \
${WRKSRC}/Makefile.in
.endif