纯手工编译安装 KDE4-svn |
发布: 2008-07-29 12:37 |
[code type="bash"] #!/bin/sh ############### KDEDIR=$HOME/kde/ PKG_CONFIG_PATH=$KDEDIR/lib/pkgconfig/ XDG_DATA_HOME=$KDEDIR/share XDG_DATA_DIRS=$KDEDIR/share export KDEDIR PKG_CONFIG_PATH XDG_DATA_HOME XDG_DATA_DIRS SRCDIR=$HOME/sources/src/ BUILDDIR=$HOME/sources/build/ ################## function build_package() { # PACKAGE=kdesupport PACKAGE=$1 cd $SRCDIR/$PACKAGE && svn cleanup && svn up cd $BUILDDIR && mkdir -p $PACKAGE && cd $PACKAGE cmake -DCMAKE_VERBOSE_MAKEFILE=on \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_PREFIX=$KDEDIR \ -DPKGCONFIG_INSTALL_PREFIX=$KDEDIR/lib/pkgconfig/ \ $SRCDIR/$PACKAGE/ nice make make install } ########################### KDEBASE_PACKAGES="kdesupport webkitkde KDE/kdelibs KDE/kdepimlibs KDE/kdebase" KDEALL_PACKAGES="KDE/kdepim KDE/kdegraphics KDE/kdemultimedia KDE/kdenetwork KDE/kdeutils KDE/kdevplatform KDE/kdevelop" PACKAGES=$KDEBASE_PACKAGES if [ "$1" = "all" ] ; then PACKAGES=$PACKAGES $KDEALL_PACKAGES fi for pkg_name in $PACKAGES do echo "Building package $pkg_name now" build_package $pkg_name done [/code] |
原文: http://qtchina.tk/?q=node/216 |
Powered by zexport
|