From fcd23ac208367111567286974b5d171d58189e94 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 31 Jan 2004 11:25:31 +0000 Subject: bl3ify, and clean up Makefile for whitespace. --- devel/binutils/Makefile | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'devel/binutils') diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index b4ff4a6ca9d..ffa8ade329c 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -1,5 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2003/09/19 13:00:43 wiz Exp $ -# +# $NetBSD: Makefile,v 1.18 2004/01/31 11:25:31 jlam Exp $ DISTNAME= binutils-2.14 PKGNAME= binutils-2.14.0.0 @@ -10,16 +9,17 @@ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.gnu.org/directory/binutils.html COMMENT= GNU binary utilities -GNU_CONFIGURE= YES -USE_BUILDLINK2= YES -USE_MAKEINFO= YES -USE_PKGLOCALEDIR= YES +CONFLICTS= avr-binutils<2.13.2.1nb1 + +USE_BUILDLINK3= yes +USE_PKGLOCALEDIR= yes +USE_MAKEINFO= yes TEXINFO_REQD= 4.0 +GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib' - -CONFLICTS= avr-binutils<2.13.2.1nb1 +BINUTILS_PREFIX= ${PREFIX}/${MACHINE_GNU_PLATFORM} PLIST_SRC= ${PKGDIR}/PLIST.common PLIST_SRC+= ${WRKDIR}/PLIST_DYNAMIC @@ -29,15 +29,18 @@ INFO_FILES= as.info bfd.info binutils.info gprof.info ld.info # Prevent the need to run texi2pod.pl and pod2man hence # the need for perl as build dependency. +# post-configure: - cd ${WRKSRC}; \ - for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi \ - gas/doc/as.1; do \ - ${TOUCH} $${f}; \ - done +.for _file_ in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi gas/doc/as.1 + if [ -f ${WRKSRC}/${_file_} ]; then \ + ${TOUCH} ${WRKSRC}/${_file_}; \ + fi +.endfor post-install: - ${FIND} ${PREFIX}/${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print | \ - ${SORT} -r | ${SED} 's;${PREFIX}/;;g' > ${WRKDIR}/PLIST_DYNAMIC + ${FIND} ${BINUTILS_PREFIX}/lib/ldscripts -type f -print \ + | ${SORT} -r \ + | ${SED} 's;${PREFIX}/;;g' \ + > ${WRKDIR}/PLIST_DYNAMIC .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3