diff options
author | abs <abs> | 2001-01-29 10:25:07 +0000 |
---|---|---|
committer | abs <abs> | 2001-01-29 10:25:07 +0000 |
commit | cd325ea5cdb6a62cd3c900545864d767e59a1f5f (patch) | |
tree | 508046d31410a1714b8dd502771e3e0c7ba9e6e6 /cross/binutils/Makefile | |
parent | c0c96099949e6357451c7f622f25cbbee05ebdaa (diff) | |
download | pkgsrc-cd325ea5cdb6a62cd3c900545864d767e59a1f5f.tar.gz |
Add a 'cross-env' script which helps set up the environment for cross
compiling or similar. Based on various postings and notes from the site.
Diffstat (limited to 'cross/binutils/Makefile')
-rw-r--r-- | cross/binutils/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cross/binutils/Makefile b/cross/binutils/Makefile index 5f1b96246a3..6ad6e82cccc 100644 --- a/cross/binutils/Makefile +++ b/cross/binutils/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.21 2001/01/24 12:13:26 tsutsui Exp $ +# $NetBSD: Makefile,v 1.22 2001/01/29 10:25:07 abs Exp $ # # GNU binutils configured to hold `as many targets as the cross system is # capable of using'. Configures and builds everything except gas, which # gets built at cross-pkg build time (it's target specific). DISTNAME= binutils-2.9.1 -PKGNAME= cross-binutils-2.9.1.1 +PKGNAME= cross-binutils-2.9.1.2 CATEGORIES= cross lang MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} @@ -24,6 +24,8 @@ CONFIGURE_ARGS+= --enable-targets=${ENABLE_TARGETS_LIST} \ MAKE_ARGS+= CFLAGS="${CFLAGS}" ALL_TARGET= all-binutils all-ld +PLIST_SUBST= LOCALBASE=${LOCALBASE} + BINDIR= ${PREFIX}/libexec/binutils # due to /bin/sh restriction, we can accomodate no more archs @@ -67,6 +69,12 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/include/ansidecl.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/bfd/bfd.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/ld/ldscripts/* ${PREFIX}/lib/ldscripts + ${INSTALL_SCRIPT} ${WRKSRC}/cross-env ${BINDIR} + ${LN} -s ${BINDIR}/cross-env ${LOCALBASE}/bin/cross-env + +post-build: + ${SED} -e 's|@@PREFIX@@|${PREFIX}|' < ${FILESDIR}/cross-env > \ + ${WRKSRC}/cross-env .include "../../mk/bsd.pkg.mk" |