summaryrefslogtreecommitdiff
path: root/cross/avr-libc/Makefile
diff options
context:
space:
mode:
authorwennmach <wennmach>2003-07-17 18:50:22 +0000
committerwennmach <wennmach>2003-07-17 18:50:22 +0000
commit45c870148eeb945312d9b5704757a2028b0c2189 (patch)
tree632094468d43dd47d393ea6bde71ae42065c410e /cross/avr-libc/Makefile
parentfd35cdba9dfbe5a26791c7d381623df63e804b06 (diff)
downloadpkgsrc-45c870148eeb945312d9b5704757a2028b0c2189.tar.gz
avr-libc -- a C and math library for the Atmel AVR controller family.
Submitted by Karl Janmar <karlj@mdstud.chalmers.se> in PR 22139, with several changes by myself. Original package from FreeBSD.
Diffstat (limited to 'cross/avr-libc/Makefile')
-rw-r--r--cross/avr-libc/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/cross/avr-libc/Makefile b/cross/avr-libc/Makefile
new file mode 100644
index 00000000000..c82c27cd311
--- /dev/null
+++ b/cross/avr-libc/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/17 18:50:22 wennmach Exp $
+# FreeBSD Id: ports/devel/avr-libc/Makefile,v 1.22 2003/05/20 06:02:40 joerg Exp
+
+DISTNAME= avr-libc-2003.05.11
+CATEGORIES= cross
+MASTER_SITES= http://people.freebsd.org/~joerg/ \
+ http://savannah.nongnu.org/download/avr-libc/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= karlj@mdstud.chalmers.se
+HOMEPAGE= http://savannah.nongnu.org/projects/avr-libc
+COMMENT= C and math library for the Atmel AVR controller family
+
+BUILD_DEPENDS+= avr-binutils-*:../../cross/avr-binutils
+BUILD_DEPENDS+= avr-gcc-*:../../cross/avr-gcc
+BUILD_DEPENDS+= gmake-*:../../devel/gmake
+BUILD_DEPENDS+= doxygen-*:../../devel/doxygen
+BUILD_DEPENDS+= transfig-*:../../print/transfig
+BUILD_DEPENDS+= netpbm-*:../../graphics/netpbm
+
+USE_BZIP2= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ENV= CC=${LOCALBASE}/bin/avr-gcc PREFIX=${PREFIX}
+CONFIGURE_SCRIPT= ./doconf
+CONFIGURE_ARGS= --disable-versioned-doc --enable-html-doc --enable-doc
+
+do-build:
+ (cd ${WRKSRC}; ./domake MAKE=${GMAKE})
+
+do-install:
+ (cd ${WRKSRC}; ./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} \
+ ${WRKSRC}/LICENSE \
+ ${WRKSRC}/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} ${WRKSRC}/doc/examples/$$f \
+ ${PREFIX}/share/doc/avr-libc/examples; \
+ done
+ (cd ${WRKSRC}/doc/examples/demo; ${GMAKE})
+ (cd ${WRKSRC}/doc/examples/demo; ${GMAKE} dox)
+ @for f in Makefile demo.c demo.bin demo.hex demo.pdf \
+ demo.srec;\
+ do \
+ ${INSTALL_DATA} ${WRKSRC}/doc/examples/demo/$$f \
+ ${PREFIX}/share/doc/avr-libc/examples/demo; \
+ done
+ @for f in Makefile twitest.c;\
+ do \
+ ${INSTALL_DATA} ${WRKSRC}/doc/examples/twitest/$$f \
+ ${PREFIX}/share/doc/avr-libc/examples/twitest; \
+ done
+
+.include "../../mk/bsd.pkg.mk"