Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # $OpenBSD: Makefile,v 1.8 2016/03/04 10:11:22 kirby Exp $
  2. PKG_ARCH = *
  3. COMMENT = lightweight C++ template library for linear algebra
  4. CATEGORIES = math devel
  5. HOMEPAGE = http://eigen.tuxfamily.org/
  6. DIST_SUBDIR = eigen
  7. VERSION = 3.2.2
  8. DISTNAME = ${VERSION}
  9. PKGNAME = eigen3-${VERSION}
  10. WRKDIST = ${WRKDIR}/eigen-eigen-1306d75b4a21
  11. REVISION = 3
  12. MAINTAINER = Vadim Zhukov <zhuk@openbsd.org>
  13. # Mostly MPLv2, also LGPLv2.1, LGPLv2.1+ and BSDL
  14. PERMIT_PACKAGE_CDROM = Yes
  15. MASTER_SITES = http://bitbucket.org/eigen/eigen/get/ \
  16. https://spacehopper.org/mirrors/eigen/
  17. # Many dependencies are only needed for tests
  18. PSEUDO_FLAVORS = test
  19. FLAVOR ?=
  20. # avoid for arch-independent package
  21. WANTLIB- =
  22. BUILD_DEPENDS = devel/sparsehash \
  23. math/suitesparse
  24. RUN_DEPENDS = devel/sparsehash \
  25. math/suitesparse
  26. MODULES = devel/cmake x11/qt4
  27. # Needs Fortran support
  28. USE_NINJA = No
  29. # Unported stuff, mostly needed for tests
  30. CONFIGURE_ARGS = -DCMAKE_DISABLE_FIND_PACKAGE_Adolc=Yes \
  31. -DCMAKE_DISABLE_FIND_PACKAGE_Cholmod=Yes \
  32. -DCMAKE_DISABLE_FIND_PACKAGE_Metis=Yes \
  33. -DCMAKE_DISABLE_FIND_PACKAGE_Pastix=Yes \
  34. -DCMAKE_DISABLE_FIND_PACKAGE_SPQR=Yes \
  35. -DCMAKE_DISABLE_FIND_PACKAGE_Scotch=Yes \
  36. -DCMAKE_DISABLE_FIND_PACKAGE_SuperLU=Yes
  37. .if ${FLAVOR:Mtest}
  38. CONFIGURE_ARGS += -DEIGEN_FAILTEST=Yes
  39. BUILD_DEPENDS += devel/gmp \
  40. devel/mpfr \
  41. graphics/freeglut \
  42. graphics/glew \
  43. math/fftw
  44. CONFIGURE_ENV = CFLAGS="${CFLAGS} -ggdb"
  45. TEST_DEPENDS = shells/bash
  46. .else
  47. NO_TEST = Yes
  48. CONFIGURE_ARGS += -DEIGEN_FAILTEST=No \
  49. -DCMAKE_DISABLE_FIND_PACKAGE_FFTW=Yes \
  50. -DCMAKE_DISABLE_FIND_PACKAGE_GLEW=Yes \
  51. -DCMAKE_DISABLE_FIND_PACKAGE_GLUT=Yes \
  52. -DCMAKE_DISABLE_FIND_PACKAGE_GMP=Yes \
  53. -DCMAKE_DISABLE_FIND_PACKAGE_MPFR=Yes
  54. .endif
  55. SEPARATE_BUILD = flavored
  56. TEST_TARGET = check
  57. .include <bsd.port.mk>