KDE programu portinimas i TDE
Jump to navigation
Jump to search
Parsisiunciam kde3 programa is kur nors... Ispakuojam, ieinam i jos direktorija
cd programa
Mums reikes keliu scriptu, kurie pakeis koda (kode naudojamus interfeisus bei kreipinius), tai pirmas ir antras scriptai. Perleidziame juos esamoje programos direktorijoje, tuomet mums reikia is programos direktorijos (jeigu yra) pasalinti admin kataloga ir parsisiuntus nauja is cia ji pakeisti:
git clone http://mirror.git.trinitydesktop.org/cgit/admin/
Tuomet perkopijuoti kelis failus is sistemos, reikalingo autoconf'ui:
cp /usr/share/aclocal/libtool.m4 admin/libtool.m4 cp /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
Sugeneruojam configure failus:
make -f admin/Makefile.common
Nustatom aplinkos kintamuosius i siuos (environment failas):
#!/bin/sh
export PREFIX=/opt/trinity
export SYSCONFDIR=/etc/trinity
export LIBDIR=/opt/trinity/lib
export MANDIR=/opt/trinity/man
export QTDIR=/opt/trinity/tqt3
export PATH=/opt/trinity/tqt3/bin:/opt/trinity/bin:$PATH
export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/trinity:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/trinity/tqt3/lib/pkgconfig:$PKG_CONFIG_PATH
# Enable only one of the following:
# export DEBUG_AUTOTOOL_OPT="--enable-debug=full"
#export DEBUG_AUTOTOOL_OPT="--disable-debug"
export DEBUG_AUTOTOOL_OPT=""
export DEBUG_CMAKE_OPT=""
export SVN_LIBRARY_DIR=/usr/lib
Padarom:
source ../environment_failas
Paleidziam configure scripta:
./configure --prefix=`tde-config --prefix`
Galim kompiliuoti ir diegti programa
make && make install