freebsd-ports/science/libctl/Makefile
Rene Ladan c818bdfc82 science/libctl: update to 3.2.2
- use lang/guile2 instead of lang/guile
- add pkgconfig to USES
- add option to use lang/nlopt
- strip libraries

PR:		196175
Submitted by:	Rainer Hurling
Approved by:	maintainer timeout (devel@stasyan.com, 14 days)
2015-01-04 12:56:56 +00:00

38 lines
975 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libctl
PORTVERSION= 3.2.2
CATEGORIES= science math
MASTER_SITES= http://ab-initio.mit.edu/libctl/
MAINTAINER= devel@stasyan.com
COMMENT= Control Language Library
LICENSE= GPLv2
LIB_DEPENDS= libguile-2.0.so:${PORTSDIR}/lang/guile2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
USES= fortran libtool pkgconfig
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib -lm
BROKEN_sparc64= does not build
OPTIONS_DEFINE= NLOPT DOCS EXAMPLES
NLOPT_DESC= Use NLopt, an external NonLinear OPTimizer
NLOPT_LIB_DEPENDS= libnlopt.so:${PORTSDIR}/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.5.0.2
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libctlgeom.so.5.0.2
@${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/.libs/example
.include <bsd.port.mk>