Subversion Repositories Scribus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12311 cbradney 1
#!/bin/sh
2
# CB: Based on http://websvn.kde.org/trunk/KDE/kdelibs/configure
3
# Scribus rev 0.1 - remove all but the prefix echoing for now
4
 
5
# Internal variables.
6
alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
7
CMAKEFLAGS=
8
srcdir="."
9
 
10
# Get command line options. We use getopt to "break them down into nice, digestible particles".
11
set -- `getopt -l "srcdir:,prefix:,eprefix:,bindir:,sbindir:,libexecdir:,sysconfdir:,libdir:,includedir:,oldincludedir:,datarootdir:,datadir:,infodir:,localedir:,mandir:,docdir:,htmldir:,dvidir:,pdfdir:,psdir:,quiet,silent,version,help,run" hVqn "$@"`
12
test $# -lt 1  && exit 1
13
while test $# -gt 0
14
do
15
  case "$1" in
16
    -h|--help) echo "$help"; exit;;
17
    -V|--version) cmake --version; exit;;
18
       --srcdir) srcdir="$2"; shift;;
19
       --prefix) prefix="$2"; shift;;
20
       --bindir) bindir="$2"; shift;;
21
       --libdir) libdir="$2"; shift;;
22
       --includedir) includedir="$2"; shift;;
23
    --) shift; break;;
24
  esac
25
  shift
26
done
27
 
28
# Set up CMake flags.
29
 
30
# Set prefix
31
if test -n "$prefix"; then
32
  CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_INSTALL_PREFIX:PATH=$prefix"
33
fi
34
# Set bindir.
35
# if test -n "$bindir"; then
36
#   CMAKEFLAGS="$CMAKEFLAGS -DBIN_INSTALL_DIR:PATH=$bindir"
37
# fi
38
# Set libdir.
39
# if test -n "$libdir"; then
40
#   CMAKEFLAGS="$CMAKEFLAGS -DLIB_INSTALL_DIR:PATH=$libdir"
41
# fi
42
# Set includedir.
43
# if test -n "$includedir"; then
44
#   CMAKEFLAGS="$CMAKEFLAGS -DINCLUDE_INSTALL_DIR:PATH=$includedir"
45
# fi
46
 
47
# print info.
48
echo ""
49
echo "Scribus uses the CMake (http://www.cmake.org) buildsystem instead of configure."
50
echo "CMake uses different options than configure, but some have direct equivalents:"
51
echo "   <srcdir>           : the source directory"
52
echo "   --prefix=<dir>     : -DCMAKE_INSTALL_PREFIX:PATH=<dir>"
53
# echo "   --bindir=<dir>     : -DBIN_INSTALL_DIR:PATH=<dir>"
54
# echo "   --includedir=<dir> : -DINCLUDE_INSTALL_DIR:PATH=<dir>"
55
# echo "   --libdir=<dir>     : -DLIB_INSTALL_DIR:PATH=<dir>"
56
echo "Once CMake has run successfully, you can use \"make edit_cache\" to view and modify all settings."
57
# echo "For more information visit \"http://techbase.kde.org/Development/Tutorials/CMake#Run_CMake\""
58
echo ""
59
echo "Your current configure options translate more or less to:"
60
echo "   cmake$CMAKEFLAGS $srcdir ; make ; make install"
61
echo ""
62