summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-31 11:25:31 +0000
committerjlam <jlam>2004-01-31 11:25:31 +0000
commitdc9131277e9caad689821987864be81609968530 (patch)
tree0d0a067ca36b1eb4c9206157df12fd1d5db26504 /devel
parent19172786eea4a93b7ce894ab0bbd343346c3c543 (diff)
downloadpkgsrc-dc9131277e9caad689821987864be81609968530.tar.gz
bl3ify, and clean up Makefile for whitespace.
Diffstat (limited to 'devel')
-rw-r--r--devel/binutils/Makefile33
1 files changed, 18 insertions, 15 deletions
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"