summaryrefslogtreecommitdiff
path: root/math/nlopt/Makefile
blob: 6727e7966b85f3360b5a23311202c018eeffdbc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Rainer Hurling <rhurlin@gwdg.de>
# $FreeBSD$

PORTNAME=	nlopt
PORTVERSION=	2.4.2
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	http://ab-initio.mit.edu/nlopt/

MAINTAINER=	rhurlin@gwdg.de
COMMENT=	Nonlinear optimization library

LICENSE=	LGPL21 MIT
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libgmp.so:math/gmp \
		libguile-2.0.so:lang/guile2
BUILD_DEPENDS=	swig3.0:devel/swig30 \
		${PYTHON_PKGNAMEPREFIX}numpy>=1.9.1,1:math/py-numpy
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.9.1,1:math/py-numpy

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared
CONFIGURE_ENV=	SWIG="${LOCALBASE}/bin/swig3.0"

USES=		autoreconf compiler:features libtool pathfix \
		pkgconfig python:2
USE_LDCONFIG=	yes

INSTALL_TARGET=	install-strip

.include <bsd.port.mk>