mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
e59c88cece
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from GCC 5.4 to GCC 6.4 under most circumstances. 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, c++11-lib, c++11-lang, c++14-lang, c++0x, c11, or gcc-c++11-lib. PR: 219275
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# Created by: Pedro Giffuni
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Ipopt
|
|
PORTVERSION= 3.12.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.coin-or.org/download/source/Ipopt/ \
|
|
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/:metis \
|
|
http://mumps.enseeiht.fr/:mumps
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
metis-4.0.3.tar.gz:metis MUMPS_4.10.0.tar.gz:mumps
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Software package for large-scale nonlinear optimization
|
|
|
|
LICENSE= EPL
|
|
|
|
USES= blaslapack fortran libtool pathfix pkgconfig tar:tgz
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
TEST_TARGET= test
|
|
INSTALL_TARGET= install-strip
|
|
|
|
CONFIGURE_ENV+= PKG_CONFIG_PATH=${PREFIX}/libdata/pkgconfig \
|
|
CXX="${CXX} -B${LOCALBASE}/bin"
|
|
CONFIGURE_ARGS= --with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \
|
|
--with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib"
|
|
|
|
CXXFLAGS+= -ffast-math
|
|
|
|
OPTIONS_DEFINE= DEBUG DOCS
|
|
PORTDOCS= *
|
|
|
|
DEBUG_CXXFLAGS= -fomit-frame-pointer
|
|
|
|
post-extract:
|
|
@(${ECHO} "Extracting Metis and Mumps ThirdParty libraries ..." )
|
|
@(cd ${WRKSRC}/ThirdParty/Metis && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/metis-4.0.3.tar.gz ${EXTRACT_AFTER_ARGS});
|
|
@(${MV} ${WRKSRC}/ThirdParty/Metis/metis-4.0.? ${WRKSRC}/ThirdParty/Metis/metis-4.0);
|
|
@(cd ${WRKSRC}/ThirdParty/Mumps && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/MUMPS_4.10.0.tar.gz ${EXTRACT_AFTER_ARGS});
|
|
@(${MV} ${WRKSRC}/ThirdParty/Mumps/MUMPS_4.10.0 ${WRKSRC}/ThirdParty/Mumps/MUMPS);
|
|
|
|
pre-patch:
|
|
@(cd ${WRKSRC}/ThirdParty/Mumps && ${PATCH} -p0 < mumps.patch && ${PATCH} -p0 < mumps_mpi.patch )
|
|
@(${MV} ${WRKSRC}/ThirdParty/Mumps/MUMPS/libseq/mpi.h ${WRKSRC}/ThirdParty/Mumps/MUMPS/libseq/mumps_mpi.h);
|
|
|
|
post-install-DOCS-off:
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/coin
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Ipopt/doc/documentation.pdf\
|
|
${STAGEDIR}${DOCSDIR}
|
|
${MV} ${STAGEDIR}${PREFIX}/share/coin/doc ${STAGEDIR}${DOCSDIR}
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/coin
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
regression-test:
|
|
(cd ${WRKSRC}; ${MAKE_CMD} test)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|