pkgsrc/devel/binutils/Makefile

93 lines
2.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.47 2012/11/20 23:05:22 jperkin Exp $
DISTNAME= binutils-2.22
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://directory.fsf.org/project/binutils/
COMMENT= GNU binary utilities
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
EXTRACT_SUFX= .tar.bz2
CONFLICTS= avr-binutils<2.13.2.1nb1
NOT_FOR_PLATFORM= Darwin-*-* Interix-*-*
USE_PKGLOCALEDIR= yes
2005-03-17 23:49:09 +01:00
REPLACE_LOCALEDIR_PATTERNS+= Make-in
Update to binutils "2.14.0.0". (The ".0.0" is to allow any PKGREVISION bumps to correctly sort before "2.14.1", and "2.14.1.1", and so on.) Follows is a list of additions to the "NEWS" files since 2.13. The "NEWS" files were apparently not updated for "2.13.2.1" however, so all of this is not really new. The "--with-sysroot" and "--with-lib-path" configure options for "ld" are truly new, though, and the package now takes advantage of "--with-lib-path" to prevent picking up crud from "${PREFIX}/lib", to better support using this "ld" with which to build pkgsrc packages. ----- binutils/binutils/NEWS ----- * Added --info switch to objcopy and strip. * Support for Vitesse IQ2000 added by Red Hat. * Added 'S' encoding to strings to allow the display of 8-bit characters. * Added --prefix-symbols=<text>, --prefix-sections=<text> and --prefix-alloc-sections=<text> to objcopy. * readelf can handle the extensions to the DWARF2 spec used by the Unified Parallel C compiler. * BFD no longer declares a "boolean" type, to avoid clashes with other headers that declare the same. Users of BFD should replace boolean, false and true, with int, 0 and 1, or define their own boolean type. * Support for IP2K added by Denis Chertykov. ----- binutils/gas/NEWS ----- * Added support for MIPS32 Release 2. * Added support for Xtensa architecture. * Support for Intel's iWMMXt processor (an ARM variant) added. * An assembler test generator has been contributed and an example file that uses it (gas/testsuite/gas/all/test-gen.c and test-exmaple.c). * Support for SH2E added. * GASP has now been removed. * Support for Texas Instruments TMS320C4x and TMS320C3x series of DSP's contributed by Michael Hayes and Svein E. Seldal. * Support for the Ubicom IP2xxx microcontroller added. ----- binutils/ld/NEWS ----- * Added support for Xtensa architecture. * Added --with-sysroot configure switch to specify a target system root, for linking against a target filesystem image. * Added --accept-unknown-linker-format to restore old linker behaviour (pre 2.14) of silently accepting and linking in any files in an unknown binary file format. * Added --no-omagic to undo the effects of the -N option. * Support for Texas Instruments TMS320C4x and TMS320C3x series of DSP's contributed by Michael Hayes and Svein E. Seldal. * Added --with-lib-path configure switch to specify default value for LIB_PATH. * ARM port to QNX operating system added by Graeme Peterson. * IP2K support added by Denis Chertykov.
2003-07-14 21:01:35 +02:00
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
Update to binutils "2.14.0.0". (The ".0.0" is to allow any PKGREVISION bumps to correctly sort before "2.14.1", and "2.14.1.1", and so on.) Follows is a list of additions to the "NEWS" files since 2.13. The "NEWS" files were apparently not updated for "2.13.2.1" however, so all of this is not really new. The "--with-sysroot" and "--with-lib-path" configure options for "ld" are truly new, though, and the package now takes advantage of "--with-lib-path" to prevent picking up crud from "${PREFIX}/lib", to better support using this "ld" with which to build pkgsrc packages. ----- binutils/binutils/NEWS ----- * Added --info switch to objcopy and strip. * Support for Vitesse IQ2000 added by Red Hat. * Added 'S' encoding to strings to allow the display of 8-bit characters. * Added --prefix-symbols=<text>, --prefix-sections=<text> and --prefix-alloc-sections=<text> to objcopy. * readelf can handle the extensions to the DWARF2 spec used by the Unified Parallel C compiler. * BFD no longer declares a "boolean" type, to avoid clashes with other headers that declare the same. Users of BFD should replace boolean, false and true, with int, 0 and 1, or define their own boolean type. * Support for IP2K added by Denis Chertykov. ----- binutils/gas/NEWS ----- * Added support for MIPS32 Release 2. * Added support for Xtensa architecture. * Support for Intel's iWMMXt processor (an ARM variant) added. * An assembler test generator has been contributed and an example file that uses it (gas/testsuite/gas/all/test-gen.c and test-exmaple.c). * Support for SH2E added. * GASP has now been removed. * Support for Texas Instruments TMS320C4x and TMS320C3x series of DSP's contributed by Michael Hayes and Svein E. Seldal. * Support for the Ubicom IP2xxx microcontroller added. ----- binutils/ld/NEWS ----- * Added support for Xtensa architecture. * Added --with-sysroot configure switch to specify a target system root, for linking against a target filesystem image. * Added --accept-unknown-linker-format to restore old linker behaviour (pre 2.14) of silently accepting and linking in any files in an unknown binary file format. * Added --no-omagic to undo the effects of the -N option. * Support for Texas Instruments TMS320C4x and TMS320C3x series of DSP's contributed by Michael Hayes and Svein E. Seldal. * Added --with-lib-path configure switch to specify default value for LIB_PATH. * ARM port to QNX operating system added by Graeme Peterson. * IP2K support added by Denis Chertykov.
2003-07-14 21:01:35 +02:00
CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib'
CONFIGURE_ARGS+= --program-prefix=g
BINUTILS_PREFIX= ${PREFIX}/${MACHINE_GNU_PLATFORM}
2002-12-25 17:53:51 +01:00
PLIST_SRC= ${PKGDIR}/PLIST.common
PLIST_SRC+= ${WRKDIR}/PLIST_DYNAMIC
INFO_FILES= yes
INSTALLATION_DIRS= gnu/bin gnu/man/man1
# gprof (XXX: and others?) cannot be built on all platforms
#
PLIST_VARS+= gprof ld
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "IRIX"
PLIST.gprof= yes
EXTRA_FILES+= gprof
.endif
.if ${OPSYS} != "SunOS"
PLIST.ld= yes
EXTRA_FILES+= ld
.endif
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-unused-value -Wno-format-security \
-Wno-uninitialized -Wno-format -Wno-string-plus-int \
-Wno-empty-body -Wno-self-assign
.endif
# Prevent the need to run texi2pod.pl and pod2man which would
# require perl as a build dependency.
post-configure:
.for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi gas/doc/as.1
set -e; \
if [ -f ${WRKSRC}/${f} ]; then \
${TOUCH} ${WRKSRC}/${f}; \
fi
.endfor
SYMLINK_FILES = addr2line ar as c++filt dlltool elfedit ld.bfd \
nlmconv nm objcopy objdump ranlib readelf size strings \
strip windmc windres
.if ${PLIST.gprof} == "yes"
SYMLINK_FILES+= gprof
.endif
.if ${PLIST.ld} == "yes"
SYMLINK_FILES+= ld
.endif
post-install:
cd ${DESTDIR}${PREFIX} && \
find ${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print \
| sort -r \
> ${WRKDIR}/PLIST_DYNAMIC
.for f in ${SYMLINK_FILES}
set -e; \
if [ -f ${DESTDIR}${PREFIX}/bin/g${f:Q} ]; then \
${LN} -sf ${PREFIX}/bin/g${f} ${DESTDIR}${PREFIX}/gnu/bin/${f}; \
fi
if [ -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1 ]; then \
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f}.1 \
${DESTDIR}${PREFIX}/gnu/man/man1/${f}.1; \
fi
.endfor
.include "../../mk/bsd.pkg.mk"