freebsd-ports/science/libctl/Makefile
Rainer Hurling e4cddaff02 science/libctl: Update to 4.5.0
Update science/libctl from 3.2.2 to 4.5.0. Over several minor and a major version release there have been important bugfixes and enhancements [1].

[1] https://github.com/NanoComp/libctl/blob/master/NEWS.md

What this patch should do:

- Update from 3.2.2 to 4.5.0
- Change MASTER_SITES to the Github releases URL
- Add LIB_DEPENDS=devel/boehm-gc-threaded and
  libguile-2.2.so:lang/guile2
- 'Bump' library version
- Set option NLOPT default (needed by science/mpb)
- Reorder some Makefile entries
- Update URL in pkg-descr
- Update pkg-plist

PR:		249007
Submitted by:	(maintainer timeout)
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D26992
2020-10-31 15:59:08 +00:00

41 lines
1.0 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
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>