Hello to all, to have RTCW working you need to open the teminal like root::
>>su
>>tazpkg -gi slitaz-toolchain
Then writes:
>> tazwok new-tree glib_old
>> tazwok new-tree gtk_old
>> cd /home/slitaz/wok
or
>> cd /home/slitazcoking//wok
Inside the wok it should have two directory glib_old and gtk_old; you go to the first of them:
>>cd glib_old
Now in it types:
>>touch receipt
And opens up with leafpad the recently created file:
>> leafpad receipt
And copy from your browser and paste in leafpad this:
# SliTaz package receipt.
PACKAGE="glib_old"
VERSION="1.2.10"
CATEGORY="x-window"
SHORT_DESC="Old C routines and wrapers."
MAINTAINER="Robertux"
DEPENDS="glibc-base"
BUILD_DEPENDS="gcc"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://ftp.gnome.org/pub/gnome/sources/glib/1.2/glib-$VERSION.tar.gz"
# Rules to configure and make the package.
compile_rules()
{
cd $src
./configure \
--prefix=/usr --enable-shared --disable-static \
--with-gnu-ld --infodir=/usr/share/info \
--mandir=/usr/share/man \
$CONFIGURE_ARGS &&
make && make DESTDIR=$PWD/_pkg install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/lib
cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}
You keep the file and you close the editor of text leafpad, you return to the terminal and salts of the directory where you were:
>>cd ..
>>mkdir glib_old-dev
>>mkdir gtk_old-dev
Now copies inside each one of the three empty directories their corresponding receipt:
# SliTaz package receipt.
PACKAGE="gtk_old"
VERSION="1.2.10"
CATEGORY="x-window"
SHORT_DESC="Old Graphics Tool Kit Library."
MAINTAINER="Robertux"
DEPENDS="glib_old xorg"
BUILD_DEPENDS="glib_old-dev xorg-dev xorg-xextproto"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/1.2/gtk+-$VERSION.tar.gz"
# Rules to configure and make the package.
compile_rules()
{
cd $src
./configure \
--prefix=/usr --disable-static \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
$CONFIGURE_ARGS &&
make && make DESTDIR=$PWD/_pkg install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/lib $fs/usr/share
cp -a $_pkg/usr/lib/*.s* $fs/usr/lib
cp -a $_pkg/usr/etc $fs
cp -a $_pkg/usr/share/themes $fs/usr/share
cp -a $_pkg/usr/share/locale $fs/usr/share
}
# SliTaz package receipt.
PACKAGE="gtk_old-dev"
VERSION="1.2.10"
CATEGORY="development"
SHORT_DESC="Old Graphics Tool Kit Library devel files."
MAINTAINER="Robertux"
WANTED="gtk_old"
TARBALL="$PACKAGE-$VERSION.tar.gz"
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/lib $fs/usr/share/
cp -a $_pkg/usr/bin $fs/usr
cp -a $_pkg/usr/include $fs/usr
cp -a $_pkg/usr/lib/*.la $fs/usr/lib
cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
cp -a $_pkg/usr/share $fs/usr
rm -f -r $fs/usr/share/locale
rm -f -r $fs/usr/share/themes
}
__________________________________________________________
# SliTaz package receipt.
PACKAGE="glib_old-dev"
VERSION="1.2.10"
CATEGORY="development"
SHORT_DESC="Old C routines and wrapers devel files."
MAINTAINER="Robertux"
WANTED="glib_old"
TARBALL="$PACKAGE-$VERSION.tar.gz"
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/lib/glib
cp -a $_pkg/usr/bin $fs/usr
cp -a $_pkg/usr/include $fs/usr
cp -a $_pkg/usr/lib/*.la $fs/usr/lib
cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
cp -a $_pkg/usr/lib/glib $fs/usr/lib
cp -a $_pkg/usr/share $fs/usr
}
You finally compile first glib that is a gtk dependence:
>>tazwok compile glib_old
>>tazwok genpkg glib_old
>>tazwok genpkg glib_old-dev
>>tazpkg install glib_old
>>tazpkg install glib_old-dev
Repeat the last steps but with gtk_old and gtk_old_dev and voillá !
Note: This library is something old, but it is perfectly functional; in my PC it is good me to run several other programs as xmms with native Linux support for mp3pro and avscan...