Remark: this souldn’t be necessary, because the version of the library is the same, but due to many changes between these releases, it is safer this way. PR: 284314
40 lines
869 B
Makefile
40 lines
869 B
Makefile
PORTNAME= cminpack
|
|
PORTVERSION= 1.3.11
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= fernape@FreeBSD.org
|
|
COMMENT= Solving nonlinear equations and nonlinear least squares problems
|
|
WWW= http://devernay.free.fr/hacks/cminpack/
|
|
|
|
LICENSE_FILE= ${WRKSRC}/CopyrightMINPACK.txt
|
|
|
|
USES= blaslapack:openblas cmake localbase
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= devernay
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
CMAKE_OFF= USE_BLAS
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
# libcminpackld is only built on platforms where
|
|
# sizeof(long double) > sizeof(double)
|
|
.if ${ARCH:Mpowerpc*} || ${ARCH:Marmv?}
|
|
PLIST_SUB+= LONG_DOUBLE="@comment "
|
|
.else
|
|
PLIST_SUB+= LONG_DOUBLE=""
|
|
.endif
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "*.[ch] testdata" \
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|