1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/math/dsdp/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

49 lines
1.5 KiB
Makefile

# $FreeBSD$
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>