comparison dev/cmake/cmake.sh @ 549:bad483aace64

vanilla: use prefix= instead
author David Demelier <markand@malikania.fr>
date Sun, 23 Jun 2019 15:13:10 +0200
parents c6c29dc90899
children 137f5b5c5ce3
comparison
equal deleted inserted replaced
548:b1d040632d36 549:bad483aace64
29 core/bzip2 29 core/bzip2
30 core/xz 30 core/xz
31 core/libarchive" 31 core/libarchive"
32 PKGOPTIONS="QT5" 32 PKGOPTIONS="QT5"
33 33
34 : ${CC:=clang}
35 : ${CFLAGS:=-O2}
36 : ${CXX:=clang++}
37 : ${CXXFLAGS:=-O2}
38 : ${LDFLAGS:=}
39 : ${QT5:=no}
40
34 if [ "$QT5" = "yes" ]; then 41 if [ "$QT5" = "yes" ]; then
35 # only cmake-gui depends on Qt. 42 # only cmake-gui depends on Qt.
36 PKGDEPENDS="lib/qt:optional $PKGDEPENDS" 43 PKGDEPENDS="lib/qt:optional $PKGDEPENDS"
37 with_qt="--qt-gui" 44 with_qt="--qt-gui"
38 else 45 else
44 rm -rf $PKGNAME-$PKGVERSION 51 rm -rf $PKGNAME-$PKGVERSION
45 tar xvaf $PKGNAME-$PKGVERSION.tar.gz 52 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
46 pushd $PKGNAME-$PKGVERSION 53 pushd $PKGNAME-$PKGVERSION
47 54
48 ./configure \ 55 ./configure \
49 --prefix=/ \ 56 CC="$CC" \
57 CFLAGS="$CFLAGS -I/include/ncurses" \
58 CXX="$CXX" \
59 CXXFLAGS="$CXXFLAGS -I/include/ncurses" \
60 LDFLAGS="$LDFLAGS" \
61 --prefix= \
50 --docdir=/share/doc/cmake \ 62 --docdir=/share/doc/cmake \
51 --system-libs \ 63 --system-libs \
52 $with_qt 64 $with_qt
53 make 65 make
54 make install DESTDIR=$DESTDIR 66 make install DESTDIR=$DESTDIR