summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-08-12 02:17:23 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-08-12 02:17:23 +0000
commit46b73dafe284bcf8154c7f9447b131270df9d348 (patch)
tree56ac26835644a65f83955f5e4ba35311f04daa16
parent67bd904082ef5d5b647342f107e19f1d89f04fe3 (diff)
downloadpkgsrc-46b73dafe284bcf8154c7f9447b131270df9d348.tar.gz
generate the ldscripts portion of the PLIST dynamically for NetBSD. This
is because that part varies for different platforms. For example, on i386 you get elf.... and alpha gives elf64.... fixes packaging/PLIST problems noted on recent alpha bulk builds.
-rw-r--r--devel/binutils/Makefile8
-rw-r--r--devel/binutils/PLIST13
2 files changed, 8 insertions, 13 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index d455fcd7489..08a46d2fba3 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2002/07/11 16:09:36 agc Exp $
+# $NetBSD: Makefile,v 1.3 2002/08/12 02:17:23 dmcmahill Exp $
#
DISTNAME= binutils-2.11.2
@@ -17,6 +17,12 @@ USE_BUILDLINK_ONLY= YES
.if ${OPSYS} == "NetBSD"
PATCHFILES= binutils-NetBSD-diff-20020418.patch.bz2
PATCH_SITES= ${MASTER_SITE_LOCAL}
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC ${PKGDIR}/PLIST
+
+post-install:
+ ${FIND} ${PREFIX}/${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print | \
+ ${SORT} -r | ${SED} 's;${PREFIX}/;;g' > ${WRKDIR}/PLIST_DYNAMIC
+
.elif ${OPSYS} == "SunOS"
PLIST_SRC= ${PKGDIR}/PLIST.${OPSYS}
.endif
diff --git a/devel/binutils/PLIST b/devel/binutils/PLIST
index e57c481321d..28ebeb07a85 100644
--- a/devel/binutils/PLIST
+++ b/devel/binutils/PLIST
@@ -1,21 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2002/05/02 12:49:55 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2002/08/12 02:17:23 dmcmahill Exp $
${MACHINE_GNU_PLATFORM}/bin/ar
${MACHINE_GNU_PLATFORM}/bin/as
${MACHINE_GNU_PLATFORM}/bin/ld
${MACHINE_GNU_PLATFORM}/bin/nm
${MACHINE_GNU_PLATFORM}/bin/ranlib
${MACHINE_GNU_PLATFORM}/bin/strip
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/${MACHINE_GNU_ARCH}nbsd.x
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/${MACHINE_GNU_ARCH}nbsd.xbn
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/${MACHINE_GNU_ARCH}nbsd.xn
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/${MACHINE_GNU_ARCH}nbsd.xr
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/${MACHINE_GNU_ARCH}nbsd.xu
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.x
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.xbn
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.xn
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.xr
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.xs
-${MACHINE_GNU_PLATFORM}/lib/ldscripts/elf_${MACHINE_GNU_ARCH}.xu
bin/addr2line
bin/ar
bin/as