summaryrefslogtreecommitdiff
path: root/cross/h8300-elf-binutils
diff options
context:
space:
mode:
authormef <mef>2013-06-16 20:33:17 +0000
committermef <mef>2013-06-16 20:33:17 +0000
commit34f69a85cf19c32d18113d20a0b9fd7a8a248286 (patch)
tree3a95e3c4fdaefc1b917a13ae8c4521c82587ee36 /cross/h8300-elf-binutils
parent68ec56752fb87dcd70613d7a83531c0208d465a6 (diff)
downloadpkgsrc-34f69a85cf19c32d18113d20a0b9fd7a8a248286.tar.gz
- Add LICENSE
- Following tweak on Makefile: PATH differs between clang and gcc, add trick by looking for path-by-path to be adapted to environments. Proposed by dholland@ thanks. Confirmed on following combinations so far. NetBSD/amd64 6.1 gcc-4.5.3 NetBSD/amd64 6.99.21 clang version 3.2 NetBSD/i386 5.2 gcc-4.1.3 NetBSD/macppc 6.1 gcc-4.5.3 DragonFly/i386 3.4.2 gcc-4.7.2
Diffstat (limited to 'cross/h8300-elf-binutils')
-rw-r--r--cross/h8300-elf-binutils/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/cross/h8300-elf-binutils/Makefile b/cross/h8300-elf-binutils/Makefile
index c818a27f449..31925232633 100644
--- a/cross/h8300-elf-binutils/Makefile
+++ b/cross/h8300-elf-binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/05/09 13:47:25 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2013/06/16 20:33:17 mef Exp $
DISTNAME= binutils-2.19.1
PKGNAME= cross-h8300-elf-${DISTNAME}
@@ -9,6 +9,7 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= # empty
COMMENT= Cross utility for h8300-elf
+LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
H8300_PREFIX= ${PREFIX}/cross-h8300-elf
@@ -42,7 +43,14 @@ post-install:
${LN} -s ${H8300_PREFIX}/bin/"$$f" \
${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
done
- ${MV} ${DESTDIR}${H8300_PREFIX}/lib/libiberty.a \
- ${DESTDIR}${H8300_PREFIX}/lib/libiberty_binutils.a
+# copy libiberty.a under the different name from compiler
+# PATH differs between clang and gcc:
+ for d in ${MACHINE_ARCH}/libiberty.a libiberty.a; do \
+ if [ -f ${DESTDIR}${H8300_PREFIX}/lib/$$d ]; then \
+ ${MV} ${DESTDIR}${H8300_PREFIX}/lib/$$d \
+ ${DESTDIR}${H8300_PREFIX}/lib/libiberty_binutils.a; \
+ break; \
+ fi; \
+ done
.include "../../mk/bsd.pkg.mk"