pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/binutils bl3ify, and clean up Makefile for white...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a336f76953c4
branches:  trunk
changeset: 467394:a336f76953c4
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jan 31 11:25:31 2004 +0000

description:
bl3ify, and clean up Makefile for whitespace.

diffstat:

 devel/binutils/Makefile |  33 ++++++++++++++++++---------------
 1 files changed, 18 insertions(+), 15 deletions(-)

diffs (60 lines):

diff -r e3474bcc6e1d -r a336f76953c4 devel/binutils/Makefile
--- a/devel/binutils/Makefile   Sat Jan 31 07:07:33 2004 +0000
+++ b/devel/binutils/Makefile   Sat Jan 31 11:25:31 2004 +0000
@@ -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 @@
 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 @@
 
 # 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"



Home | Main Index | Thread Index | Old Index