ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/soqt.spec
(Generate patch)

Comparing COMP/CMSDIST/soqt.spec (file contents):
Revision 1.1 by eulisse, Thu Feb 23 12:50:39 2006 UTC vs.
Revision 1.27 by eulisse, Mon Sep 6 20:29:42 2010 UTC

# Line 1 | Line 1
1 < ### 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 %v | sed 's/[-0-9.]*//')
5 < %define soqtversion %(echo %v | 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 <
1 > ### RPM external soqt 1.4.1
2   Requires: qt
15 %if "%type" == "tgs"
16 Requires: tgsinventorfix
17 %else
3   Requires: coin
4 < %endif
20 <
21 < Source: ftp://ftp.coin3d.org/pub/coin/src/SoQt-%{soqtversion}.tar.gz
4 > Source: ftp://ftp.coin3d.org/pub/coin/src/all/SoQt-%{realversion}.tar.gz
5   # FIXME: forget about the patch for the time being.
6 < # I need to ask lassi where to find it.
7 < #Patch: soqt
6 > # I need to ask lassi where to find it.
7 > Patch0: soqt
8 > Patch1: soqt-ptr-fix
9  
10   %prep
11 < %setup -n SoQt-%{soqtversion}
12 < #%patch0
11 > %setup -n SoQt-%{realversion}
12 > %patch0
13 > %patch1 -p2
14  
15   %build
16 < case $(uname) in
17 <  Darwin ) threads= cfgflags="-without-framework --without-x" ;;
18 <  * )      threads=-pthread cfgflags= ;;
16 > case %cmsplatf in
17 >  osx*) threads= cfgflags="-without-framework --without-x" ;;
18 >  *)      threads=-pthread cfgflags= ;;
19   esac
20  
21 < # Allow Qt location to be overridden from RPM command line
22 < %if "%{?qtpath:set}" == "set"
23 <  QT_ROOT="%qtpath"
24 <  export QT_ROOT
25 < %endif
26 <
27 < case "%type" in
28 <  tgs )
29 <    [ X"%tgspath" = X ] && { echo "%%tgspath not defined" 1>&2; exit 1; }
30 <
31 <    # FIXME: OpenGL home?  (-L, --with-opengl=...)
32 <    # FIXME: KCC/Linux needs -D__ELF__ -lz -lm
33 <    # FIXME: KCC/Solaris needs -lm
34 <    # FIXME: KCC/IRIX needs -lm; CC=$(CXX) CFLAGS=$(CFLAGS) (can't link C++ with KCC --c)
35 <    # 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 < make
21 > export QTDIR=$QT_ROOT
22 > export CONFIG_QTLIBS="-L$QT_ROOT/lib -L$COIN_ROOT/lib -lQt3Support -lQtCore -lQtGui -lQtOpenGL -lQtDesigner $libs"
23 > export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
24 > export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
25 >
26 > which c++
27 > ./configure --prefix=%i --with-coin=$COIN_ROOT \
28 >            --with-qt=$QT_ROOT --disable-dependency-tracking \
29 >            --disable-libtool-lock $cfgflags \
30 >            CXX="c++ $threads"
31 >
32 > make %makeprocesses
33 >
34 > %install
35 > make install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines