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

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

Revision 1.22, Sat Apr 6 20:27:17 2013 UTC (10 years, 11 months ago) by rodent
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, 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, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Changes since 1.21: +2 -2 lines

Resolves:
"INFO_FILES should be set to YES or yes."
"Packages that install info files should set INFO_FILES."
Makefile and PLIST warning, respectively.

# $NetBSD: Makefile,v 1.22 2013/04/06 20:27:17 rodent Exp $

DISTNAME=	binutils-2.12.1
PKGNAME=	cross-h8300-hms-binutils-2.12.1
PKGREVISION=	1
CATEGORIES=	cross
MASTER_SITES=	ftp://ftp.gnu.org/gnu/binutils/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	# empty
COMMENT=	Cross utility for h8300-hms

H8300_PREFIX=	${PREFIX}/libexec/cross-h8300-hms

WRKSRC=		${WRKDIR}/objdir
USE_TOOLS+=	gmake makeinfo
HAS_CONFIGURE=	yes

CONFIGURE_ARGS+=	--prefix=${H8300_PREFIX:Q}
CONFIGURE_ARGS+=	--infodir=${H8300_PREFIX}/binutils --target=h8300-hms
CONFIGURE_SCRIPT=	${SRCDIR}/configure
SRCDIR=			${WRKDIR}/${DISTNAME}
BUILD_TARGET=		CFLAGS="-O2 -fomit-frame-pointer" all
INFO_FILES=	yes

INSTALLATION_DIRS+=	bin ${H8300_PREFIX}

post-extract:
	${MKDIR} ${WRKSRC}

pre-configure:
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${SRCDIR}
	${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${SRCDIR}


post-install:
	for f in h8300-hms-size      h8300-hms-objdump h8300-hms-ar \
		 h8300-hms-strings   h8300-hms-ranlib  h8300-hms-objcopy \
		 h8300-hms-srconv    h8300-hms-sysdump h8300-hms-coffdump \
		 h8300-hms-addr2line h8300-hms-readelf h8300-hms-nm \
		 h8300-hms-strip     h8300-hms-c++filt h8300-hms-as \
		 h8300-hms-gasp      h8300-hms-ld ; do \
		${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

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