diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2003-10-26 21:07:05 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2003-10-26 21:07:05 +0000 |
commit | b87459f08487a9065f17d04eac2b412ecaad2f0e (patch) | |
tree | 635f713b0a5b8512f12cf5f3b8570fc7e6780513 /devel/avr-libc | |
parent | c3f482dcf3ef55b85fa2b8e8a56255ed17ef216e (diff) | |
download | ports-b87459f08487a9065f17d04eac2b412ecaad2f0e.tar.gz ports-b87459f08487a9065f17d04eac2b412ecaad2f0e.zip |
Notes
Diffstat (limited to 'devel/avr-libc')
-rw-r--r-- | devel/avr-libc/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile index 5edaa904d3e3..1e0fb8d9a169 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; \ |