math/qposases: Use openblas for linear algebra; Add the 'test' target
This commit is contained in:
parent
64a4de2ab9
commit
a0ef6f23f0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487088
1 changed files with 17 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
PORTNAME= qpOASES
|
PORTNAME= qpOASES
|
||||||
DISTVERSION= 3.2.1
|
DISTVERSION= 3.2.1
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME}/
|
MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME}/
|
||||||
PKGNAMEPREFIX= coin-or-
|
PKGNAMEPREFIX= coin-or-
|
||||||
|
@ -12,10 +13,25 @@ COMMENT= Library for online active set strategy quadratic programming problems
|
||||||
LICENSE= LGPL21
|
LICENSE= LGPL21
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
USES= cmake:outsource tar:tgz
|
LIB_DEPENDS= libopenblas.so:math/openblas
|
||||||
|
|
||||||
|
USES= cmake:outsource fortran tar:tgz
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
CMAKE_ON= BUILD_SHARED_LIBS
|
CMAKE_ON= BUILD_SHARED_LIBS
|
||||||
CMAKE_OFF= QPOASES_BUILD_EXAMPLES
|
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 <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Reference in a new issue