freebsd-ports/devel/avr-libc/Makefile
Joerg Wunsch e3dd81a6ab Upgrade to 1.2.5.
The major fix of this release is that the EEPROM access routines are
now supported for all supported AVR devices.  Thanks to Björn Haase
for providing that excellent solution to the problem.
2005-08-01 04:51:01 +00:00

107 lines
3.1 KiB
Makefile

# New ports collection makefile for: avr-libc
# Date created: 04 Dec 2000
# Whom: Joerg Wunsch <joerg@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= avr-libc
PORTVERSION= 1.2.5
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= joerg@freebsd.org
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
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 \
pdflatex:${PORTSDIR}/print/teTeX \
fig2dev:${PORTSDIR}/print/transfig
.endif
USE_BZIP2= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
CONFIGURE_SCRIPT= doconf
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS= --enable-doc --disable-versioned-doc
PLIST_DOC= ${PKGDIR}/pkg-plist.doc
.else
PLIST_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.
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
.if defined(MAINTAINER_DEBUG)
ECHO_EXTRA_RM= ${ECHO_CMD} "Removing " $${to_be_rm_ed} "..."
.else
ECHO_EXTRA_RM= ${ECHO_CMD} "Removing extraneous man page files..."
.endif
do-build:
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE})
do-install:
${RM} -f ${TMPPLIST}; ${CAT} ${PLIST_DOC} ${PLIST} > ${TMPPLIST}
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE} install)
${MKDIR} ${PREFIX}/share/doc/avr-libc
${MKDIR} ${PREFIX}/share/doc/avr-libc/examples
${MKDIR} ${PREFIX}/share/doc/avr-libc/examples/demo
${MKDIR} ${PREFIX}/share/doc/avr-libc/examples/twitest
${INSTALL_DATA} \
${WRKDIR}/${DISTNAME}/LICENSE \
${WRKDIR}/${DISTNAME}/AUTHORS \
${PREFIX}/share/doc/avr-libc
@for f in avr-recv.c io.c prg printf.h progmem.c \
send_byte.s signal.c;\
do \
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/$$f \
${PREFIX}/share/doc/avr-libc/examples; \
done
@for f in ${DEMOFILES};\
do \
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/demo/$$f \
${PREFIX}/share/doc/avr-libc/examples/demo; \
done
@for f in Makefile twitest.c;\
do \
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/twitest/$$f \
${PREFIX}/share/doc/avr-libc/examples/twitest; \
done
.if !defined(NOPORTDOCS)
@( \
tmpname=$${TMPDIR:-/tmp}/avr-libc-inst.$$$$ ; \
cd ${PREFIX}/share/doc/avr-libc/man/man3 ; \
${GREP} '^share/doc/.*man3/' ${PLIST_DOC} | \
${SED} -e 's,.*/,,' | \
${SORT} > $${tmpname}.1 ; \
${LS} -1 | \
${SED} -e 's,.*/,,' | \
${SORT} > $${tmpname}.2 ; \
to_be_rm_ed=$$(${COMM} -13 $${tmpname}.1 $${tmpname}.2) ; \
${RM} -f $${tmpname}.1 $${tmpname}.2 ; \
${ECHO_EXTRA_RM} ; \
${RM} -f $${to_be_rm_ed} \
)
.endif
.include <bsd.port.mk>