mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# 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>
|