diff options
author | John Marino <marino@FreeBSD.org> | 2014-09-09 21:05:28 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-09-09 21:05:28 +0000 |
commit | 80873b3ad19f67a35f790d4e41c6e56bd8866cb4 (patch) | |
tree | 7093e54cc8627cb04e3cb015d7b1e738c4c816a3 /devel | |
parent | dd1d9fd81fafb5ce0495e4862f8f08370c387643 (diff) | |
download | ports-80873b3ad19f67a35f790d4e41c6e56bd8866cb4.tar.gz ports-80873b3ad19f67a35f790d4e41c6e56bd8866cb4.zip |
Notes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/cross-binutils/Makefile | 148 | ||||
-rw-r--r-- | devel/cross-binutils/distinfo | 4 | ||||
-rw-r--r-- | devel/cross-binutils/pkg-descr | 12 |
4 files changed, 165 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 3c39c7440218..eb368fb2bdd0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -267,6 +267,7 @@ SUBDIR += cproto SUBDIR += cpuflags SUBDIR += creduce + SUBDIR += cross-binutils SUBDIR += critcl SUBDIR += cscope SUBDIR += cscout diff --git a/devel/cross-binutils/Makefile b/devel/cross-binutils/Makefile new file mode 100644 index 000000000000..fb694b785d70 --- /dev/null +++ b/devel/cross-binutils/Makefile @@ -0,0 +1,148 @@ +# Created by: Stanislav Sedov <stas@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= binutils +PORTVERSION= 2.23.2 +PORTREVISION= 1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEWARE} +MASTER_SITE_SUBDIR= binutils/releases +PKGNAMEPREFIX= ${TGTARCH}-${TGTABI}- + +PATCH_SITES= ftp://ftp.rtems.com/pub/rtems/SOURCES/4.11/ +PATCH_DIST_STRIP= -p1 + +MAINTAINER= brooks@FreeBSD.org +COMMENT= GNU binutils port for cross-target development + +USES= gmake makeinfo tar:bzip2 +GNU_CONFIGURE= yes +ALL_TARGET= all info +MAKE_JOBS_UNSAFE= yes + +.include <bsd.port.options.mk> + +CONFIGURE_ARGS+= --disable-nls \ + --with-system-zlib \ + --with-sysroot=/ \ + --target=${OURTARGET} \ + --disable-werror + +OURTARGET= ${TGTARCH}-${TGTABI} + +INFO= ${OURTARGET}-as \ + ${OURTARGET}-bfd \ + ${OURTARGET}-binutils \ + ${OURTARGET}-ld + +PLIST_FILES= bin/${OURTARGET}-addr2line \ + bin/${OURTARGET}-ar \ + bin/${OURTARGET}-as \ + bin/${OURTARGET}-c++filt \ + bin/${OURTARGET}-elfedit \ + bin/${OURTARGET}-ld \ + bin/${OURTARGET}-ld.bfd \ + bin/${OURTARGET}-nm \ + bin/${OURTARGET}-objcopy \ + bin/${OURTARGET}-objdump \ + bin/${OURTARGET}-ranlib \ + bin/${OURTARGET}-readelf \ + bin/${OURTARGET}-size \ + bin/${OURTARGET}-strings \ + bin/${OURTARGET}-strip \ + man/man1/${OURTARGET}-addr2line.1.gz \ + man/man1/${OURTARGET}-ar.1.gz \ + man/man1/${OURTARGET}-as.1.gz \ + man/man1/${OURTARGET}-c++filt.1.gz \ + man/man1/${OURTARGET}-elfedit.1.gz \ + man/man1/${OURTARGET}-dlltool.1.gz \ + man/man1/${OURTARGET}-ld.1.gz \ + man/man1/${OURTARGET}-nlmconv.1.gz \ + man/man1/${OURTARGET}-nm.1.gz \ + man/man1/${OURTARGET}-objcopy.1.gz \ + man/man1/${OURTARGET}-objdump.1.gz \ + man/man1/${OURTARGET}-ranlib.1.gz \ + man/man1/${OURTARGET}-readelf.1.gz \ + man/man1/${OURTARGET}-size.1.gz \ + man/man1/${OURTARGET}-strings.1.gz \ + man/man1/${OURTARGET}-strip.1.gz \ + man/man1/${OURTARGET}-windmc.1.gz \ + man/man1/${OURTARGET}-windres.1.gz + +.if defined(TGTARCH) && ${TGTARCH} != mips +INFO+= ${OURTARGET}-gprof +PLIST_FILES+= bin/${OURTARGET}-gprof \ + man/man1/${OURTARGET}-gprof.1.gz +.endif + +.if defined(TGTABI) && (${TGTABI} == pc-mingw32 || ${TGTABI} == mingw32) +PLIST_FILES+= bin/${OURTARGET}-dlltool \ + bin/${OURTARGET}-dllwrap \ + bin/${OURTARGET}-windmc \ + bin/${OURTARGET}-windres +.endif + +.if ${PORT_OPTIONS:MRTEMS_PATCHES} +PATCHFILES+= ${PORTNAME}-${PORTVERSION}-rtems4.11-20130326.diff +.endif + +.if !defined(TGTARCH) || !defined(TGTABI) +PKGNAMEPREFIX= cross- +IGNORE= you should define TGTARCH and TGTABI to build port +.endif + +# +# Macro to fix up info referencies +# +FIXREFS= ${SH} -c '${REINPLACE_CMD} -E \ + -e "s,$$0\.(texi|info),${OURTARGET}-$$0.\1,g" \ + -e "s,(@file)\{$$0\},\1\{${OURTARGET}-$$0\},g" \ + -e "s,\($$0\),\(${OURTARGET}-$$0\),g" $$*' -- + +post-patch: +# +# Patch and rename info files +# + @${FIXREFS} as ${WRKSRC}/gas/doc/as.texinfo \ + ${WRKSRC}/gas/doc/Makefile.in + @${FIXREFS} bfd ${WRKSRC}/bfd/doc/bfd.texinfo \ + ${WRKSRC}/bfd/doc/Makefile.in + @${FIXREFS} binutils ${WRKSRC}/binutils/doc/binutils.texi \ + ${WRKSRC}/binutils/doc/Makefile.in + @${FIXREFS} ld ${WRKSRC}/ld/ld.texinfo \ + ${WRKSRC}/ld/Makefile.in + @${FIXREFS} gprof ${WRKSRC}/gprof/gprof.texi \ + ${WRKSRC}/gprof/Makefile.in + + @${MV} ${WRKSRC}/gas/doc/as.texinfo \ + ${WRKSRC}/gas/doc/${OURTARGET}-as.texinfo + @${MV} ${WRKSRC}/bfd/doc/bfd.texinfo \ + ${WRKSRC}/bfd/doc/${OURTARGET}-bfd.texinfo + @${MV} ${WRKSRC}/binutils/doc/binutils.texi \ + ${WRKSRC}/binutils/doc/${OURTARGET}-binutils.texi + @${MV} ${WRKSRC}/ld/ld.texinfo \ + ${WRKSRC}/ld/${OURTARGET}-ld.texinfo + @${MV} ${WRKSRC}/gprof/gprof.texi \ + ${WRKSRC}/gprof/${OURTARGET}-gprof.texi + + @${RM} ${WRKSRC}/etc/*.info ${WRKSRC}/etc/*.texi + +# +# Disable install target in some directories +# + @${REINPLACE_CMD} -E -e 's,^(install:).*,\1,' \ + ${WRKSRC}/etc/Makefile.in \ + ${WRKSRC}/libiberty/Makefile.in \ + ${WRKSRC}/opcodes/Makefile.in + +post-install: +# +# Add some plist items (we don't list them directly, since the set varies +# across different targets) +# + @${FIND} -ds ${STAGEDIR}${PREFIX}/${OURTARGET} ! -type d | \ + ${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} + @${FIND} -ds ${STAGEDIR}${PREFIX}/${OURTARGET} -type d | \ + ${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/devel/cross-binutils/distinfo b/devel/cross-binutils/distinfo new file mode 100644 index 000000000000..7d6e93651f6b --- /dev/null +++ b/devel/cross-binutils/distinfo @@ -0,0 +1,4 @@ +SHA256 (binutils-2.23.2.tar.bz2) = fe914e56fed7a9ec2eb45274b1f2e14b0d8b4f41906a5194eac6883cfe5c1097 +SIZE (binutils-2.23.2.tar.bz2) = 21440347 +SHA256 (binutils-2.23.2-rtems4.11-20130326.diff) = 806c44d2987088b9c4752a769cacff89c495366f8c3222e13fae7622a8ff662f +SIZE (binutils-2.23.2-rtems4.11-20130326.diff) = 7844 diff --git a/devel/cross-binutils/pkg-descr b/devel/cross-binutils/pkg-descr new file mode 100644 index 000000000000..8b5c96777748 --- /dev/null +++ b/devel/cross-binutils/pkg-descr @@ -0,0 +1,12 @@ +GNU binutils for cross-target application development. + +Prerequisite for the GCC cross-compiling environment. + +Use TGTARCH switch to select target architecture, and TGTABI to select ABI. +E.g. the following command will build binutils for rtems on sparc: +% make TGTARCH=sparc TGTABI=rtems + +If you encounter any problems building/using/installing this port, please +make me know. It would help to improve this port in feature. + +WWW: http://sources.redhat.com/binutils/ |