blob: 1a1f6471647127c6aa59e58bc3deb93597dd62d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.24 2014/06/15 15:54:41 mef Exp $
DISTNAME= binutils-2.24
PKGNAME= ${DISTNAME:S/^/avr-/}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers
LICENSE= gnu-gpl-v3
# No need to use makeinfo - this package doesn't install the documentation.
USE_TOOLS+= gmake
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:
set -e; \
cd ${WRKSRC}; \
for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi \
gas/doc/as.1; do \
${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:
# Emulator/simulvar needs library files
(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; \
)
# emulator/simulavr wants following header files
(cd ${WRKSRC}/include; \
for f in ansidecl.h symcat.h; do \
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/avr/include; \
done; \
)
.include "../../mk/bsd.pkg.mk"
# ./configure.lineno: 3239: Syntax error: Missing '}'
# Makefile:2991: recipe for target 'configure-opcodes' failed
# gmake[1]: *** [configure-opcodes] Error 1
# gmake[1]: Leaving directory 'cross/avr-binutils/work/binutils-2.24'
# see avr-binutils
PKGSRC_MAKE_ENV+= SH=/bin/ksh
|