Gobject-introspection

From CBLFS
Revision as of 22:42, 8 January 2010 by Lunaryn (talk | contribs) (Update installed dirs for multilib fix)
Jump to navigationJump to search
Download Source: http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/0.6/gobject-introspection-0.6.9.tar.bz2

Introduction to Gobject-introspection

Provides a bridge between C and managed languages.

Project Homepage: http://live.gnome.org/GObjectIntrospection


Dependencies

Required

Optional

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

export USE_ARCH=32
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
export CC="gcc ${BUILD32}"
sed -i "/GIR_SUFFIX/s/gir-1.0/&-32" configure.ac &&
autoconf &&
./configure --prefix=/usr &&
make

Install the package:

make install
mv -v /usr/bin/g-ir-compiler{,-32}
mv -v /usr/bin/g-ir-generate{,-32}
mv -v /usr/bin/g-ir-scanner{,-32}
unset USE_ARCH
unset PKG_CONFIG_PATH
unset CC

N32

Compile the package:

export USE_ARCH=n32
export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}"
export CC="gcc ${BUILDN32}"
sed -i "/GIR_SUFFIX/s/gir-1.0/&-n32" configure.ac &&
autoconf &&
./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package:

make install
mv -v /usr/bin/g-ir-compiler{,-n32}
mv -v /usr/bin/g-ir-generate{,-n32}
mv -v /usr/bin/g-ir-scanner{,-n32}
unset USE_ARCH
unset PKG_CONFIG_PATH
unset CC

64Bit

Compile the package:

export USE_ARCH=64
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
export CC="gcc ${BUILD64}"
sed -i "/GIR_SUFFIX/s/gir-1.0/&-64" configure.ac &&
autoconf &&
./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package:

make install
mv -v /usr/bin/g-ir-compiler{,-64}
mv -v /usr/bin/g-ir-generate{,-64}
mv -v /usr/bin/g-ir-scanner{,-64}
ln -sv multiarch_wrapper /usr/bin/g-ir-compiler
ln -sv multiarch_wrapper /usr/bin/g-ir-generate
ln -sv multiarch_wrapper /usr/bin/g-ir-scanner
unset USE_ARCH
unset PKG_CONFIG_PATH
unset CC

Contents

Installed Directories: /usr/{include,share}/gobject-introspection-1.0, /usr/share/gir-1.0{,-32,-n32,-64}, /usr/lib{,32,64}/{girepository-1.0,gobject-introspection}
Installed Programs: g-ir-compiler, g-ir-generate, g-ir-scanner
Installed Libraries: libgirepository-1.0.{a,so}, libgirepository-everything-1.0.{a,so}

Short Descriptions

g-ir-compiler compiles typelib from gir and vice versa
g-ir-generate ???
g-ir-scanner generates gir from C sources
libgirepository-1.0.{so,a}, libgirepository-everything-1.0.{so,a} C library for reading typelib