Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 68 lines (51 sloc) 1.67 KB
#! /bin/sh
set -xe
PKG=tulip
QUAZIP_VERSION=0.7.3
QUAZIP_SRC=https://sourceforge.net/projects/quazip/files/quazip/${QUAZIP_VERSION}/quazip-${QUAZIP_VERSION}.tar.gz
TULIP_VERSION=5.2.0
TULIP_SRC=https://sourceforge.net/projects/auber/files/tulip/tulip-${TULIP_VERSION}/tulip-${TULIP_VERSION}_src.tar.gz
BUILD=0
PREFIX=/pkg/$PKG-$TULIP_VERSION-$BUILD
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
LD_LIBRARY_PATH=$PREFIX/lib\${LD_LIBRARY_PATH:+":\$LD_LIBRARY_PATH"}
export PATH
export LD_LIBRARY_PATH
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
# --- build QUAZIP ---
cd $PREFIX/build
test -e quazip-${QUAZIP_VERSION}.tar.gz || wget $QUAZIP_SRC
test -d quazip-${QUAZIP_VERSION} || tar -xf quazip-${QUAZIP_VERSION}.tar.gz
mkdir -p quazip-${QUAZIP_VERSION}/build
cd quazip-${QUAZIP_VERSION}/build
cmake \
-DCMAKE_PREFIX_PATH=/usr/local/qt5/lib/cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_CXX_FLAGS=-fPIC \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
make -j $(nproc)
# do not install FindQuaZip5.cmake into /usr/share/cmake-3.8
sed -i -e "/file(INSTALL DESTINATION / s,/usr,$PREFIX," cmake_install.cmake
make install
# --- build TULIP ---
cd $PREFIX/build
test -e tulip-${TULIP_VERSION}_src.tar.gz || wget $TULIP_SRC
test -d tulip-${TULIP_VERSION} || tar -xf tulip-${TULIP_VERSION}_src.tar.gz
mkdir -p tulip-${TULIP_VERSION}/build
cd tulip-${TULIP_VERSION}/build
cmake \
-DCMAKE_PREFIX_PATH=/usr/local/qt5/lib/cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DTULIP_USE_QT5=ON \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
make -j $(nproc)
make install
# exit 1 # final barrier, inhibits 'closing' on success.