summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2003-10-26 21:07:05 +0000
committerjoerg <joerg@FreeBSD.org>2003-10-26 21:07:05 +0000
commitd5f00d63dba54d32ea1270bcfbd7252f302fa623 (patch)
tree6eb3f28a438a520741f47fcd615daaff10a348fa
parent78625e2d66d94aa3d0b54a04fb50a8793750e612 (diff)
downloadFreeBSD-ports-d5f00d63dba54d32ea1270bcfbd7252f302fa623.zip
FreeBSD-ports-d5f00d63dba54d32ea1270bcfbd7252f302fa623.tar.gz
Honor NOPORTDOCS. This port requires an extraordinary amount of
dependent software when building the docs (doxygen, latex, ghostscript, netpbm, qt, ...), so this might be a real safer for people who just want to build the software only.
-rw-r--r--devel/avr-libc/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile
index 5edaa90..1e0fb8d 100644
--- a/devel/avr-libc/Makefile
+++ b/devel/avr-libc/Makefile
@@ -19,19 +19,23 @@ COMMENT= A C and math library for the Atmel AVR controller family
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
avr-ld:${PORTSDIR}/devel/avr-binutils \
avr-gcc:${PORTSDIR}/devel/avr-gcc \
- ${GMAKE}:${PORTSDIR}/devel/gmake \
- doxygen:${PORTSDIR}/devel/doxygen \
- latex:${PORTSDIR}/print/teTeX \
- fig2dev:${PORTSDIR}/print/transfig
+ ${GMAKE}:${PORTSDIR}/devel/gmake
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
avr-ld:${PORTSDIR}/devel/avr-binutils \
avr-gcc:${PORTSDIR}/devel/avr-gcc
+.if !defined(NOPORTDOCS)
+BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
+ latex:${PORTSDIR}/print/teTeX \
+ fig2dev:${PORTSDIR}/print/transfig
+.endif
USE_BZIP2= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
CONFIGURE_SCRIPT= doconf
+.if !defined(NOPORTDOCS)
CONFIGURE_ARGS= --enable-doc --disable-versioned-doc
+.endif
# Work around the braind***ness introduced by <bsd.cpu.mk> in freebsd-5.
# Sorry, the user is no longer be able to override the optimization and
# debugging settings now.
@@ -39,6 +43,11 @@ MAKE_ENV= NO_CPU_CFLAGS=true
CFLAGS= -O
CXXFLAGS= -O
+DEMOFILES= Makefile demo.c
+.if !defined(NOPORTDOCS)
+DEMOFILES+= demo.bin demo.hex demo.pdf demo.srec
+.endif
+
do-build:
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE})
@@ -58,8 +67,7 @@ do-install:
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/$$f \
${PREFIX}/share/doc/avr-libc/examples; \
done
- @for f in Makefile demo.bin demo.c demo.hex demo.pdf \
- demo.srec;\
+ @for f in ${DEMOFILES};\
do \
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/demo/$$f \
${PREFIX}/share/doc/avr-libc/examples/demo; \
OpenPOWER on IntegriCloud