blob: c89ec28c3863a191323e97a954df335ab8281d76 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
PORTNAME= CoinMP
DISTVERSIONPREFIX= releases/
DISTVERSION= 1.8.4
PORTREVISION= 7
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Optimization library with support for COIN-OR CLP, CBC, and CGL
WWW= https://projects.coin-or.org/CoinMP
LICENSE= CPL
LICENSE_NAME= Common Public License, Version 1.0
LICENSE_FILE= ${WRKSRC}/CoinMP/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libblas.so:math/blas \
libCbc.so:math/cbc \
libCgl.so:math/cgl \
libClp.so:math/clp \
libcoinasl.so:math/asl \
libcoinmumps.so:math/coin-or-mumps \
libCoinUtils.so:math/coinutils \
libnauty.so:math/nauty \
libopenblas.so:math/openblas \
libOsi.so:math/osi
USES= compiler:c++11-lang libtool pathfix pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= coin-or
GH_PROJECT= CoinMP
GNU_CONFIGURE= yes
CXXFLAGS+= -ffast-math
PLIST_FILES= include/coin/CoinMP.h \
include/coin/CoinMPConfig.h \
lib/libCoinMP.so \
lib/libCoinMP.so.1 \
lib/libCoinMP.so.1.8.4 \
libdata/pkgconfig/coinmp.pc
OPTIONS_DEFINE= DOCS FORTRAN GLPK
FORTRAN_DESC= Use BLAS/LAPACK with the Fortran interface
GLPK_DESC= GNU Linear Programming Kit support
PORTDOCS= *
FORTRAN_USES= fortran blaslapack
FORTRAN_CONFIGURE_ON= --with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \
--with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib"
GLPK_LIB_DEPENDS= libglpk.so:math/glpk
GLPK_CONFIGURE_ON= --with-gmpl-incdir=${LOCALBASE}/include \
--with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
GLPK_CONFIGURE_OFF= --disable-glpk-libcheck
INSTALL_TARGET= install-strip
TEST_TARGET= unitTest
post-patch::
@${REINPLACE_CMD} \
-e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \
-e 's|addlibs_DATA = examples/Makefile examples/example.c||g' \
-e 's|DocInstallDir = $$(datadir)/coin/doc/$$(PACKAGE_NAME)|DocInstallDir = $$(datadir)/doc/CoinMP/$$(PACKAGE_NAME)|' \
-e 's| $$(MAKE) $$(AM_MAKEFLAGS) install-data-hook||' \
${WRKSRC}/Makefile.in ${WRKSRC}/CoinMP/Makefile.in
@${REINPLACE_CMD} -e 's|addlibsdir = $$(DESTDIR)$$(datadir)/coin/doc/CoinMP|addlibsdir = |' ${WRKSRC}/CoinMP/Makefile.in
.include <bsd.port.mk>
|