openbsd-ports/math/cgal/Makefile

55 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2014/03/13 21:05:38 sthen Exp $
# vax: no fenv.h support
NOT_FOR_ARCHS = vax
BROKEN-mips64 = ICE on Interval_nt.h:98
COMMENT = Computational Geometry Algorithms Library
# when updating this port, don't just change the version number here.
# MASTER_SITES needs to be adapted for every new tarball.
# See https://gforge.inria.fr/frs/?group_id=52 for files index.
DISTNAME = CGAL-3.8
MASTER_SITES = https://gforge.inria.fr/frs/download.php/28500/
PKGNAME = ${DISTNAME:L}
EPOCH = 0
SHARED_ONLY = Yes
SHARED_LIBS = CGAL 0.0 \
CGAL_Core 0.0 \
CGAL_ImageIO 0.0 \
CGAL_Qt4 0.0
CATEGORIES = math
HOMEPAGE = http://www.cgal.org/
# mix of LGPLv2.1 and QPL; see http://www.cgal.org/license.html
PERMIT_PACKAGE_CDROM = Yes
# m>=5.3 for fenv.h support
WANTLIB = GL GLU ICE SM X11 Xext boost_thread-mt gmp gmpxx \
lib/qt4/QtGui lib/qt4/QtOpenGL m>=5.3 mpfr stdc++ z
MODULES = devel/cmake \
x11/qt4
LIB_DEPENDS = devel/boost \
devel/gmp \
devel/mpfr
CFLAGS += -I${X11BASE}/include
CONFIGURE_ARGS += -DCGAL_INSTALL_MAN_DIR="man/man1"
CONFIGURE_ENV = LDFLAGS="-L${X11BASE}/lib"
post-patch:
rm ${WRKSRC}/cmake/modules/FindBLAS.cmake \
${WRKSRC}/cmake/modules/FindBoost.cmake \
${WRKSRC}/cmake/modules/FindLAPACK.cmake \
${WRKSRC}/cmake/modules/FindOpenGL.cmake \
${WRKSRC}/cmake/modules/FindPackageMessage.cmake \
${WRKSRC}/scripts/cgal_make_macosx_app
.include <bsd.port.mk>