Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2015 16:58:24 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379449 - head/devel/psptoolchain-binutils
Message-ID:  <201502201658.t1KGwOwU065430@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Fri Feb 20 16:58:23 2015
New Revision: 379449
URL: https://svnweb.freebsd.org/changeset/ports/379449
QAT: https://qat.redports.org/buildarchive/r379449/

Log:
  Fix directory creation so that a armv6-unknown-freebsd directory is created
  instead of an arm-unkonwn-freebsd to be friendlier with freebsd pkg tools.
  
  PR:		197581
  Submitted by:	mikael.urankar@gmail.com
  Approved by:	tphilipp@potion-studios.com (maintainer)

Modified:
  head/devel/psptoolchain-binutils/Makefile

Modified: head/devel/psptoolchain-binutils/Makefile
==============================================================================
--- head/devel/psptoolchain-binutils/Makefile	Fri Feb 20 16:55:50 2015	(r379448)
+++ head/devel/psptoolchain-binutils/Makefile	Fri Feb 20 16:58:23 2015	(r379449)
@@ -18,7 +18,6 @@ USES=		gmake tar:bzip2 libtool
 USE_GCC=	4.8
 
 HAS_CONFIGURE=	yes
-CONFIGURE_TARGET=	${ARCH:S/amd64/x86_64/}-unknown-${OPSYS:tl}${OSREL}
 CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--target="psp" \
 		--enable-install-libbfd \
@@ -27,6 +26,13 @@ CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--mandir=${PREFIX}/man
 PLIST_SUB=	CONFIGURE_TARGET="${CONFIGURE_TARGET}"
 
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET=	${ARCH:S/amd64/x86_64/}-unknown-${OPSYS:tl}${OSREL}
+.elif ${ARCH} == "armv6"
+CONFIGURE_TARGET=	${ARCH:S/armv6/arm/}-unknown-${OPSYS:tl}${OSREL}
+.endif
+
 # Disable installation of .info files and libiberty.
 post-patch:
 	@${REINPLACE_CMD} -E 's/^(install-data-am:)(.*)install-info-am(.*)/\1 \2 \3/' \
@@ -38,4 +44,4 @@ post-patch:
 	@${REINPLACE_CMD} -E 's/^(install:)(.*)/\1#\2/' ${WRKSRC}/libiberty/Makefile.in
 	@${REINPLACE_CMD} -E 's,^(install.*:)(.*)install-info(.*),\1 \2 \3,' ${WRKSRC}/etc/Makefile.in
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502201658.t1KGwOwU065430>