summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-07-04 17:16:32 +0000
committerjschauma <jschauma@pkgsrc.org>2004-07-04 17:16:32 +0000
commit88efc6e97686793c30354e98e72b06353533cac3 (patch)
treeef8a58a1cd700076c23cd33f8760e3f3b63b8770
parentbbbefe1a978808c434f67892e948ac1da0c6b2ae (diff)
downloadpkgsrc-88efc6e97686793c30354e98e72b06353533cac3.tar.gz
Apply patch provided by Georg Schwarz in PR pkg/26157:
binutils does not build gprof on all platforms.
-rw-r--r--devel/binutils/Makefile16
-rw-r--r--devel/binutils/PLIST.common20
2 files changed, 24 insertions, 12 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 5ffab091d7e..06cff129342 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/06/30 16:18:03 shannonjr Exp $
+# $NetBSD: Makefile,v 1.21 2004/07/04 17:16:32 jschauma Exp $
DISTNAME= binutils-2.15
PKGNAME= binutils-2.15.0.0
@@ -26,7 +26,19 @@ PLIST_SRC= ${PKGDIR}/PLIST.common
PLIST_SRC+= ${WRKDIR}/PLIST_DYNAMIC
PLIST_SRC+= ${PKGDIR}/PLIST.common_end
-INFO_FILES= as.info bfd.info binutils.info gprof.info ld.info
+INFO_FILES= as.info bfd.info binutils.info ld.info
+
+# gprof (XXX: and others?) can not be built on all platforms
+#
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "IRIX"
+NO_GPROF= "@comment "
+.else
+NO_GPROF= ""
+INFO_FILES+= gprof.info
+.endif
+
+PLIST_SUBST+= NO_GPROF=${NO_GPROF}
# Prevent the need to run texi2pod.pl and pod2man hence
# the need for perl as build dependency.
diff --git a/devel/binutils/PLIST.common b/devel/binutils/PLIST.common
index 1846a5c6af6..03550b41da1 100644
--- a/devel/binutils/PLIST.common
+++ b/devel/binutils/PLIST.common
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.6 2004/02/13 08:26:03 seb Exp $
+@comment $NetBSD: PLIST.common,v 1.7 2004/07/04 17:16:32 jschauma Exp $
${MACHINE_GNU_PLATFORM}/bin/ar
${MACHINE_GNU_PLATFORM}/bin/as
${MACHINE_GNU_PLATFORM}/bin/ld
@@ -7,38 +7,38 @@ ${MACHINE_GNU_PLATFORM}/bin/ranlib
${MACHINE_GNU_PLATFORM}/bin/strip
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/binutils.mo
-${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/ld.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/binutils.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gas.mo
-${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/ld.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/binutils.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gas.mo
-${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/ld.mo
${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/opcodes.mo
-${PKGLOCALEDIR}/locale/id/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/id/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/id/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/binutils.mo
-${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/binutils.mo
-${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/ld.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/bfd.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/binutils.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gas.mo
-${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gprof.mo
+${NO_GPROF}${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gprof.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/ld.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/opcodes.mo
${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/bfd.mo
@@ -47,7 +47,7 @@ bin/addr2line
bin/ar
bin/as
bin/c++filt
-bin/gprof
+${NO_GPROF}bin/gprof
bin/ld
bin/nm
bin/objcopy
@@ -72,7 +72,7 @@ man/man1/ar.1
man/man1/as.1
man/man1/c++filt.1
man/man1/dlltool.1
-man/man1/gprof.1
+${NO_GPROF}man/man1/gprof.1
man/man1/ld.1
man/man1/nlmconv.1
man/man1/nm.1