/usr/bin/tulip-config is in libtulip-dev 4.6.0dfsg-2+b5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | #!/bin/bash
thisdir=$(dirname "$0")
if test "$thisdir" = "." ; then
thisdir=$PWD
fi
prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include/
libdir=${prefix}/lib/
sharedir=${prefix}/share
libversion=4.6
libextension=so
plugincxxflags="-fPIC -DPIC"
pluginldflags=-shared
pluginpath=${prefix}/lib/tulip
WINNT=$(sh -c 'uname -s | grep -q MINGW32_NT; echo $?')
MACOSX=$(sh -c 'uname -s | grep -q Darwin; echo $?')
LINUX=$(sh -c 'uname -s | grep -q Linux; echo $?')
# check for MacOS or Windows installation
if [ $MACOSX -eq 0 ] ; then
libextension=dylib
pluginldflags="-bundle -Wl,-bind_at_load -flat_namespace"
if [ -e $(dirname $thisdir)/Frameworks/QtCore ] ; then
# MacOS bundle
includedir=$(dirname $thisdir)/include
libdir=$(dirname $thisdir)/Frameworks
pluginpath=$(dirname $thisdir)/lib/tulip
fi
fi
if [ $WINNT -eq 0 ] ; then
libversion=4.6
libextension=dll
plugincxxflags=-DPIC
if [ -f "$thisdir/../Uninstall.exe" ] ; then
# Windows installation
drive=`echo ${thisdir} | awk -F / '{print $2}'`
ndir=${thisdir/\/$drive\//$drive:/}
if [ -d ${ndir} ]; then
thisdir=${ndir}
fi
includedir=${thisdir}/../include
libdir=${thisdir}/../bin
pluginpath=${thisdir}/../lib/tulip
else
pluginpath=${prefix}/lib/tulip
libdir=${prefix}/bin
fi
fi
usage()
{
cat <<EOF
Usage: tulip-config [OPTIONS]
Options:
--version (return the current version of Tulip)
--libs (return the whole Tulip libs)
--lib_tulip (return the Tulip core lib)
--lib_ogl (return the Tulip OpenGL lib)
--cxxflags (return the Tulip needed cxx flags)
--glincludes (return the OpenGL includes)
--gllibs (return the OpenGL libs)
--plugincxxflags (return the Tulip plugin cxx flags)
--pluginextension (return the plugin file extension)
--pluginldflags (return the plugin loader flags)
--pluginpath (return the path for installation of Tulip plugins)
--qtincludes (return the Qt includes)
--qtlibs (return the Qt libs needed by Tulip)
--sharepath (return the path where share data are installed)
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
OUTPUT=
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
OUTPUT=`echo ${OUTPUT} 4.6.0`
;;
--cxxflags)
OUTPUT=`echo ${OUTPUT} -I${includedir} -DQT_MINOR_REL=8`
;;
--glincludes)
OUTPUT=`echo ${OUTPUT} -I/usr/include`
;;
--gllibs)
OUTPUT=`echo ${OUTPUT} /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGLEW.so `
;;
--libs)
OUTPUT=`echo ${OUTPUT} ${libdir}/libtulip-core-${libversion}.${libextension} ${libdir}/libgzstream-tulip-4.6.${libextension} ${libdir}/libtulip-ogl-${libversion}.${libextension} ${libdir}/libftgl.${libextension} ${libdir}/libtulip-gui-${libversion}.${libextension} ${libdir}/libquazip-tulip-4.6.${libextension} ${libdir}/libqxt-tulip-4.6.${libextension} `
;;
--lib_tulip)
OUTPUT=`echo ${OUTPUT} ${libdir}/libtulip-core-${libversion}.${libextension} ${libdir}/libgzstream-tulip-4.6.${libextension} `
;;
--lib_ogl)
OUTPUT=`echo ${OUTPUT} ${libdir}/libtulip-ogl-${libversion}.${libextension} ${libdir}/libftgl.${libextension}`
;;
--plugincxxflags)
OUTPUT=`echo ${OUTPUT} ${plugincxxflags}`
;;
--pluginldflags)
OUTPUT=`echo ${OUTPUT} ${pluginldflags}`
;;
--pluginextension)
OUTPUT=`echo ${OUTPUT} ${libextension}`
;;
--pluginpath)
OUTPUT=`echo ${OUTPUT} ${pluginpath}`
;;
--qtlibs)
OUTPUT=`echo ${OUTPUT} /usr/lib/x86_64-linux-gnu/libQtCore.so /usr/lib/x86_64-linux-gnu/libQtGui.so /usr/lib/x86_64-linux-gnu/libQtOpenGL.so /usr/lib/x86_64-linux-gnu/libQtXml.so /usr/lib/x86_64-linux-gnu/libQtNetwork.so /usr/lib/x86_64-linux-gnu/libQtWebKit.so `
;;
--qtincludes)
OUTPUT=`echo ${OUTPUT} -I/usr/include/qt4`
;;
--sharepath)
OUTPUT=`echo ${OUTPUT} ${sharedir}`
;;
*)
usage
;;
esac
shift
done
echo ${OUTPUT}
exit 0
|