Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.17 2017/04/10 11:46:22 sthen Exp $
  2. BROKEN-mips64 = ICE on Interval_nt.h:98
  3. COMMENT = Computational Geometry Algorithms Library
  4. # when updating this port, don't just change the version number here.
  5. # MASTER_SITES needs to be adapted for every new tarball.
  6. # See https://gforge.inria.fr/frs/?group_id=52 for files index.
  7. DISTNAME = CGAL-4.6.3
  8. MASTER_SITES = https://gforge.inria.fr/frs/download.php/file/35139/
  9. PKGNAME = ${DISTNAME:L}
  10. REVISION = 0
  11. EPOCH = 0
  12. SHARED_LIBS = CGAL 1.0 \
  13. CGAL_Core 1.0 \
  14. CGAL_ImageIO 1.0 \
  15. CGAL_Qt4 1.0
  16. CATEGORIES = math
  17. HOMEPAGE = http://www.cgal.org/
  18. # mix of LGPLv2.1 and QPL; see http://www.cgal.org/license.html
  19. PERMIT_PACKAGE_CDROM = Yes
  20. WANTLIB += GL GLU boost_system-mt boost_thread-mt gmp m mpfr pthread
  21. WANTLIB += boost_atomic-mt boost_chrono-mt boost_date_time-mt
  22. WANTLIB += ${LIBCXX} z lib/qt4/QtGui lib/qt4/QtOpenGL lib/qt4/QtSvg
  23. EXTRACT_SUFX = .tar.xz
  24. MODULES = devel/cmake \
  25. x11/qt4
  26. BIULD_DEPENDS = math/eigen3
  27. LIB_DEPENDS = devel/boost \
  28. devel/gmp \
  29. devel/mpfr
  30. CXXFLAGS += -I${X11BASE}/include
  31. CONFIGURE_ARGS += -DCGAL_INSTALL_MAN_DIR="man/man1" \
  32. -DCGAL_INSTALL_DOC_DIR="share/doc/cgal"
  33. CONFIGURE_ENV = LDFLAGS="-L${X11BASE}/lib"
  34. NO_TEST = Yes
  35. post-extract:
  36. rm ${WRKSRC}/cmake/modules/FindBLAS.cmake \
  37. ${WRKSRC}/cmake/modules/FindLAPACK.cmake \
  38. ${WRKSRC}/cmake/modules/FindOpenGL.cmake \
  39. ${WRKSRC}/scripts/cgal_make_macosx_app
  40. .include <bsd.port.mk>