forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgal.spec
69 lines (57 loc) · 1.67 KB
/
cgal.spec
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### RPM external cgal 4.2
Source: https://gforge.inria.fr/frs/download.php/32360/%{n}-%{realversion}.tar.bz2
BuildRequires: cmake gmp-static mpfr-static
Requires: boost zlib
%if "%{?cms_cxx:set}" != "set"
%define cms_cxx g++
%endif
%if "%{?cms_cxxflags:set}" != "set"
%define cms_cxxflags -std=c++11
%endif
%define drop_files %{i}/{share,bin} %{i}/lib/CGAL
%prep
%setup -n CGAL-%{realversion}
%build
export MPFR_LIB_DIR="${MPFR_STATIC_ROOT}/lib"
export MPFR_INC_DIR="${MPFR_STATIC_ROOT}/include"
export GMP_LIB_DIR="${GMP_STATIC_ROOT}/lib"
export GMP_INC_DIR="${GMP_STATIC_ROOT}/include"
cmake . \
-DCMAKE_CXX_COMPILER:STRING="%{cms_cxx}" \
-DCMAKE_CXX_FLAGS:STRING="%{cms_cxxflags}" \
-DCMAKE_INSTALL_PREFIX:PATH="%{i}" \
-DCMAKE_SKIP_RPATH:BOOL=YES \
-DWITH_BLAS:BOOL=OFF \
-DWITH_CGAL_Core:BOOL=ON \
-DWITH_CGAL_ImageIO:BOOL=ON \
-DWITH_CGAL_Qt3:BOOL=OFF \
-DWITH_CGAL_Qt4:BOOL=OFF \
-DWITH_Coin3D:BOOL=OFF \
-DWITH_ESBTL:BOOL=OFF \
-DWITH_Eigen3:BOOL=OFF \
-DWITH_GMP:BOOL=ON \
-DWITH_GMPXX:BOOL=OFF \
-DWITH_IPE:BOOL=OFF \
-DWITH_LAPACK:BOOL=OFF \
-DWITH_LEDA:BOOL=OFF \
-DWITH_MPFI:BOOL=OFF \
-DWITH_MPFR:BOOL=ON \
-DWITH_NTL:BOOL=OFF \
-DWITH_OpenGL:BOOL=OFF \
-DWITH_OpenNL:BOOL=OFF \
-DWITH_QGLViewer:BOOL=OFF \
-DWITH_RS:BOOL=OFF \
-DWITH_RS3:BOOL=OFF \
-DWITH_TAUCS:BOOL=OFF \
-DWITH_ZLIB:BOOL=ON \
-DWITH_demos:BOOL=OFF \
-DWITH_examples:BOOL=OFF \
-DZLIB_ROOT="${ZLIB_ROOT}" \
-DCGAL_ENABLE_PRECONFIG:BOOL=NO \
-DCGAL_IGNORE_PRECONFIGURED_GMP:BOOL=YES \
-DCGAL_IGNORE_PRECONFIGURED_MPFR:BOOL=YES \
-DBoost_NO_SYSTEM_PATHS:BOOL=TRUE \
-DBOOST_ROOT:PATH="${BOOST_ROOT}"
make VERBOSE=1
%install
make install VERBOSE=1