Make it generic:
  -PKGNAME=       avr-gdb-7.6
  +PKGNAME=       ${DISTNAME:S/^/avr-/}
Fix typo:
  -CONFIGURE_ARGS+=       -with-curses
  +CONFIGURE_ARGS+=       --with-curses

Make it real for above CONFIGURE_ARGS:
  +# to link -lcurses.7 => /usr/lib/libcurses.so.7
  +# instead of terminfo
  +.include "../../mk/curses.buildlink3.mk"