pkgsrc/cross/avr-libc/Makefile
mef ea1de3eacb Updated cross/avr-libc 1.8.1 to 2.0.0
-------------------------------
*** Changes in avr-libc-2.0.0:
* General:
    This is the first official release supporting AVR-GCC 5 (and above).

* Bugs fixed:

  [#33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit:
           R_AVR_13_PCREL" linker error
  [#34719] Check for right build compiler
  [#43011] Bug in struct definition of __reg_UCSR1C and __reg_UCSR0C in iom128rfa1.h
  [#43044] memory sections require __attribute__ ((used))
  [#43828] wdt.h: Wrong inline assembler arguments
  [#44140] wdt_disable() macro clobbers prescaller bits
  [#44279] incorrect USB_TRNCOMPL_vect_num in iox64a1u.h, iox128a1u.h
  [#44515] Wrong build option '-mtiny-stack' instead of '-msp8'
  [#44574] Place device-specific libraries in their multilib directory
  [#44869] trunk doesn't work with gcc 5.1.0-RC-20150412
  [#44977] Incorrect PORT_t and CRC_t definitions for ATxmega64A1U and 128A1U
  [#45539] iom32u4.h defines reserved IO address (TIMSK2 (0x70), TIMSK5 (0x73) etc)
  [#45551] Power-save mode not supported for ATtiny167
  [#36303] Wrong hour for EU Summertime
  [#44514] Wrong build option '-mtiny-stack' instead of '-msp8'
  [no-id] TC_EVACT_FRQ_gc was misspelled as TC_EVACT_FRW_gc in some Xmega
          header files
  [no-id] LOCKBITS renamed to LOCK_BITS in Xmega header files as LOCKBITS
          clashes with definition in lock.h. Added missed defines to ADC_CH_MUXPOS_enum.
          Corrected pinmux values in ADC_CH_MUXNEG_enum.
  [no-id] Fix typos and incorrect definitions in header files.

* New devices supported:

  - ATA6616C, ATtiny441, ATtiny841, ATA6612C, ATA6617C, ATA664251, ATmega48PB,
    ATmega88PB, ATA5702M322, ATA5782, ATA5790N, ATA5831, ATA6613C, ATA6614Q,
    ATmega64HVE2, ATxmega8E5, ATxmega32C3, ATxmega32D3, ATxmega32E5

* Contributed Patches:

  [no-id] save & restore rampd register in xmega wdt_enable and wdt_disable
  [#8543] Fix multiple issues with device header files
  [#8557] Proposing to remove device specific xmega macros from sleep.h
  [#8563] Generalize power reduction macros in power.h by removing hard coded device names
  [#8564] Add dwarf debug info alternative, build printf with debug info
  [#8565] Compute and include device header file name from
          __AVR_DEV_LIB_NAME__ as fallback in io.h.
  [#8587] Move device specific functions to libdev.a
  [#8590] WDT enable/disable for devices with CCP
  [#8610] Remove eeprom function name mangling
  [#8716] Enable setjmp/longjmp functions for AVR_TINY architecture
  [#8718] Enable EEPROM memory map only for devices with EEPROM Data Memory
          Mapping Enable bit (EEMAPEN)
  [#8731] Header file for atmega644a
  [#8728] Use __extension__ with long long
  [#8556] Fix atexit.c
  [#8810] Fix LFUSE_DEFAULT for tiny24a/44a
  [#8902] Xmega's PROTECTED_WRITE is incorrect for IO registers whose address
          is more than one byte

* Other changes:

  Overhaul of doxygen documentation.

(pkgsrc-changes)
- Add comment lines to patch, picked from (old) cvs log
2017-01-29 04:29:54 +00:00

45 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.47 2017/01/29 04:29:54 mef Exp $
DISTNAME= avr-libc-2.0.0
CATEGORIES= cross
MASTER_SITES= http://savannah.nongnu.org/download/avr-libc/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= makoto@ki.nu
HOMEPAGE= http://savannah.nongnu.org/projects/avr-libc
COMMENT= C and math library for Atmel AVR 8-bit microcontrollers
LICENSE= modified-bsd
USE_TOOLS+= gmake perl
GNU_CONFIGURE= yes
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --build=${MACHINE_GNU_PLATFORM:Q}
CONFIGURE_ARGS+= --host=avr
CONFIGURE_ARGS+= --disable-versioned-doc
CONFIGURE_ARGS+= CC=${PREFIX}/bin/avr-gcc
CONFIGURE_ARGS+= CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/avr/include"
BUILD_DEPENDS+= doxygen>=1.8.12:../../devel/doxygen
# 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'
.include "options.mk"
.include "../../cross/avr-binutils/buildlink3.mk"
.include "../../cross/avr-gcc/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
# Not to be overridden as --mandir=${PREFIX}, put the line here.
CONFIGURE_ARGS+= --mandir=${PREFIX}/share/doc/avr-libc/man