1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/math/ecos/Makefile
Yuri Victorovich 92c37d00e9 math/ecos: Update 2.0.6 -> 2.0.7
Port changes:
* Add the 'test' target
* Add the 'demos' target that runs the supplied demo problems
* Add to description
* Update WWW

Reported by:	portscout
2018-11-18 19:59:45 +00:00

41 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= ecos
DISTVERSION= 2.0.7
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Lightweight conic solver for second-order cone programming
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= embotech
USE_LDCONFIG= yes
ALL_TARGET= shared
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/ecos
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/ecos
${INSTALL_LIB} ${WRKSRC}/libecos.so ${STAGEDIR}${PREFIX}/lib
do-test: # some tests are known to fail: https://github.com/embotech/ecos/issues/170
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} test && \
${ECHO} "===> Running ${PORTNAME} tests: ecostester" && \
(./ecostester || true) && \
${ECHO} "===> Running ${PORTNAME} tests: ecos_bb_test" && \
./ecos_bb_test
demos: build # runs the demo problems
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} demo && \
./runecos && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} runecosexp && \
./runecosexp
.include <bsd.port.mk>