diff options
author | mef <mef@pkgsrc.org> | 2013-06-16 20:33:17 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2013-06-16 20:33:17 +0000 |
commit | bbaf57ec132d87e1de890555e414019f51e80698 (patch) | |
tree | 3a95e3c4fdaefc1b917a13ae8c4521c82587ee36 | |
parent | c1550a1ea3b5f91e5347ba2070c5a7ee0050ba71 (diff) | |
download | pkgsrc-bbaf57ec132d87e1de890555e414019f51e80698.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
-rw-r--r-- | cross/h8300-elf-binutils/Makefile | 14 |
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" |