blob: 1eded718b0563b3662b8207df81b278d58889e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# New ports collection makefile for: avr-libc
# Date created: 04 Dec 2000
# Whom: Joerg Wunsch <joerg@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= avr-libc
PORTVERSION= 2003.09.09
PORTREVISION= 1
CATEGORIES= devel
# Currently still snapshots, not yet officially released again.
#MASTER_SITES= ${MASTER_SITE_SAVANNAH}
#MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= http://people.freebsd.org/~joerg/
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 \
${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.
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})
do-install:
(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
.include <bsd.port.mk>
|