forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgal.mk
27 lines (24 loc) · 1.09 KB
/
cgal.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := cgal
$(PKG)_WEBSITE := https://www.cgal.org/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.5
$(PKG)_CHECKSUM := 40aec3401a8ed57ae6fd5185dfbb6c360b3aa653860407a9add074cf8e007108
$(PKG)_GH_CONF := CGAL/cgal/releases, v
$(PKG)_SUBDIR := CGAL-$($(PKG)_VERSION)
$(PKG)_FILE := CGAL-$($(PKG)_VERSION)-library.tar.xz
$(PKG)_URL := https://github.com/CGAL/cgal/releases/download/v$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc boost gmp mpfr qtbase
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \
-DCGAL_INSTALL_CMAKE_DIR:STRING="lib/CGAL" \
-DCGAL_INSTALL_INC_DIR:STRING="include" \
-DCGAL_INSTALL_DOC_DIR:STRING="share/doc/CGAL-$($(PKG)_VERSION)" \
-DCGAL_INSTALL_BIN_DIR:STRING="bin" \
-DCGAL_Boost_USE_STATIC_LIBS:BOOL=$(CMAKE_STATIC_BOOL) \
-DWITH_OpenGL:BOOL=ON \
-DWITH_ZLIB:BOOL=ON \
-C'$(PWD)/src/cgal-TryRunResults.cmake'
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef