Difference between revisions of "Gobject-introspection"

From CBLFS
Jump to navigationJump to search
(Initial page creation)
 
(multilib fix for gobject-introspection and repaired malformed regex from previous update)
 
(3 intermediate revisions by the same user not shown)
Line 41: Line 41:
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
 
  export CC="gcc ${BUILD32}"
 
  export CC="gcc ${BUILD32}"
 +
sed -i "/GIR_SUFFIX/s/gir-1.0/&-32/" configure.ac &&
 +
sed -i "/^girdir=/s/gir-1.0/&-32/" *.pc.in &&
 +
autoconf &&
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 47: Line 50:
  
 
  make install
 
  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 USE_ARCH
 
  unset PKG_CONFIG_PATH
 
  unset PKG_CONFIG_PATH
Line 58: Line 64:
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}"
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}"
 
  export CC="gcc ${BUILDN32}"
 
  export CC="gcc ${BUILDN32}"
 +
sed -i "/GIR_SUFFIX/s/gir-1.0/&-n32/" configure.ac &&
 +
sed -i "/^girdir=/s/gir-1.0/&-n32/" *.pc.in &&
 +
autoconf &&
 
  ./configure --prefix=/usr \
 
  ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 &&
 
     --libdir=/usr/lib32 &&
Line 65: Line 74:
  
 
  make install
 
  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 USE_ARCH
 
  unset PKG_CONFIG_PATH
 
  unset PKG_CONFIG_PATH
Line 76: Line 88:
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
 
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
 
  export CC="gcc ${BUILD64}"
 
  export CC="gcc ${BUILD64}"
 +
sed -i "/GIR_SUFFIX/s/gir-1.0/&-64/" configure.ac &&
 +
sed -i "/^girdir=/s/gir-1.0/&-64/" *.pc.in &&
 +
autoconf &&
 
  ./configure --prefix=/usr \
 
  ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 &&
 
     --libdir=/usr/lib64 &&
Line 83: Line 98:
  
 
  make install
 
  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 USE_ARCH
 
  unset PKG_CONFIG_PATH
 
  unset PKG_CONFIG_PATH
Line 92: Line 113:
 
|-valign="top"
 
|-valign="top"
 
!Installed Directories:
 
!Installed Directories:
|/usr/{include,share}/gobject-introspection-1.0, /usr/share/gir-1.0, /usr/lib{,32,64}/{girepository-1.0,gobject-introspection}
+
|/usr/{include,share}/gobject-introspection-1.0, /usr/share/gir-1.0{,-32,-n32,-64}, /usr/lib{,32,64}/{girepository-1.0,gobject-introspection}
 
|-valign="top"
 
|-valign="top"
 
!Installed Programs:
 
!Installed Programs:

Latest revision as of 02:03, 10 January 2010

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 &&
sed -i "/^girdir=/s/gir-1.0/&-32/" *.pc.in &&
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 &&
sed -i "/^girdir=/s/gir-1.0/&-n32/" *.pc.in &&
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 &&
sed -i "/^girdir=/s/gir-1.0/&-64/" *.pc.in &&
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