From nobody Sun Dec 25 20:45:08 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NgCbT2JtDz1HXCL; Sun, 25 Dec 2022 20:45:09 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NgCbT0G2nz3pcj; Sun, 25 Dec 2022 20:45:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672001109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+uWxO8W+lWmctN62Bw+jrgV9IR7KqdUAvjN2zBFlqa8=; b=hRf6C/DbwxCkqJF5BwhQ/i5ec0Lsjr3kHE72ffkZzo0eJUWXyhIEO15L4vJeyxTX/V91ez uIqOXu1a6Uml/fIyr2jy0Ix7vcbuyhFgX7WlTMea+QzzI/lvDZ5V67ITIibDNb6lAcmCID jmzdgEnOaiRlW6dnj1EHQ4PVaPVZOhhMPMrUlgILM3OD2nLOguyCRsVaMBadIxNeRGCRiC wkawgVhh92YFhEh7cgTD92LYILEmayuHCB9r88dOVcopUUbqmhPWhLsCkCpCBmERyAzmXg t6zxhgekkNvG0GPkdRbnQXtTji4bivgiwiMQdX1zUibsQKxwplM5wV3eijPPtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672001109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+uWxO8W+lWmctN62Bw+jrgV9IR7KqdUAvjN2zBFlqa8=; b=aV99yJIoViMyzp/xsTiMsZUFW8LFW1hQxmN22sghLldEPlBoSKkRFzAFr+raPozTjgTIBB 3NDE1Dhox8r/x/Tptb+DTBeLYBrIpjHFPPmjRTFwQ0R/pnzwctseUN2+jrJ//ImzW28AlT ulXQfXVawukXm48e4ax9HhuuuaynyNsg549T98a29x1ndineye0GW2g7JwJ7OhhGDvA8OL tY9IXZYwYfsw1NUwtsLrh94juYYvORWLAO31PPpZa3N2uv3b/n6YD4CGfq5nsHPSIzPf7i hsHUIL1oG62eGKz1LLL7QrqEAkYDQH04RrAKOj8xebfuADmpbt2tEXwdTyda4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672001109; a=rsa-sha256; cv=none; b=R8R425oUjKYTvzulGT9uaD6ihDNgjPwvX7p6JggqPLPKqQs9HxT82rUCggugxo8fTceFuF V21NRXRHS3R/rWqKndBDjAqZmbtkrkfEccRBlPa7brll5BKZKWGagdu6KjwZMAOnsAkRsj Upvl8DYgHptKZI8XmFdcTcHs2Tba5iDLfKUQsdEV+FqFeAORJ5Ywk2JOLkzXYGqLIIjnzU YTYO2EIXW015K5MfRSrPnGBHV/6VBiwQQMpl4kKkabhMsBocKQ3B1wI8OOwpGJ8g0i34zw VbXQunf841UUF8mj8SZoO1j2pgytwdIa/bWBBna0ZMqlF3wi+db1HoUyZLwCLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NgCbS5wxmz14wF; Sun, 25 Dec 2022 20:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BPKj8M6086115; Sun, 25 Dec 2022 20:45:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BPKj8Ej086114; Sun, 25 Dec 2022 20:45:08 GMT (envelope-from git) Date: Sun, 25 Dec 2022 20:45:08 GMT Message-Id: <202212252045.2BPKj8Ej086114@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 8fc85cc71555 - main - misc/opennn: fix build on libomp-less architectures List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8fc85cc715557fd65aca93b86c2d0247bd7e707b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8fc85cc715557fd65aca93b86c2d0247bd7e707b commit 8fc85cc715557fd65aca93b86c2d0247bd7e707b Author: Piotr Kubaj AuthorDate: 2022-12-25 20:44:17 +0000 Commit: Piotr Kubaj CommitDate: 2022-12-25 20:44:17 +0000 misc/opennn: fix build on libomp-less architectures --- misc/opennn/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile index b5a344aa8ede..90319fd8f739 100644 --- a/misc/opennn/Makefile +++ b/misc/opennn/Makefile @@ -11,11 +11,7 @@ WWW= https://www.opennn.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -.if !exists(/usr/include/omp.h) -BROKEN= requires OpenMP support that is missing on this architecture -.endif - -USES= cmake:testing compiler:c++11-lang dos2unix +USES= cmake:testing dos2unix USE_LDCONFIG= yes USE_GITHUB= yes @@ -27,7 +23,16 @@ CMAKE_OFF= OpenNN_BUILD_EXAMPLES OpenNN_BUILD_TESTS CMAKE_TESTING_ON= OpenNN_BUILD_TESTS # some tests fail, see https://github.com/Artelnics/opennn/issues/229 CMAKE_TESTING_TARGET= tests -LDFLAGS+= -lomp -pthread # https://github.com/Artelnics/opennn/issues/182 +LDFLAGS+= -pthread +LDFLAGS_powerpc= -latomic + +.if !exists(/usr/include/omp.h) +LDFLAGS+= -fopenmp +USES+= compiler:gcc-c++11-lib +.else +LDFLAGS+= -lomp # https://github.com/Artelnics/opennn/issues/182 +USES+= compiler:c++11-lang +.endif do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} && ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}