summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-06-13 09:15:18 +0800
committeradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-06-13 09:15:18 +0800
commit1a76e270f75287f5da42b8c19c7fd6c9d299cac3 (patch)
tree02d17997d19ad7072cdcc343b060e9eab226f876
parent5db964eb689b39808bc0ed7eb6b7be88650be992 (diff)
downloadmarcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar.gz
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar.bz2
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar.lz
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar.xz
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.tar.zst
marcuscom-ports-1a76e270f75287f5da42b8c19c7fd6c9d299cac3.zip
Let glibmm and gtkmm compile without documentation being built. Furthermore,
make that the default unless WITH_DOCUMENTATION is defined. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2395 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--devel/glibmm/Makefile10
-rw-r--r--x11-toolkits/gtk--2/Makefile12
-rw-r--r--x11-toolkits/gtkmm20/Makefile12
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>