Difference between revisions of "Gtk1"

From CBLFS
Jump to navigationJump to search
 
(Multilib)
Line 44: Line 44:
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc \
+
  CC="gcc ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
 +
    ./configure --prefix=/usr --sysconfdir=/etc \
 
     --with-xinput=xfree &&
 
     --with-xinput=xfree &&
 
  make
 
  make
Line 59: Line 60:
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sysconfdir=/etc \
+
  CC="gcc ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH=${PKG_CONFIG_PATHN32} \
 +
    ./configure --prefix=/usr --sysconfdir=/etc \
 
     --libdir=/usr/lib32 --with-xinput=xfree &&
 
     --libdir=/usr/lib32 --with-xinput=xfree &&
 
  make
 
  make
Line 74: Line 76:
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
 
  patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc \
+
  CC="gcc ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} \
 +
    ./configure --prefix=/usr --sysconfdir=/etc \
 
     --libdir=/usr/lib64 --with-xinput=xfree &&
 
     --libdir=/usr/lib64 --with-xinput=xfree &&
 
  make
 
  make

Revision as of 10:37, 16 September 2006

Download Source: ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-1.2.10.tar.gz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/gtk+/gtk+-1.2.10-config_update-1.patch
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/gtk+/gtk+-1.2.10-fixes-1.patch

Dependencies

Required

Non-Multilib

Compile the package:

patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
./configure --prefix=/usr --sysconfdir=/etc \
    --with-xinput=xfree &&
make

Install the package

make install &&
install -v -m755 -d /usr/share/doc/gtk+-1.2.10/{html,text} &&
install -v -m644 docs/html/* /usr/share/doc/gtk+-1.2.10/html &&
install -v -m644 docs/text/* /usr/share/doc/gtk+-1.2.10/text

Multilib

32Bit

Compile the package:

patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
CC="gcc ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
    ./configure --prefix=/usr --sysconfdir=/etc \
    --with-xinput=xfree &&
make

Install the package

make install &&
mv -v /usr/bin/gtk-config{,-32} 

N32

Compile the package:

patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH=${PKG_CONFIG_PATHN32} \
    ./configure --prefix=/usr --sysconfdir=/etc \
    --libdir=/usr/lib32 --with-xinput=xfree &&
make

Install the package

make install &&
mv -v /usr/bin/gtk-config{,-n32} 

64Bit

Compile the package:

patch -Np1 -i ../gtk+-1.2.10-config_update-1.patch &&
patch -Np1 -i ../gtk+-1.2.10-fixes-1.patch &&
CC="gcc ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} \
    ./configure --prefix=/usr --sysconfdir=/etc \
    --libdir=/usr/lib64 --with-xinput=xfree &&
make

Install the package

make install &&
mv -v /usr/bin/gtk-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/gtk-config &&
install -v -m755 -d /usr/share/doc/gtk+-1.2.10/{html,text} &&
install -v -m644 docs/html/* /usr/share/doc/gtk+-1.2.10/html &&
install -v -m644 docs/text/* /usr/share/doc/gtk+-1.2.10/text
Retrieved from "?title=Gtk1&oldid=1735"