Revision: | 1.19 |
Committed: | Thu Apr 9 19:57:25 2009 UTC (16 years ago) by dlange |
Branch: | MAIN |
CVS Tags: | CMSSW_3_1_6, bhFor316v0, CMSSW_3_1_5, bhFor315v0, bhFor314v0, CMSSW_3_2_7_onlpatch6_ONLINE, for327op6, CMSSW_3_2_7_onlpatch5_ONLINE, CMSSW_3_2_7_onlpatch4_ONLINE, sm327op4, CMSSW_3_2_8, sm091012a, CMSSW_3_2_7_onlpatch3_ONLINE, eskFor328, sm091007a, CMSSW_3_1_4, CMSSW_3_2_7_onlpatch2_ONLINE, sm090928a, CMSSW_3_1_3, CMSSW_3_2_7_onlpatch1_ONLINE, CMSSW_3_2_7_ONLINE, sm090923a, sm090922a, CMSSW_3_2_7, pe20090921d-ports, pe20090921d-for33X, pe20090921c-ports, pe20090921c-for33X, pe20090921b-for33X, pe20090921a-ports, CMSSW_3_3_0_pre4, apFor330pre4v0, eskFor327, pe20090918a-ports, pe20090912a-ports-xdaq, pe20090911a-ports-xdaq, CMSSW_3_3_0_pre3, apFor330pre3v0, pe20090907a-ports, pe20090907a-for33X, CMSSW_3_3_0_pre2, apFor330pre2v1, apFor330pre2v0, CMSSW_3_2_6, pe20090904a-ports, pe20090904a-for33X, pe20090903b-for33X, eskFor326, pe20090903b-ports, pe20090903a-ports, pe20090903-for33X, CMSSW_3_3_0_pre1, CMSSW_3_2_1_onlpatch6_ONLINE, sm090829a, esk090827, pe20090827a-ports, pe20090827a-33X, pe20090826a-33X, CMSSW_3_2_1_onlpatch5_ONLINE, pe20090826a-ports, sm090826a, CMSSW_3_2_5, smFor325v0, eskFor325, CMSSW_3_2_1_onlpatch4_ONLINE, sm090818a, CMSSW_3_2_4_ONLINE, sm090813e, CMSSW_3_2_4_patch1, CMSSW_3_2_4, sm090813d, sm090813c, sm090813b, sm324p1a, sm090813a, CMSSW_3_2_1_onlpatch3_ONLINE, sm090810a, CMSSW_3_2_1_onlpatch2_ONLINE, sm090806a, CMSSW_3_2_3, apFor323v1, apFor323v0, DQMGUI_5_0_2, DQMGUI_5_0_1, DQMGUI_5_0_0, CMSSW_3_2_1_onlpatch1_ONLINE, CMSSW_3_2_2_patch2, apFor321onlp1v1, apFor321onlp1v0, apFor322patch2v0, CMSSW_3_2_2_patch1, apFor322pa1v0, CMSSW_3_2_2, CMSSW_3_1_2, CMSSW_3_2_1-432, apFor322v0, dl090723, pe20090722b-31Xports-432, pe20090722a-31Xports-432, CMSSW_3_2_1_ONLINE, CMSSW_3_2_1, sm090721b, sm090721a, apFor321v0, sm090720b, sm090720a, apFor320onlv1, apFor320onlv0, CMSSW_3_2_0, apFor320v1, apFor320v0, CMSSW_3_1_1_patch1, sm090716a_off, CMSSW_3_1_1_onlpatch3_ONLINE, sm090716a, CMSSW_3_1_1_onlpatch2_ONLINE, sm090715c, sm090715b, sm090715a, CMSSW_3_ONLINE_BOOTSTRAP, sm090709a, CMSSW_3_1_1_onlpatch1_ONLINE, sm090708g, CMSSW_3_1_1_ONLINE, CMSSW_3_1_1_reallyThisTime, sm090708f, sm090708e, sm090708d, sm090708c, sm090708b, CMSSW_3_1_0_ONLINE2, sm090708a, CMSSW_3_1_1, dl090707, pe20090707c-31Xports-432, pe20090707b-31Xports-432, pe20090707a-31Xports-432, pe20090706b-31Xports-432, pe20090706a-31Xports-432, CMSSW_3_1_0_onlpatch1_ONLINE, sm090703a, CMSSW_3_1_0_patch1, pe20090701a-31Xports-432, CMSSW_3_1_0_ONLINE, sm090701b, CMSSW_3_1_0, sm090701a, CMSSW_3_1_0_pre11, dl090623, CMSSW_3_1_0_pre10_ONLINE, sm090621b, sm090621a, sm090620b, sm090620a, sm090619e, sm090619d, sm090619c, sm090619b, sm090619a, sm090618a, CMSSW_3_1_0_pre10-432, pe20090616a-31Xports-432, pe20090615a-31Xports-432, CMSSW_3_1_0_pre10, dl090611, CMSSW_3_1_0_pre9, pe20090611c-31Xports-432, pe20090611b-31Xports-432, pe20090611a-31Xports-432, pe20090610d-31Xports-432, pe20090610c-31Xports-432, pe20090610b-31Xports-432, pe20090610a-31Xports-432, pe20090604a-31Xports-432, CMSSW_3_1_0_pre8, pe20090526a-31Xports-432, pe20090525b-31Xports-432, pe20090525a-31Xports-432, dl090520t2, dl090520, CMSSW_3_1_0_pre7, pe20090514b-31Xports-432, dl090514t3, dl090514t2, pe20090514a-31Xports-432, dl090514, pe20090512a-31Xports-432, pe20090511a-31Xports-432, dl090509, dl090504gcc41, pe20090505b-31Xports-432, pe20090505a-31Xports-432, dl090504, pe20090504a-31Xports-432, CMSSW_3_1_0_pre6, dl090425, dl090421, CMSSW_3_1_0_pre5, dl090416, pe20090414a-31Xports-432, dl090410, dl090409t2, dl090409 |
Changes since 1.18: | +59 -19 lines |
Log Message: | moving to qt4 and friends - blowing away the head of soqt.spec as it does not work and no answer to if it should or not |
# | User | Rev | Content |
---|---|---|---|
1 | dlange | 1.19 | ### RPM external soqt 1.3.0 |
2 | # 1.3.0-tgs, 1.3.0-coin (default: coin) | ||
3 | # FIXME: make type part of installation location! | ||
4 | %define soqttype %(echo %realversion | sed 's/[-0-9.]*//') | ||
5 | %define soqtversion %(echo %realversion | sed 's/-.*//') | ||
6 | %if "%soqttype" == "" | ||
7 | %define type coin | ||
8 | %else | ||
9 | %define type %{soqttype} | ||
10 | %endif | ||
11 | # define tgspath /some/path | ||
12 | # define qtpath /some/path | ||
13 | |||
14 | elmer | 1.18 | Requires: qt |
15 | dlange | 1.19 | %if "%type" == "tgs" |
16 | Requires: tgsinventorfix | ||
17 | %else | ||
18 | eulisse | 1.1 | Requires: coin |
19 | dlange | 1.19 | %endif |
20 | |||
21 | Source: ftp://ftp.coin3d.org/pub/coin/src/all/SoQt-%{soqtversion}.tar.gz | ||
22 | eulisse | 1.1 | # FIXME: forget about the patch for the time being. |
23 | # I need to ask lassi where to find it. | ||
24 | eulisse | 1.3 | Patch: soqt |
25 | eulisse | 1.1 | |
26 | %prep | ||
27 | dlange | 1.19 | %setup -n SoQt-%{soqtversion} |
28 | eulisse | 1.4 | %patch0 |
29 | eulisse | 1.1 | |
30 | %build | ||
31 | dlange | 1.19 | case $(uname) in |
32 | Darwin ) threads= cfgflags="-without-framework --without-x" ;; | ||
33 | * ) threads=-pthread cfgflags= ;; | ||
34 | eulisse | 1.1 | esac |
35 | |||
36 | dlange | 1.19 | # Allow Qt location to be overridden from RPM command line |
37 | %if "%{?qtpath:set}" == "set" | ||
38 | QT_ROOT="%qtpath" | ||
39 | export QT_ROOT | ||
40 | %endif | ||
41 | |||
42 | case "%type" in | ||
43 | tgs ) | ||
44 | [ X"%tgspath" = X ] && { echo "%%tgspath not defined" 1>&2; exit 1; } | ||
45 | |||
46 | # FIXME: OpenGL home? (-L, --with-opengl=...) | ||
47 | # FIXME: KCC/Linux needs -D__ELF__ -lz -lm | ||
48 | # FIXME: KCC/Solaris needs -lm | ||
49 | # FIXME: KCC/IRIX needs -lm; CC=$(CXX) CFLAGS=$(CFLAGS) (can't link C++ with KCC --c) | ||
50 | # FIXME: Merge CFLAGS/CXXFLAGS to CC/CXX because of abi-changing meaning; zero out the flags | ||
51 | # FIXME: Need -DENABLE_NLS -DEHAVE_GETTEXT for GCC 3.x on linuxen? | ||
52 | # FIXME: Need --enable-exceptions? | ||
53 | # FIXME: Need MAKE=...? | ||
54 | # FIXME: Need -pthread / --enable-threads? | ||
55 | ./configure --prefix=%i \ | ||
56 | --with-inventor=%tgspath --without-coin \ | ||
57 | --with-qt=$QT_ROOT --disable-dependency-tracking \ | ||
58 | --disable-libtool-lock $cfgflags \ | ||
59 | LDFLAGS="-L%tgspath" CXX="c++ $threads" \ | ||
60 | LIBS="-L$TGSINVENTORFIX_ROOT/lib -lTGSInventorFix" ;; | ||
61 | |||
62 | coin ) | ||
63 | ./configure --prefix=%i --with-coin=$COIN_ROOT \ | ||
64 | --with-qt=$QT_ROOT --disable-dependency-tracking \ | ||
65 | --disable-libtool-lock $cfgflags \ | ||
66 | CXX="c++ $threads" ;; | ||
67 | |||
68 | * ) | ||
69 | echo "unknown soqt build type %type" 1>&2 | ||
70 | exit 1 ;; | ||
71 | esac | ||
72 | eulisse | 1.2 | make %makeprocesses |
73 | muzaffar | 1.12 | |
74 | %install | ||
75 | make install | ||
76 | # SCRAM ToolBox toolfile | ||
77 | mkdir -p %i/etc/scram.d | ||
78 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n | ||
79 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
80 | <Tool name=SoQt version=%v> | ||
81 | <info url=http://www.coin3d.org></info> | ||
82 | <Lib name=SoQt> | ||
83 | <Client> | ||
84 | <Environment name=SOQT_BASE default="%i"></Environment> | ||
85 | <Environment name=LIBDIR default="$SOQT_BASE/lib"></Environment> | ||
86 | <Environment name=INCLUDE default="$SOQT_BASE/include"></Environment> | ||
87 | </Client> | ||
88 | <use name=OpenInventor> | ||
89 | elmer | 1.18 | <use name=Qt> |
90 | muzaffar | 1.12 | </Tool> |
91 | EOF_TOOLFILE | ||
92 | |||
93 | %post | ||
94 | %{relocateConfig}etc/scram.d/%n |