~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to bootstrap.macports

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
5
5
# Redistribution and use is allowed according to the terms of the BSD license.
6
6
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
7
#
 
8
# Arguments : $1 : install path '/opt/local' (default).
 
9
#             $2 : build type   'debugfull' to hack (default), 'release' for production.
 
10
#             $3 : target type  'x86_64' for OSX Lion (default), 'i386' for Snow Leopard.
7
11
 
8
12
# set devel env from MacOS-X through MacPorts
9
13
export QTDIR=/opt/local/lib
11
15
export PATH=$QTDIR/bin:$PATH
12
16
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH
13
17
 
14
 
#export VERBOSE=1
15
 
#export CC=gcc4.4
16
 
#export CXX=g++4.4
17
 
 
18
18
# We will work on command line using GNU make
19
19
export MAKEFILES_TYPE='Unix Makefiles'
20
20
 
 
21
INSTALL_PREFIX=$1
 
22
if [ "$INSTALL_PREFIX" = "" ]; then
 
23
        INSTALL_PREFIX=/opt/local
 
24
fi
 
25
 
 
26
BUILD_TYPE=$2
 
27
if [ "$BUILD_TYPE" = "" ]; then
 
28
        BUILD_TYPE=debugfull
 
29
fi
 
30
 
 
31
TARGET_TYPE=$3
 
32
if [ "$TARGET_TYPE" = "" ]; then
 
33
        TARGET_TYPE=x86_64
 
34
fi
 
35
 
 
36
echo "Installing to $INSTALL_PREFIX for target $TARGET_TYPE with build mode $BUILD_TYPE"
 
37
 
21
38
if [ ! -d "build" ]; then
22
39
    mkdir build
23
40
fi
25
42
cd build
26
43
 
27
44
cmake -G "$MAKEFILES_TYPE" . \
28
 
      -DCMAKE_BUILD_TYPE=debugfull \
29
 
      -DCMAKE_INSTALL_PREFIX=/opt/local \
30
 
      -DKDE4_BUILD_TESTS=off \
 
45
      -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
 
46
      -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
 
47
      -DCMAKE_OSX_ARCHITECTURES=${TARGET_TYPE} \
 
48
      -DKDE4_BUILD_TESTS=on \
31
49
      -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=on \
32
50
      -DDIGIKAMSC_COMPILE_DOC=on \
33
 
      -DENABLE_LCMS2=off \
 
51
      -DENABLE_LCMS2=on \
34
52
      -Wno-dev \
35
53
      -DCMAKE_COLOR_MAKEFILE=ON \
36
54
      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
42
60
      -DQT_QT_INCLUDE_DIR=/opt/local/include \
43
61
      -DQT_LIBRARY_DIR=/opt/local/lib \
44
62
      -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake \
45
 
      -DCMAKE_OSX_ARCHITECTURES="x86_64" \
46
63
      ..