forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgal-toolfile.spec
42 lines (36 loc) · 1.01 KB
/
cgal-toolfile.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
### RPM external cgal-toolfile 1.0
Requires: cgal
%prep
%build
%install
mkdir -p %{i}/etc/scram.d
# CGAL Core
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/cgal.xml
<tool name="cgal" version="@TOOL_VERSION@">
<info url="http://www.cgal.org/"/>
<lib name="CGAL_Core"/>
<lib name="CGAL"/>
<client>
<environment name="CGAL_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CGAL_BASE/lib"/>
<environment name="INCLUDE" default="$CGAL_BASE/include"/>
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="root_cxxdefaults"/>
<use name="zlib"/>
<use name="boost_system"/>
<use name="gmp"/>
<use name="mpfr"/>
</tool>
EOF_TOOLFILE
# CGAL ImageIO (brings libSM from X11)
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/cgalimageio.xml
<tool name="cgalimageio" version="@TOOL_VERSION@">
<info url="http://www.cgal.org/"/>
<lib name="CGAL_ImageIO"/>
<use name="zlib"/>
<use name="boost_system"/>
<use name="cgal"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post