From owner-svn-ports-head@freebsd.org Fri Jan 1 15:01:29 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 65A504CAD85; Fri, 1 Jan 2021 15:01:29 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D6pBd2VpPz4vCV; Fri, 1 Jan 2021 15:01:29 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4915E2465C; Fri, 1 Jan 2021 15:01:29 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 101F1TEE079510; Fri, 1 Jan 2021 15:01:29 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 101F1T2d079509; Fri, 1 Jan 2021 15:01:29 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202101011501.101F1T2d079509@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Fri, 1 Jan 2021 15:01:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r559831 - head/math/openblas X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/openblas X-SVN-Commit-Revision: 559831 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jan 2021 15:01:29 -0000 Author: pkubaj Date: Fri Jan 1 15:01:28 2021 New Revision: 559831 URL: https://svnweb.freebsd.org/changeset/ports/559831 Log: math/openblas: fix build on powerpc64le Use GCC to build, like on powerpc64. Since LE supports DYNAMIC_ARCH, add it. Correct check for 64-bit architectures. Approved by: tier 2 blanket Modified: head/math/openblas/Makefile Modified: head/math/openblas/Makefile ============================================================================== --- head/math/openblas/Makefile Fri Jan 1 14:59:36 2021 (r559830) +++ head/math/openblas/Makefile Fri Jan 1 15:01:28 2021 (r559831) @@ -49,6 +49,7 @@ OPTIONS_SUB= yes .if defined(BATCH) || defined(PACKAGE_BUILDING) OPTIONS_DEFAULT_i386= DYNAMIC_ARCH OPTIONS_DEFAULT_amd64= DYNAMIC_ARCH +OPTIONS_DEFAULT_powerpc64le= DYNAMIC_ARCH .endif DYNAMIC_ARCH_DESC= Support multiple CPU types on i386 and amd64 @@ -77,9 +78,13 @@ USE_GCC= yes TARGET_CPU_ARCH= PPCG4 .endif +.if ${ARCH} == powerpc64le +USE_GCC= yes +.endif + MAXTHREADS?= 64 -.if ! ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) +.if ! ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "powerpc64le") MANUAL_PACKAGE_BUILD= Optimizes for the build machine. .endif @@ -124,7 +129,7 @@ post-patch: .if ${PORT_OPTIONS:MOPENMP} @${ECHO} USE_OPENMP=1 >> ${WRKSRC}/Makefile.rule .endif -.if ${ARCH:M*64} == "" +.if ${ARCH:M*64*} == "" @${ECHO} BINARY=32 >> ${WRKSRC}/Makefile.rule .else @${ECHO} BINARY=64 >> ${WRKSRC}/Makefile.rule