2018-05-03 20:43:58 +00:00
|
|
|
# $NetBSD$
|
2012-02-07 03:01:20 +00:00
|
|
|
|
2018-05-03 20:43:58 +00:00
|
|
|
DISTNAME= avr-libc-2.0.0
|
2012-02-07 03:01:20 +00:00
|
|
|
CATEGORIES= cross
|
|
|
|
MASTER_SITES= http://savannah.nongnu.org/download/avr-libc/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2014-06-18 06:30:42 +00:00
|
|
|
MAINTAINER= makoto@ki.nu
|
2020-01-19 01:12:34 +00:00
|
|
|
HOMEPAGE= https://savannah.nongnu.org/projects/avr-libc
|
2012-02-07 03:01:20 +00:00
|
|
|
COMMENT= C and math library for Atmel AVR 8-bit microcontrollers
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake perl
|
|
|
|
GNU_CONFIGURE= yes
|
2018-06-06 19:44:18 +00:00
|
|
|
USE_GNU_CONFIGURE_HOST= no
|
2012-02-07 03:01:20 +00:00
|
|
|
|
2018-05-03 20:43:58 +00:00
|
|
|
CONFIGURE_ARGS+= --build=${MACHINE_GNU_PLATFORM:Q}
|
2013-07-06 10:16:25 +00:00
|
|
|
CONFIGURE_ARGS+= --host=avr
|
2012-02-07 03:01:20 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-versioned-doc
|
2015-02-02 01:48:24 +00:00
|
|
|
CONFIGURE_ARGS+= CC=${PREFIX}/bin/avr-gcc
|
|
|
|
CONFIGURE_ARGS+= CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/avr/include"
|
2012-02-07 03:01:20 +00:00
|
|
|
|
2018-05-03 20:43:58 +00:00
|
|
|
#BUILD_DEPENDS+= doxygen>=1.8.12:../../devel/doxygen
|
|
|
|
|
2012-02-07 03:01:20 +00:00
|
|
|
# In doc/examples/demo directory, we have sample Makefile both for
|
|
|
|
# generating *.hex file at pkg installation time, and for installing
|
|
|
|
# Makefile itself. That Makefile should be for general purpose, meaning
|
|
|
|
# OBJCOPY = avr-objcopy
|
|
|
|
# line should be intact. While pkg installation time it should refer
|
|
|
|
# wrapper ${LOCALBASE}/cross/bin files. See patch-doc_Makefile.in adding
|
|
|
|
# related one line.
|
|
|
|
|
|
|
|
SUBST_CLASSES+= demo
|
|
|
|
SUBST_STAGE.demo= pre-configure
|
|
|
|
SUBST_MESSAGE.demo= Add cross/bin on PATH for OBJCOPY (avr-objcopy) etc
|
|
|
|
SUBST_FILES.demo= doc/Makefile.in
|
|
|
|
SUBST_SED.demo= -e 's|@@@PATH@@@|${PREFIX}/bin:${PATH:Q}|g'
|
|
|
|
|
2018-05-03 20:43:58 +00:00
|
|
|
.include "options.mk"
|
2014-06-18 06:30:42 +00:00
|
|
|
.include "../../cross/avr-binutils/buildlink3.mk"
|
2015-02-02 01:48:24 +00:00
|
|
|
.include "../../cross/avr-gcc/buildlink3.mk"
|
2012-02-07 03:01:20 +00:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
|
2013-07-06 10:16:25 +00:00
|
|
|
# Not to be overridden as --mandir=${PREFIX}, put the line here.
|
|
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/share/doc/avr-libc/man
|