aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-04-02 18:04:49 +0800
committergahr <gahr@FreeBSD.org>2013-04-02 18:04:49 +0800
commit0fccb15798d87836d3dbde1183c10df00e065abe (patch)
tree5cd5ceb9fff95c1d18e0ccfe77bba01bfe46c1da /textproc
parent7d2519e8a9900f887e7b99f3841c88d2d931ee54 (diff)
downloadfreebsd-ports-gnome-0fccb15798d87836d3dbde1183c10df00e065abe.tar.gz
freebsd-ports-gnome-0fccb15798d87836d3dbde1183c10df00e065abe.tar.zst
freebsd-ports-gnome-0fccb15798d87836d3dbde1183c10df00e065abe.zip
- Fix DOCSDIR
- Use OPTIONS for DOCS Approved by: portmgr
Diffstat (limited to 'textproc')
-rw-r--r--textproc/zorba/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/textproc/zorba/Makefile b/textproc/zorba/Makefile
index 778f2e852cdb..f0a0ea3ad333 100644
--- a/textproc/zorba/Makefile
+++ b/textproc/zorba/Makefile
@@ -36,7 +36,7 @@ CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS= -DCMAKE_REQUIRED_FLAGS:STRING="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAME}
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= FULLVERSION=${PORTVERSION} \
MIDVERSION=${PORTVERSION:R} \
@@ -97,14 +97,14 @@ PLIST_SUB+= WITH_JAVA="@comment "
BUILD_DEPENDS+= swig2.0:${PORTSDIR}/devel/swig20
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/CMakeLists.txt ${WRKSRC}/cmake_modules/FindPHP5.cmake
-.if defined(NOPORTDOCS)
+.if !${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '531s|^|#|' ${WRKSRC}/CMakeLists.txt
.endif