blob: 201715c27ac3886f92eb5dde70b8f5ee9331409b (
plain)
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
34
35
36
37
38
39
|
# Created by: ijliao
PORTNAME= libctl
DISTVERSION= 4.5.0
CATEGORIES= science math
MASTER_SITES= https://github.com/NanoComp/libctl/releases/download/v${DISTVERSION}/
MAINTAINER= devel@stasyan.com
COMMENT= Control Language Library
LICENSE= GPLv2
BROKEN_sparc64= does not build
LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded \
libguile-2.2.so:lang/guile2
USES= fortran libtool pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib -lm
OPTIONS_DEFINE= NLOPT DOCS EXAMPLES
OPTIONS_DEFAULT= NLOPT
NLOPT_DESC= Use NLopt, an external NonLinear OPTimizer
NLOPT_LIB_DEPENDS= libnlopt.so:math/nlopt
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libctl.so.7.3.0
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libctlgeom.so.7.3.0
@${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/.libs/example
.include <bsd.port.mk>
|