1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/math/ecos/Makefile
Yuri Victorovich cd43e5fd83 math/ecos: Update 2.0.7 -> 2.0.8
Reported by:	portscout
2020-10-27 01:52:31 +00:00

42 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= ecos
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.8
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>