aboutsummaryrefslogtreecommitdiff
path: root/base/binutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'base/binutils/Makefile')
-rw-r--r--base/binutils/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/base/binutils/Makefile b/base/binutils/Makefile
index 7f73a6cf0b4d..e2f07ab5f935 100644
--- a/base/binutils/Makefile
+++ b/base/binutils/Makefile
@@ -8,7 +8,7 @@ VALID_CATEGORIES= base
COMMENT= GNU binary tools for base
MASTERDIR= ${.CURDIR}/../../devel/binutils
-PLIST= ${.CURDIR}/pkg-plist.${ARCH}
+PLIST= ${.CURDIR}/pkg-plist
.if !defined(CROSS_TOOLCHAIN)
.error Please define CROSS_TOOLCHAIN before building
@@ -24,3 +24,25 @@ CONFIGURE_ARGS+= --disable-host-shared
PREFIX= /usr
.include "${MASTERDIR}/Makefile"
+
+.if ${OSVERSION} >= 1100100
+PLIST_SUB+= OBJCOPY="@comment "
+.else
+PLIST_SUB+= OBJCOPY=""
+.endif
+
+.if ${ARCH:Mmips*}
+PLIST_SUB+= MIPS=""
+.else
+PLIST_SUB+= MIPS="@comment "
+.endif
+.if ${ARCH:Mpowerpc*}
+PLIST_SUB+= POWERPC=""
+.else
+PLIST_SUB+= POWERPC="@comment "
+.endif
+.if ${ARCH:Msparc*}
+PLIST_SUB+= SPARC=""
+.else
+PLIST_SUB+= SPARC="@comment "
+.endif