blob: 8c6e4fc5dcdd524de4f2f249f107cdab18352b1f (
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
40
41
42
43
44
45
46
47
|
PORTNAME= dsdp
DISTVERSION= 5.8
PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= https://www.mcs.anl.gov/hs/software/${PORTNAME:tu}/
DISTNAME= ${PORTNAME:tu}${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Implementation of interior-point method for semidefinite programming
LICENSE= DSDP_LICENSE
LICENSE_NAME= DSDP License
LICENSE_FILE= ${WRKSRC}/dsdp-license
LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell # do anything as long as the original copyright notice is retained
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
USES= fortran gmake localbase:ldflags
USE_LDCONFIG= yes
ALL_TARGET= all oshared all oshared
BINARY_ALIAS= make=${GMAKE} gcc=${CC}
MAKE_ENV= DSDPROOT=${WRKSRC} SH_LD="${CC} -shared"
CFLAGS+= -fPIC
PLIST_FILES= bin/dsdp5 \
include/dsdp/dsdp5.h \
include/dsdp/dsdpbasictypes.h \
include/dsdp/dsdplapack.h \
include/dsdp/dsdpmem.h \
include/dsdp/dsdpsys.h \
lib/libdsdp.so
do-build: # the build fails to build all binaries without being called twice due to makefile convolution
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/dsdp
${INSTALL_PROGRAM} ${WRKSRC}/bin/dsdp5 ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/lib/libdsdp.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/dsdp
.include <bsd.port.mk>
|