| @@ -1,38 +1,44 @@ | | | @@ -1,38 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.11 2014/10/23 10:30:10 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2014/10/30 21:48:47 mef Exp $ |
2 | | | 2 | |
3 | DISTNAME= binutils-2.24 | | 3 | DISTNAME= binutils-2.24 |
4 | PKGNAME= ${DISTNAME:S/^/nios2-/} | | 4 | PKGNAME= ${DISTNAME:S/^/nios2-/} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= cross | | 6 | CATEGORIES= cross |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.gnu.org/software/binutils/ | | 11 | HOMEPAGE= http://www.gnu.org/software/binutils/ |
12 | COMMENT= GNU binutils for Altera FPGA Nios2 processor | | 12 | COMMENT= GNU binutils for Altera FPGA Nios2 processor |
13 | LICENSE= gnu-gpl-v3 | | 13 | LICENSE= gnu-gpl-v3 |
14 | | | 14 | |
15 | # No need to use makeinfo - this package doesn't install the documentation. | | 15 | # No need to use makeinfo - this package doesn't install the documentation. |
16 | USE_TOOLS+= gmake | | 16 | USE_TOOLS+= gmake |
17 | USE_LANGUAGES= c c++ | | 17 | USE_LANGUAGES= c c++ |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | USE_PKGLOCALEDIR= yes | | 20 | USE_PKGLOCALEDIR= yes |
21 | USE_GNU_CONFIGURE_HOST= no | | 21 | USE_GNU_CONFIGURE_HOST= no |
22 | INFO_FILES= # empty | | 22 | INFO_FILES= # empty |
23 | # ./configure.lineno: 3239: Syntax error: Missing '}' | | 23 | |
24 | # Makefile:2991: recipe for target 'configure-opcodes' failed | | 24 | # follows to devel/binutils |
25 | CONFIG_SHELL= ksh | | 25 | # PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1 |
| | | 26 | .include "../../mk/bsd.prefs.mk" |
| | | 27 | .if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \ |
| | | 28 | empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*) |
| | | 29 | USE_TOOLS+= ksh |
| | | 30 | CONFIG_SHELL= ksh |
| | | 31 | .endif |
26 | | | 32 | |
27 | NIOS2_TARGET= nios2-elf | | 33 | NIOS2_TARGET= nios2-elf |
28 | CONFIGURE_ARGS+= --disable-werror --target=${NIOS2_TARGET} --disable-nls | | 34 | CONFIGURE_ARGS+= --disable-werror --target=${NIOS2_TARGET} --disable-nls |
29 | PLIST_SUBST+= NIOS2_TARGET=${NIOS2_TARGET:Q} | | 35 | PLIST_SUBST+= NIOS2_TARGET=${NIOS2_TARGET:Q} |
30 | | | 36 | |
31 | USE_CROSSBASE= yes | | 37 | USE_CROSSBASE= yes |
32 | BUILD_DEFS+= CROSSBASE | | 38 | BUILD_DEFS+= CROSSBASE |
33 | PATH:= ${CROSSBASE}/bin:${PATH} | | 39 | PATH:= ${CROSSBASE}/bin:${PATH} |
34 | AUTO_MKDIRS= yes | | 40 | AUTO_MKDIRS= yes |
35 | | | 41 | |
36 | # following file installed is reference only, not used at all for the moment | | 42 | # following file installed is reference only, not used at all for the moment |
37 | post-install: | | 43 | post-install: |
38 | ${INSTALL_DATA} files/nios2elf-netbsd.x ${DESTDIR}${PREFIX}/${NIOS2_TARGET}/lib/ldscripts | | 44 | ${INSTALL_DATA} files/nios2elf-netbsd.x ${DESTDIR}${PREFIX}/${NIOS2_TARGET}/lib/ldscripts |