[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / freemint-binutils

File: [cvs.NetBSD.org] / pkgsrc / cross / freemint-binutils / Makefile (download)

Revision 1.3, Thu Oct 30 21:54:03 2014 UTC (5 years, 8 months ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4
Changes since 1.2: +10 -1 lines

PR pkg/49308 'CONFIG_SHELL= ksh' is only necessary for NetBSD-[5-6]* and 6.99.*

# $NetBSD: Makefile,v 1.3 2014/10/30 21:54:03 mef Exp $

DISTNAME=	binutils-2.24
PKGNAME=	cross-freemint-${DISTNAME}
CATEGORIES=	cross
MASTER_SITES=	${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://vincent.riviere.free.fr/soft/m68k-atari-mint/
COMMENT=	Cross binutils for FreeMiNT
LICENSE=	gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3

PATCH_SITES=	http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/
PATCHFILES=	binutils-2.24-mint-20131217.patch.bz2
PATCH_DIST_STRIP=	-p1

FREEMINT_PREFIX=	${PREFIX}/cross-freemint

USE_TOOLS+=	gmake makeinfo
GNU_CONFIGURE=	yes

OBJDIR=			../build
CONFIGURE_DIRS=		${OBJDIR}
CONFIGURE_SCRIPT=	${WRKSRC}/configure
GNU_CONFIGURE_PREFIX=	${FREEMINT_PREFIX}

CONFIGURE_ARGS+=	--disable-werror --target=m68k-atari-mint
INFO_FILES=		yes

INSTALLATION_DIRS+=	bin ${FREEMINT_PREFIX}

# follows to devel/binutils
# PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
	empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
USE_TOOLS+=		ksh
CONFIG_SHELL=		ksh
.endif

pre-configure:
	${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}


post-install:
	for f in m68k-atari-mint-addr2line	m68k-atari-mint-ar \
		 m68k-atari-mint-as		m68k-atari-mint-c++filt \
		 m68k-atari-mint-gprof		m68k-atari-mint-ld \
		 m68k-atari-mint-nm		m68k-atari-mint-objcopy \
		 m68k-atari-mint-objdump	m68k-atari-mint-ranlib \
		 m68k-atari-mint-readelf	m68k-atari-mint-size \
		 m68k-atari-mint-strings	m68k-atari-mint-strip ; do \
		${LN} -s ${FREEMINT_PREFIX}/bin/"$$f" \
		  ${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
	done
# 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}${FREEMINT_PREFIX}/lib/$$d ]; then \
			${MV} ${DESTDIR}${FREEMINT_PREFIX}/lib/$$d \
			      ${DESTDIR}${FREEMINT_PREFIX}/lib/libiberty_binutils.a; \
		break; \
		fi; \
	done

.include "../../mk/bsd.pkg.mk"