KDE4/KdeNetwork

From CBLFS
Revision as of 16:16, 24 December 2008 by Rickhs (talk | contribs) (Addapted the multilib instructions to let them make more sence (you do not have to wait for the error to occur now))
Jump to navigationJump to search
Download Source: ftp://ftp.kde.org/pub/kde/stable/4.3.5/src/kdenetwork-4.3.5.tar.bz2

Dependencies

Required

Optional

Runtime

Configuration Information

Non-Multilib

Compile the package:

mkdir -vv build &&
cd build &&
cmake .. -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) &&                
make

Install the package:

make install

Multilib

32Bit

mkdir -v build &&
cd build &&
USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
cmake -DCMAKE_INSTALL_PREFIX=${KDEDIR} \
    -DSYSCONF_INSTALL_DIR=/etc/kde \
    -DCMAKE_CXX_FLAGS=${BUILD32} \
    -DCMAKE_C_FLAGS=${BUILD32} \
    ..

It seems that cmake some how adds lib64 directories to its search path, that is not right as we do not want to build against the 64-bit libraries of the system. We can fix this behavior with the following seds then proceed with make as normal

for file in $( find ./ -name build.make ); do  sed -i 's:/lib64:/lib:g' $file ; done
for file in $( find ./ -name *link.txt ); do sed -i 's:/lib64:/lib:g' $file ; done 
make

Before proceeding to make install, we need to again fix same problem as before the package was compiled. Again apply some seds and install the package:

for file in $( find ./ -name cmake_install.cmake ); do sed -i 's:/lib64:/lib:g' $file ; done
make install

N32

64Bit

mkdir -v build &&
cd build &&
USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
cmake -DCMAKE_INSTALL_PREFIX=${KDEDIR} \
    -DSYSCONF_INSTALL_DIR=/etc/kde \
    -DLIB_SUFFIX=64 \
    -DCMAKE_CXX_FLAGS=${BUILD64} \
    -DCMAKE_C_FLAGS=${BUILD64} \
    .. &&
make

Install the Package

make install