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.
This commit is contained in:
parent
c3f482dcf3
commit
b87459f084
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92234
1 changed files with 14 additions and 6 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue