1 |
# $Header: /magellan-cvs/smage/include/kde4.sminc,v 1.16 2008/04/05 08:24:39 niro Exp $ |
# $Id$ |
2 |
|
|
3 |
sminclude mtools cmake |
sminclude mtools cmake qt4 |
4 |
|
|
5 |
## some global vars ## |
## some global vars ## |
|
export QTDIR=/opt/qt4 |
|
6 |
export KDEDIR=/opt/kde4 |
export KDEDIR=/opt/kde4 |
7 |
export KDECONFDIR=/etc/kde4 |
export KDECONFDIR=/etc/kde4 |
8 |
export QT_PLUGIN_PATH=${KDEDIR}/$(mlibdir)/kde4/plugins |
export QT_PLUGIN_PATH=${KDEDIR}/$(mlibdir)/kde4/plugins |
25 |
|
|
26 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
27 |
>= x11-libs/libXt-1 |
>= x11-libs/libXt-1 |
28 |
>= x11-libs/libXinerama-1 |
>= x11-libs/libXinerama-1" |
|
>= x11-libs/qt4-4.3.0" |
|
29 |
|
|
30 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
31 |
>= dev-util/cmake-2.4.7 |
>= dev-util/cmake-2.4.7 |
54 |
# disabled, seems to be broken atm |
# disabled, seems to be broken atm |
55 |
# # use --enable-final only on i*86 |
# # use --enable-final only on i*86 |
56 |
# [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} -DKDE4_ENABLE_FINAL=ON" |
# [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} -DKDE4_ENABLE_FINAL=ON" |
57 |
|
configure_opts="${configure_opts} -DCMAKE_BUILD_TYPE=Release" |
58 |
|
|
59 |
|
# use full rpath on non /usr installations |
60 |
|
[[ ${KDEDIR} != /usr ]] && configure_opts="${configure_opts} -DKDE4_USE_ALWAYS_FULL_RPATH=ON" |
61 |
|
|
62 |
# add commandline given arguments |
# add commandline given arguments |
63 |
configure_opts="${configure_opts} $@" |
configure_opts="${configure_opts} $@" |
71 |
|
|
72 |
cmake_configure \ |
cmake_configure \ |
73 |
-DCMAKE_INSTALL_PREFIX=${PREFIX:-${KDEDIR}} \ |
-DCMAKE_INSTALL_PREFIX=${PREFIX:-${KDEDIR}} \ |
74 |
|
-DSYSCONF_INSTALL_DIR=${PREFIX:-${KDECONFDIR}} \ |
75 |
-DLIB_INSTALL_DIR=${PREFIX:-${KDEDIR}/$(mlibdir)} \ |
-DLIB_INSTALL_DIR=${PREFIX:-${KDEDIR}/$(mlibdir)} \ |
76 |
-DKDE4_USE_ALWAYS_FULL_RPATH=ON \ |
-DKDE4_DBUS_INTERFACES_DIR=${PREFIX:-"/usr/share/dbus-1/interfaces/"} \ |
77 |
|
-DKDE4_DBUS_SERVICES_DIR=${PREFIX:-"/usr/share/dbus-1/services/"} \ |
78 |
-DKDE4_ENABLE_FPIE=ON \ |
-DKDE4_ENABLE_FPIE=ON \ |
79 |
-DKDE4_BUILD_TESTS=OFF \ |
-DKDE4_BUILD_TESTS=OFF \ |
80 |
-DKDE4_ENABLE_HTMLHANDBOOK=ON \ |
-DKDE4_ENABLE_HTMLHANDBOOK=ON \ |