# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
# $FreeBSD: tags/RELEASE_11_0_0/math/cminpack/Makefile 416242 2016-06-01 13:15:36Z mat $

PORTNAME=	cminpack
PORTVERSION=	1.3.5
DISTVERSIONPREFIX=	v
CATEGORIES=	math

MAINTAINER=	fernando.apesteguia@gmail.com
COMMENT=	Solving nonlinear equations and nonlinear least squares problems

LICENSE_FILE=	${WRKSRC}/CopyrightMINPACK.txt

USES=		cmake:outsource

USE_GITHUB=	yes
GH_ACCOUNT=	devernay

OPTIONS_DEFINE=	EXAMPLES

post-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "*.[ch] testdata" \
		${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>
