Edit

IABSD.fr/ports/math/eigen3/Makefile

Branch :

  • Show log

    Commit

  • Author : rsadowski
    Date : 2024-11-07 20:56:52
    Hash : 2b38990d
    Message : Update lapack to 3.12.0 This update merges math/{cblas,blas} into math/lapack and drops the documentation, otherwise the dependency on doxygen creates a loop. (discovered by jca@, merci). The whole update simplifies the situation (requested by sthen@) Bump all consumers Feedback from many, survived in a bulk build and no objections from steven@ (maintainer)

  • math/eigen3/Makefile
  • PKG_ARCH =	*
    
    COMMENT =	lightweight C++ template library for linear algebra
    
    CATEGORIES =	math devel
    
    HOMEPAGE =	https://eigen.tuxfamily.org
    
    VERSION =	3.4.0
    DISTNAME =	eigen-${VERSION}
    PKGNAME =	eigen3-${VERSION}
    REVISION =	0
    
    # Mostly MPLv2, also LGPLv2.1, LGPLv2.1+ and BSDL
    PERMIT_PACKAGE =	Yes
    
    SITES =		https://gitlab.com/libeigen/eigen/-/archive/${VERSION}/
    
    # Many dependencies are only needed for tests
    PSEUDO_FLAVORS =	test
    FLAVOR ?=
    
    # avoid for arch-independent package
    WANTLIB- =
    
    BUILD_DEPENDS =		devel/sparsehash \
    			math/lapack \
    			math/suitesparse
    
    RUN_DEPENDS =		devel/sparsehash \
    			math/suitesparse
    
    MODULES =		devel/cmake
    
    # Unported stuff, mostly needed for tests
    CONFIGURE_ARGS =	-DBLAS_DIR:PATH="${LOCALBASE}" \
    			-DCMAKE_DISABLE_FIND_PACKAGE_Adolc=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_Cholmod=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_SPQR=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_SuperLU=Yes \
    			-DEIGEN_TEST_CXX11=ON \
    			-DEIGEN_TEST_NOQT=ON
    
    .if ${FLAVOR:Mtest}
    CONFIGURE_ARGS +=	-DEIGEN_FAILTEST=Yes
    BUILD_DEPENDS +=	devel/boost \
    			devel/gmp \
    			devel/mpfr \
    			graphics/freeglut \
    			graphics/glew \
    			math/fftw
    TEST_DEPENDS =		shells/bash
    .else
    NO_TEST =		Yes
    CONFIGURE_ARGS +=	-DEIGEN_FAILTEST=No \
    			-DCMAKE_DISABLE_FIND_PACKAGE_FFTW=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_GLEW=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_GLUT=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_GMP=Yes \
    			-DCMAKE_DISABLE_FIND_PACKAGE_MPFR=Yes
    .endif
    
    SEPARATE_BUILD =	flavored
    TEST_TARGET =		check
    
    .include <bsd.port.mk>