From owner-svn-ports-head@freebsd.org Sun Dec 9 21:26:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4211133158E; Sun, 9 Dec 2018 21:26:02 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59C9C7D3CC; Sun, 9 Dec 2018 21:26:02 +0000 (UTC) (envelope-from yuri@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 34F6016C51; Sun, 9 Dec 2018 21:26:02 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wB9LQ2Xc021506; Sun, 9 Dec 2018 21:26:02 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wB9LQ2u2021505; Sun, 9 Dec 2018 21:26:02 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201812092126.wB9LQ2u2021505@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 9 Dec 2018 21:26:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487088 - head/math/qposases X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/math/qposases X-SVN-Commit-Revision: 487088 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 59C9C7D3CC X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-0.99)[-0.990,0]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 09 Dec 2018 21:26:02 -0000 Author: yuri Date: Sun Dec 9 21:26:01 2018 New Revision: 487088 URL: https://svnweb.freebsd.org/changeset/ports/487088 Log: math/qposases: Use openblas for linear algebra; Add the 'test' target Modified: head/math/qposases/Makefile Modified: head/math/qposases/Makefile ============================================================================== --- head/math/qposases/Makefile Sun Dec 9 21:01:47 2018 (r487087) +++ head/math/qposases/Makefile Sun Dec 9 21:26:01 2018 (r487088) @@ -2,6 +2,7 @@ PORTNAME= qpOASES DISTVERSION= 3.2.1 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME}/ PKGNAMEPREFIX= coin-or- @@ -12,10 +13,25 @@ COMMENT= Library for online active set strategy quadra LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake:outsource tar:tgz +LIB_DEPENDS= libopenblas.so:math/openblas + +USES= cmake:outsource fortran tar:tgz USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= QPOASES_BUILD_EXAMPLES + +LDFLAGS+= ${LOCALBASE}/lib/libopenblas.so + +EXAMPLES= example1 example1a example1b example2 example4 example5 exampleLP qrecipe # there are some other examples. but they need additional files/packages to run + +post-patch: + @truncate -s 0 ${WRKSRC}/src/BLASReplacement.cpp ${WRKSRC}/src/LAPACKReplacement.cpp + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DQPOASES_BUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + for e in ${EXAMPLES}; do ${ECHO} "=== Running example $${e} ===" && ${BUILD_WRKSRC}/bin/$${e}; done .include