Difference between revisions of "SANE"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 68: Line 68:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/sane-config{,-32}
+
  mv -v /usr/bin/sane-config{,-32} &&
 +
ln -sfv multiarch_wrapper /usr/bin/sane-config
  
 
==== Frontend ====
 
==== Frontend ====
Line 99: Line 100:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/sane-config{,-32}
+
  mv -v /usr/bin/sane-config{,-32} &&
 +
ln -sfv multiarch_wrapper /usr/bin/sane-config
  
 
==== Frontend ====
 
==== Frontend ====

Revision as of 19:39, 21 October 2006

Download Backend Source: ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.18/sane-backends-1.0.18.tar.gz
Download Frontend Source: ftp://ftp.sane-project.org/pub/sane/sane-frontends-1.0.14/sane-frontends-1.0.14.tar.gz

Dependencies

Optional (BackEnd)

Optional (FrontEnd)

Non-Multilib

Backend

Compile the package:

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

Install the package:

make install

Frontend

Compile the package:

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

Install the package:

make install &&
install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \
    /usr/share/sane

If Gimp is installed and you would like to use xscanimage as a scanning plugin, run the following command:

ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins

Multilib

32Bit

Backend

Compile the package:

CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
./configure --prefix=/usr --sysconfdir=/etc &&
make

Install the package:

make install &&
mv -v /usr/bin/sane-config{,-32} &&
ln -sfv multiarch_wrapper /usr/bin/sane-config

Frontend

Compile the package:

CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
./configure --prefix=/usr &&
make

Install the package:

make install

If Gimp is installed and you would like to use xscanimage as a scanning plugin, run the following command:

ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins

N32

Backend

Compile the package:

CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 &&
make

Install the package:

make install &&
mv -v /usr/bin/sane-config{,-32} &&
ln -sfv multiarch_wrapper /usr/bin/sane-config

Frontend

Compile the package:

CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package:

make install

If Gimp is installed and you would like to use xscanimage as a scanning plugin, run the following command:

ln -v -s ../../../../bin/xscanimage /usr/lib32/gimp/2.0/plug-ins

64Bit

Backend

Compile the package:

CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 &&
make

Install the package:

make install &&
mv -v /usr/bin/sane-config{,-32} &&
ln -sfv multiarch_wrapper /usr/bin/sane-config

Frontend

Compile the package:

CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package:

make install &&
install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \
    /usr/share/sane

If Gimp is installed and you would like to use xscanimage as a scanning plugin, run the following command:

ln -v -s ../../../../bin/xscanimage /usr/lib64/gimp/2.0/plug-ins