File: configure

package info (click to toggle)
scribus 1.4.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 246,704 kB
  • ctags: 25,243
  • sloc: cpp: 272,543; xml: 15,558; ansic: 3,438; python: 3,427; makefile: 1,160; perl: 94; sh: 41
file content (62 lines) | stat: -rwxr-xr-x 2,303 bytes parent folder | download | duplicates (10)
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
#!/bin/sh
# CB: Based on http://websvn.kde.org/trunk/KDE/kdelibs/configure
# Scribus rev 0.1 - remove all but the prefix echoing for now

# Internal variables.
alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
CMAKEFLAGS=
srcdir="."

# Get command line options. We use getopt to "break them down into nice, digestible particles".
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 "$@"`
test $# -lt 1  && exit 1
while test $# -gt 0 
do
  case "$1" in
    -h|--help) echo "$help"; exit;;
    -V|--version) cmake --version; exit;;
       --srcdir) srcdir="$2"; shift;;
       --prefix) prefix="$2"; shift;;
       --bindir) bindir="$2"; shift;;
       --libdir) libdir="$2"; shift;;
       --includedir) includedir="$2"; shift;;
    --) shift; break;;
  esac
  shift
done

# Set up CMake flags.

# Set prefix
if test -n "$prefix"; then
  CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_INSTALL_PREFIX:PATH=$prefix"
fi
# Set bindir.
# if test -n "$bindir"; then
#   CMAKEFLAGS="$CMAKEFLAGS -DBIN_INSTALL_DIR:PATH=$bindir"
# fi
# Set libdir.
# if test -n "$libdir"; then
#   CMAKEFLAGS="$CMAKEFLAGS -DLIB_INSTALL_DIR:PATH=$libdir"
# fi
# Set includedir.
# if test -n "$includedir"; then
#   CMAKEFLAGS="$CMAKEFLAGS -DINCLUDE_INSTALL_DIR:PATH=$includedir"
# fi

# print info.
echo ""
echo "Scribus uses the CMake (http://www.cmake.org) buildsystem instead of configure."
echo "CMake uses different options than configure, but some have direct equivalents:"
echo "   <srcdir>           : the source directory"
echo "   --prefix=<dir>     : -DCMAKE_INSTALL_PREFIX:PATH=<dir>"
# echo "   --bindir=<dir>     : -DBIN_INSTALL_DIR:PATH=<dir>"
# echo "   --includedir=<dir> : -DINCLUDE_INSTALL_DIR:PATH=<dir>"
# echo "   --libdir=<dir>     : -DLIB_INSTALL_DIR:PATH=<dir>"
echo "Once CMake has run successfully, you can use \"make edit_cache\" to view and modify all settings."
# echo "For more information visit \"http://techbase.kde.org/Development/Tutorials/CMake#Run_CMake\""
echo ""
echo "Your current configure options translate more or less to:"
echo "   cmake$CMAKEFLAGS $srcdir ; make ; make install"
echo ""