source: scripts/scripts/untested/blfs-scripts/blfs-libusb.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/bash
2
3### libusb ###
4
5cd ${SRC}
6LOG=libusb-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13   extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball libusb-${LIBUSB_VER}
17cd ${PKGDIR}
18
19max_log_init libusb ${LIBUSB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
20CC="${CC-gcc} ${ARCH_CFLAGS}" \
21CXX="${CXX-g++} ${ARCH_CFLAGS}" \
22CFLAGS="${TGT_CFLAGS}" \
23CXXFLAGS="${TGT_CFLAGS}" \
24./configure --prefix=/usr ${extra_conf} \
25   --mandir=/usr/share/man --infodir=/usr/share/info \
26   >> ${LOGFILE} 2>&1 &&
27echo " o Configure OK" &&
28
29min_log_init ${BUILDLOGS} &&
30(
31   make && 
32   make apidox
33) >> ${LOGFILE} 2>&1 &&
34echo " o Build OK" &&
35
36min_log_init ${INSTLOGS} &&
37(
38   make install &&
39   install -v -d -m755 /usr/share/doc/libusb-${LIBUSB_VER}/html &&
40   install -v -m644 doc/html/* /usr/share/doc/libusb-${LIBUSB_VER}/html &&
41   install -v -d -m755 /usr/share/doc/libusb-${LIBUSB_VER}/apidocs &&
42   install -v -m644 apidocs/html/* /usr/share/doc/libusb-${LIBUSB_VER}/apidocs
43) >> ${LOGFILE} 2>&1 &&
44echo " o ALL OK" || barf
45
46if [ "${MULTIARCH}" = "Y" ]; then
47   use_wrapper /usr/bin/libusb-config
48fi
Note: See TracBrowser for help on using the repository browser.