Magellan Linux

Diff of /trunk/include/kde4.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4090 by niro, Wed Nov 18 23:17:22 2009 UTC revision 5394 by niro, Thu May 27 00:03:23 2010 UTC
# Line 6  sminclude mtools cmake qt4 Line 6  sminclude mtools cmake 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
9    export DBUS_SYSTEM_DIR=/usr/share/dbus-1
10    
11  # fixes some compile issues ala "kde-config: command not found"  # fixes some compile issues ala "kde-config: command not found"
12  export PATH="${KDEDIR}/bin:${PATH}"  export PATH="${KDEDIR}/bin:${PATH}"
# Line 25  export KDEDIRS=${KDEDIR} Line 26  export KDEDIRS=${KDEDIR}
26    
27  DEPEND="${DEPEND}  DEPEND="${DEPEND}
28   >= x11-libs/libXt-1   >= x11-libs/libXt-1
29   >= x11-libs/libXinerama-1"   >= x11-libs/libXinerama-1
30     >= x11-libs/qt4-gui-4.5
31     >= x11-libs/qt4-qt3support-4.5
32     >= x11-libs/qt4-script-4.5
33     >= x11-libs/qt4-sql-4.5
34     >= x11-libs/qt4-svg-4.5
35     >= x11-libs/qt4-test-4.5"
36    
37  SDEPEND="${SDEPEND}  SDEPEND="${SDEPEND}
38   >= dev-util/cmake-2.4.7   >= dev-util/cmake-2.4.7
# Line 44  SRC_URI=( Line 51  SRC_URI=(
51  )  )
52    
53  # exported functions and variables for mage-file  # exported functions and variables for mage-file
54  SPECIAL_VARS="KDEDIR"  SPECIAL_VARS="${SPECIAL_VARS} KDEDIR"
55  SPECIAL_FUNCTIONS="kde4_buildsycoca kde4_postinstall kde4_postremove"  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kde4_buildsycoca kde4_postinstall kde4_postremove"
56    
57  kde4_configure()  kde4_configure()
58  {  {
# Line 53  kde4_configure() Line 60  kde4_configure()
60    
61  # disabled, seems to be broken atm  # disabled, seems to be broken atm
62  # # use --enable-final only on i*86  # # use --enable-final only on i*86
63  # [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} -DKDE4_ENABLE_FINAL=ON"  # [[ ${ARCH} = i*86 ]] && configure_opts+=" -DKDE4_ENABLE_FINAL=ON"
64   configure_opts="${configure_opts} -DCMAKE_BUILD_TYPE=Release"   configure_opts+=" -DCMAKE_BUILD_TYPE=Release"
65    
66   # use full rpath on non /usr installations   # use full rpath on non /usr installations
67   [[ ${KDEDIR} != /usr ]] && configure_opts="${configure_opts} -DKDE4_USE_ALWAYS_FULL_RPATH=ON"   [[ ${KDEDIR} != /usr ]] && configure_opts+=" -DKDE4_USE_ALWAYS_FULL_RPATH=ON"
68    
69   # add akonadi dbus dir   # add akonadi dbus dir
70   if [[ ${PNAME/4/} = akonadi ]] || [[ ${PNAME/4/} = kdepim-runtime ]]   if [[ ${PNAME/4/} = akonadi ]] || [[ ${PNAME/4/} = kdepim-runtime ]]
71   then   then
72   configure_opts="${configure_opts} -DAKONADI_DBUS_INTERFACES_DIR=${PREFIX:-/usr/share/dbus-1/interfaces/}"   configure_opts+=" -DAKONADI_DBUS_INTERFACES_DIR=${DBUS_SYSTEM_DIR}/interfaces/"
73   configure_opts="${configure_opts} -DAKONADI_DBUS_SERVICES_DIR=${PREFIX:-/usr/share/dbus-1/services/}"   configure_opts+=" -DAKONADI_DBUS_SERVICES_DIR=${DBUS_SYSTEM_DIR}/services/"
74   fi   fi
75    
76   # add commandline given arguments   # add commandline given arguments
77   configure_opts="${configure_opts} $@"   configure_opts+=" $@"
78    
79   # remove build dir if exist   # remove build dir if exist
80   [[ -d ${BUILDDIR}/build ]] && rm -rf ${BUILDDIR}/build   [[ -d ${BUILDDIR}/build ]] && rm -rf ${BUILDDIR}/build
# Line 77  kde4_configure() Line 84  kde4_configure()
84   cd ${BUILDDIR}/build   cd ${BUILDDIR}/build
85    
86   cmake_configure \   cmake_configure \
87   -DCMAKE_INSTALL_PREFIX=${PREFIX:-${KDEDIR}} \   -DCMAKE_INSTALL_PREFIX=${KDEDIR} \
88   -DSYSCONF_INSTALL_DIR=${PREFIX:-${KDECONFDIR}} \   -DSYSCONF_INSTALL_DIR=${KDECONFDIR} \
89   -DLIB_INSTALL_DIR=${PREFIX:-${KDEDIR}/$(mlibdir)} \   -DLIB_INSTALL_DIR=${KDEDIR}/$(mlibdir) \
90   -DKDE4_DBUS_INTERFACES_DIR=${PREFIX:-"/usr/share/dbus-1/interfaces/"} \   -DDBUS_INTERFACES_INSTALL_DIR=${DBUS_SYSTEM_DIR}/interfaces/ \
91   -DKDE4_DBUS_SERVICES_DIR=${PREFIX:-"/usr/share/dbus-1/services/"} \   -DDBUS_SERVICES_INSTALL_DIR=${DBUS_SYSTEM_DIR}/services/ \
92     -DKDE4_DBUS_INTERFACES_DIR=${DBUS_SYSTEM_DIR}/interfaces/ \
93     -DKDE4_DBUS_SERVICES_DIR=${DBUS_SYSTEM_DIR}/services/ \
94   -DKDE4_ENABLE_FPIE=ON \   -DKDE4_ENABLE_FPIE=ON \
95   -DKDE4_BUILD_TESTS=OFF \   -DKDE4_BUILD_TESTS=OFF \
96   -DKDE4_ENABLE_HTMLHANDBOOK=ON \   -DKDE4_ENABLE_HTMLHANDBOOK=ON \
# Line 107  kde4_src_install() Line 116  kde4_src_install()
116   cd ${BUILDDIR}/build   cd ${BUILDDIR}/build
117   mmake DESTDIR=${BINDIR} ${KDE4_MAKE_OPTS} install || die   mmake DESTDIR=${BINDIR} ${KDE4_MAKE_OPTS} install || die
118    
119  # # move dbus service dirs to a proper location if KDEDIR != /usr   # move dbus service dirs to a proper location if KDEDIR != /usr
120  # if [[ ${KDEDIR} != /usr ]]   if [[ ${KDEDIR} != /usr ]]
121  # then   then
122  # if [[ -d ${BINDIR}/${KDEDIR}/share/dbus-1 ]]   if [[ -d ${BINDIR}/${KDEDIR}/share/dbus-1 ]]
123  # then   then
124  # minstalldir /usr/share || die   echo -e "${COLYELLOW}Warning: using dbus hotfix, dbus locations should be fixed!${COLDEFAULT}"
125  # mv ${BINDIR}/${KDEDIR}/share/dbus-1 ${BINDIR}/usr/share/ || die   minstalldir /usr/share || die
126  # fi   cp -R ${BINDIR}/${KDEDIR}/share/dbus-1 ${BINDIR}/usr/share/ || die
127  # fi   rm -r ${BINDIR}/${KDEDIR}/share/dbus-1 || die
128     fi
129     fi
130    
131   cd ${SRCDIR}   cd ${SRCDIR}
132   local i   local i

Legend:
Removed from v.4090  
changed lines
  Added in v.5394