From 34f69a85cf19c32d18113d20a0b9fd7a8a248286 Mon Sep 17 00:00:00 2001 From: mef Date: Sun, 16 Jun 2013 20:33:17 +0000 Subject: - 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 --- cross/h8300-elf-binutils/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cross/h8300-elf-binutils') 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" -- cgit v1.2.3