diff options
author | pav <pav@FreeBSD.org> | 2006-10-09 00:05:47 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-10-09 00:05:47 +0800 |
commit | 6c44c83aafdaf44a839e171c2debd88fc6e985e3 (patch) | |
tree | dc2bf3ecf11f4d150b6607237eb7e70a7120c2bb /devel/gwenhywfar | |
parent | 0ab97c3d1e87910b75e4ddc30caf4aed0c059fd4 (diff) | |
download | freebsd-ports-gnome-6c44c83aafdaf44a839e171c2debd88fc6e985e3.tar.gz freebsd-ports-gnome-6c44c83aafdaf44a839e171c2debd88fc6e985e3.tar.zst freebsd-ports-gnome-6c44c83aafdaf44a839e171c2debd88fc6e985e3.zip |
- Turn doxygen documentation off by default, make it into OPTIONS
PR: ports/103115 (based on)
Submitted by: ahze
Approved by: maintainer timeout (lawrance; 1 month)
Diffstat (limited to 'devel/gwenhywfar')
-rw-r--r-- | devel/gwenhywfar/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/devel/gwenhywfar/Makefile b/devel/gwenhywfar/Makefile index 9c73bf0bcccc..b98a99c2171a 100644 --- a/devel/gwenhywfar/Makefile +++ b/devel/gwenhywfar/Makefile @@ -7,7 +7,7 @@ PORTNAME= gwenhywfar PORTVERSION= 1.13.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel net security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,14 +16,14 @@ MAINTAINER= lawrance@FreeBSD.org COMMENT= Multi-platform helper library for networking and security applications OPTIONS= SSLDEBUG "Enable gwenhywfar SSL debug (if SSL enabled)" off \ - MEMDEBUG "Enable memory debugger statistic" off + MEMDEBUG "Enable memory debugger statistic" off \ + PORTDOCS "Install documentation (requires doxygen)" off GNU_CONFIGURE= yes USE_GETTEXT= yes USE_OPENSSL= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -INSTALLS_SHLIB= yes -LDCONFIG_DIRS+= %%PREFIX%%/lib/gwenhywfar/plugins/17/dbio +USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/gwenhywfar/plugins/17/dbio ALL_TARGET= all # Examples to be installed from ${WRKSRC}/doc @@ -35,12 +35,6 @@ EXAMPLE_FILES= STYLE \ plugindescr.xsd.in \ testdialog.xml -.if !defined(NOPORTDOCS) -BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen -ALL_TARGET+= srcdoc -PORTDOCS=* -.endif - .include <bsd.port.pre.mk> .if defined(WITH_SSLDEBUG) @@ -53,6 +47,12 @@ CFLAGS+= -DGWEN_SSL_DEBUG CFLAGS+= -DGWEN_MEMORY_DEBUG .endif +.if defined(WITH_PORTDOCS) +BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen +ALL_TARGET+= srcdoc +PORTDOCS=* +.endif + post-install: .if !defined(NOPORTDOCS) @${ECHO_CMD} Installing documentation... @@ -60,10 +60,12 @@ post-install: .for file in ${EXAMPLE_FILES} ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR} .endfor +.if defined(WITH_PORTDOCS) ${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && ${FIND} apidoc -mindepth 1 \! -type d \ -exec ${ECHO_CMD} "{} -> ${DOCSDIR}/{}" \; \ -exec ${INSTALL_DATA} ${WRKSRC}/{} ${DOCSDIR} \; .endif +.endif .include <bsd.port.post.mk> |