diff options
-rw-r--r-- | devel/glibmm/Makefile | 10 | ||||
-rw-r--r-- | x11-toolkits/gtk--2/Makefile | 12 | ||||
-rw-r--r-- | x11-toolkits/gtkmm20/Makefile | 12 |
3 files changed, 26 insertions, 8 deletions
diff --git a/devel/glibmm/Makefile b/devel/glibmm/Makefile index fe8179d6b..0f13ee13e 100644 --- a/devel/glibmm/Makefile +++ b/devel/glibmm/Makefile @@ -27,13 +27,19 @@ CONFIGURE_ARGS= --enable-static PLIST_SUB= VERSION="2.3" API_VERSION="2.4" +.include <bsd.port.pre.mk> + +.if !exists(${LOCALBASE}/bin/doxygen) && !defined(WITH_DOCUMENTATION) +NOPORTDOCS= yes +.endif + .if !defined(NOPORTDOCS) BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .else USE_REINPLACE= yes post-patch: - @${REINPLACE_CMD} -e 's|^\(SUBDIRS =\)\(docs\)\(.*\)|\1\3|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e '/^SUBDIRS =/s/docs//' ${WRKSRC}/Makefile.in .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/x11-toolkits/gtk--2/Makefile b/x11-toolkits/gtk--2/Makefile index b5d5ab13e..c85da2366 100644 --- a/x11-toolkits/gtk--2/Makefile +++ b/x11-toolkits/gtk--2/Makefile @@ -33,6 +33,12 @@ CONFIGURE_ARGS= --enable-static=yes \ PLIST_SUB= VERSION="2.3" API_VERSION="2.4" +.include <bsd.port.pre.mk> + +.if !exists(${LOCALBASE}/bin/doxygen) && !defined (WITH_DOCUMENTATION) +NOPORTDOCS= yes +.endif + .if !defined(NOPORTDOCS) BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .endif @@ -50,8 +56,8 @@ post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS =/s/examples//' \ ${WRKSRC}/Makefile.in .endif -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e 's|^\(SUBDIRS =\)\(docs\)\(.*\)|\1\3|' ${WRKSRC}/Makefile.in +.if !defined(NOPORTDOCS) + @${REINPLACE_CMD} -e '/^SUBDIRS =/s/docs//' ${WRKSRC}/Makefile.in .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/x11-toolkits/gtkmm20/Makefile b/x11-toolkits/gtkmm20/Makefile index b5d5ab13e..c85da2366 100644 --- a/x11-toolkits/gtkmm20/Makefile +++ b/x11-toolkits/gtkmm20/Makefile @@ -33,6 +33,12 @@ CONFIGURE_ARGS= --enable-static=yes \ PLIST_SUB= VERSION="2.3" API_VERSION="2.4" +.include <bsd.port.pre.mk> + +.if !exists(${LOCALBASE}/bin/doxygen) && !defined (WITH_DOCUMENTATION) +NOPORTDOCS= yes +.endif + .if !defined(NOPORTDOCS) BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .endif @@ -50,8 +56,8 @@ post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS =/s/examples//' \ ${WRKSRC}/Makefile.in .endif -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e 's|^\(SUBDIRS =\)\(docs\)\(.*\)|\1\3|' ${WRKSRC}/Makefile.in +.if !defined(NOPORTDOCS) + @${REINPLACE_CMD} -e '/^SUBDIRS =/s/docs//' ${WRKSRC}/Makefile.in .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |