Difference between revisions of "Libusb"

From CBLFS
Jump to navigationJump to search
 
Line 38: Line 38:
 
If you built the API documentation, install it with the following commands:
 
If you built the API documentation, install it with the following commands:
  
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
+
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
install -v -m644 apidocs/html/* \
+
install -v -m644 apidocs/html/* \
    /usr/share/doc/libusb-0.1.12/apidocs
+
    /usr/share/doc/libusb-0.1.12/apidocs
  
 
== Multilib ==
 
== Multilib ==
Line 95: Line 95:
 
If you built the API documentation, install it with the following commands:
 
If you built the API documentation, install it with the following commands:
  
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
+
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
install -v -m644 apidocs/html/* \
+
install -v -m644 apidocs/html/* \
    /usr/share/doc/libusb-0.1.12/apidocs
+
    /usr/share/doc/libusb-0.1.12/apidocs

Revision as of 19:18, 1 October 2006

Download Source: http://prdownloads.sourceforge.net/libusb/libusb-0.1.12.tar.gz

Dependencies

Optional

Optional (For HTML Users Manual)

Optional (For the API Documentation

Non-Multilib

Compile the package:

./configure --prefix=/usr --disable-build-docs &&
make

If you wish to build the API documentation (see the required dependencies), issue the following command:

make apidox

Install the package

make install

If you built the HTML user manual, install it with the following commands:

install -v -d -m755 /usr/share/doc/libusb-0.1.12/html &&
install -v -m644 doc/html/* /usr/share/doc/libusb-0.1.12/html

If you built the API documentation, install it with the following commands:

install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
install -v -m644 apidocs/html/* \
    /usr/share/doc/libusb-0.1.12/apidocs

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
    --disable-build-docs &&
make

Install the package

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

N32

Compile the package:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --disable-build-docs &&
make

Install the package

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

64Bit

Compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --disable-build-docs &&
make

If you wish to build the API documentation (see the required dependencies), issue the following command:

make apidox

Install the package

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

If you built the HTML user manual, install it with the following commands:

install -v -d -m755 /usr/share/doc/libusb-0.1.12/html &&
install -v -m644 doc/html/* /usr/share/doc/libusb-0.1.12/html

If you built the API documentation, install it with the following commands:

install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
install -v -m644 apidocs/html/* \
    /usr/share/doc/libusb-0.1.12/apidocs