clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive
|
-
Property mode
set to
100755
|
File size:
1.5 KB
|
Rev | Line | |
---|
[1c379e4] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### unixODBC ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=unixODBC-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | USE_QT=Y
|
---|
| 17 | if [ "Y" = "${USE_QT}" ]; then
|
---|
| 18 | QTDIR="${QTDIR-/opt/qt}"
|
---|
| 19 | extra_conf="${extra_conf} --with-qt-dir=${QTDIR}"
|
---|
| 20 | extra_conf="${extra_conf} --with-qt-bin=${QTDIR}/bin"
|
---|
| 21 | extra_conf="${extra_conf} --with-qt-includes=${QTDIR}/include"
|
---|
| 22 | extra_conf="${extra_conf} --with-qt-libraries=${QTDIR}/${libdirname}"
|
---|
| 23 | fi
|
---|
| 24 |
|
---|
| 25 | unpack_tarball unixODBC-${UNIXODBC_VER}
|
---|
| 26 | cd ${PKGDIR}
|
---|
| 27 |
|
---|
| 28 | # Fix flex 2.5.31 issues w YY_FLUSH_BUFFER being undefined
|
---|
| 29 | apply_patch unixODBC-2.2.11-flex_fixes
|
---|
| 30 |
|
---|
| 31 | # fix libtool search paths
|
---|
| 32 | if [ ! "Y" = "${libdirname}" ]; then
|
---|
| 33 | sed -i -e "/^sys_lib_\(\|dl\)search_path_spec=/s@/lib@/${libdirname}@g" \
|
---|
| 34 | configure
|
---|
| 35 | #sed -i -e "/^sys_lib_\(\|dl\)search_path_spec=/s@/lib@/${libdirname}@g" \
|
---|
| 36 | # libltdl/configure
|
---|
| 37 | fi
|
---|
| 38 |
|
---|
| 39 | max_log_init unixODBC ${UNIXODBC_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 40 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 41 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 42 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 43 | CXXLAGS="${TGT_CFLAGS}" \
|
---|
| 44 | LDFLAGS="-L/usr/${libdirname}" \
|
---|
| 45 | ./configure --prefix=/usr --sysconfdir=/etc ${extra_conf} \
|
---|
| 46 | --infodir=/usr/share/info --mandir=/usr/share/man \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o Configure OK" &&
|
---|
| 49 |
|
---|
| 50 | min_log_init ${BUILDLOGS} &&
|
---|
| 51 | make ${PMFLAGS} \
|
---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
---|
| 53 | echo " o Build OK" &&
|
---|
| 54 |
|
---|
| 55 | min_log_init ${INSTLOGS} &&
|
---|
| 56 | make install \
|
---|
| 57 | >> ${LOGFILE} 2>&1 &&
|
---|
| 58 | echo " o ALL OK" || barf
|
---|
| 59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.