To add facility to provide libbfd.a and bfd.h. Emulator/simulavr wants them.

This commit is contained in:
Makoto Fujiwara 2013-07-06 14:24:21 +00:00 committed by Thomas Klausner
parent 9cfb464303
commit 2449687536
2 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2013/07/05 15:43:33 makoto Exp $
# $NetBSD: Makefile,v 1.6 2013/07/06 14:24:21 makoto Exp $
DISTNAME= binutils-2.23.2
PKGNAME= ${DISTNAME:S/^/avr-/}
@ -11,12 +11,15 @@ COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake makeinfo
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --disable-werror --target=avr --disable-nls
AUTO_MKDIRS= yes
# Prevent the need to run texi2pod.pl and pod2man hence
# the need for perl as build dependency.
post-configure:
@ -27,4 +30,18 @@ post-configure:
${TOUCH} $${f}; \
done
# emulator/simulavr wants libbfd.so or libbfd.a and bfd.h
# --with-bfd=path location of AVR-binutils version of libbfd install
# where include/bfd.h and lib/libbfd.a are found (from binutils)
post-build:
set -e; \
(cd ${WRKSRC}/bfd; ${GMAKE} all libbfd.a);
post-install:
(cd ${WRKSRC}/bfd; \
${GMAKE} install-exec install-data; \
${LIBTOOL} --mode install ${INSTALL_DATA} libbfd.la ${DESTDIR}${PREFIX}/avr/lib; \
${INSTALL_DATA} bfd.h ${DESTDIR}${PREFIX}/avr/include; \
)
.include "../../mk/bsd.pkg.mk"

View File

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/07 03:15:19 makoto Exp $
@comment $NetBSD: PLIST,v 1.2 2013/07/06 14:24:21 makoto Exp $
avr/bin/ar
avr/bin/as
avr/bin/ld
@ -8,6 +8,7 @@ avr/bin/objcopy
avr/bin/objdump
avr/bin/ranlib
avr/bin/strip
avr/include/bfd.h
avr/lib/ldscripts/avr1.x
avr/lib/ldscripts/avr1.xbn
avr/lib/ldscripts/avr1.xn
@ -93,6 +94,8 @@ avr/lib/ldscripts/avrxmega7.xbn
avr/lib/ldscripts/avrxmega7.xn
avr/lib/ldscripts/avrxmega7.xr
avr/lib/ldscripts/avrxmega7.xu
avr/lib/libbfd.a
avr/lib/libbfd.la
bin/avr-addr2line
bin/avr-ar
bin/avr-as