diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2010-02-11 21:32:50 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2010-02-11 21:32:50 +0000 |
commit | 15715d522589fac5675e96b7a9611cf8c60e3257 (patch) | |
tree | cef5840b8b8ddd694ad1428d9fcd74445190f35e /devel/avr-libc | |
parent | 90d8d127caa2da9c638d13b3ce75c552e642f8fe (diff) |
Notes
Diffstat (limited to 'devel/avr-libc')
-rw-r--r-- | devel/avr-libc/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile index c913e16b94ad..722df17e9a2e 100644 --- a/devel/avr-libc/Makefile +++ b/devel/avr-libc/Makefile @@ -26,7 +26,12 @@ OPTIONS= AVRLIBCDOCS "Build avr-libc documents" on .include <bsd.port.options.mk> -.if defined(WITH_AVRLIBCDOCS) && !defined(NOPORTDOCS) +.if defined(WITHOUT_AVRLIBCDOCS) || defined(NOPORTDOCS) +WITHOUT_AVRLIBCDOCS= true +.undef WITH_AVRLIBCDOCS +.endif + +.if defined(WITH_AVRLIBCDOCS) BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \ latex:${PORTSDIR}/print/teTeX \ pdflatex:${PORTSDIR}/print/teTeX \ @@ -41,7 +46,7 @@ HAS_CONFIGURE= yes CONFLICTS= avr-libc-devel* CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX} -.if !defined(NOPORTDOCS) +.if defined(WITH_AVRLIBCDOCS) CONFIGURE_ARGS= --build=`./config.guess` --host=avr \ --enable-doc --disable-versioned-doc --prefix=${PREFIX} PLIST_DOC= ${PKGDIR}/pkg-plist.doc @@ -57,13 +62,13 @@ CFLAGS= -O CXXFLAGS= -O post-patch: -.if defined(NOPORTDOCS) +.if defined(WITHOUT_AVRLIBCDOCS) ${REINPLACE_CMD} -e '/SUBDIRS/s,examples,,' ${WRKSRC}/doc/Makefile.in .endif do-install: ${RM} -f ${TMPPLIST} -.if !defined(NOPORTDOCS) +.if defined(WITH_AVRLIBCDOCS) (cd ${BUILD_WRKSRC}/doc/api/avr-libc-user-manual && \ ${FIND} . -type f \ \( -name '*.html' -or -name '*.css' -or \ |