Changeset fcf217f


Ignore:
Timestamp:
Feb 21, 2006, 12:23:12 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
e5345f18
Parents:
f118837
Message:

r602@server (orig r600): ryan | 2005-08-05 23:24:20 -0700
Script now uses defaults defined in qt-setup.sh
Has options to build against mysql,pgsql and unixodbc
Fixed some indentation...


File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/untested/blfs-scripts/blfs-qt.sh

    rf118837 rfcf217f  
    22
    33### qt ###
    4 
    54cd ${SRC}
    65LOG=qt-blfs.log
     
    109set_libdirname
    1110setup_multiarch
     11
     12# qt-setup.sh should have been sourced
     13#QT_INSTALL_SELF_CONTAINED=Y
     14#USE_MYSQL=Y
     15#USE_PGSQL=Y
     16#USE_UNIXODBC=Y
    1217
    1318if [ "Y" = "${QT_INSTALL_SELF_CONTAINED}" ]; then
     
    3338fi
    3439
    35 unpack_tarball qt-${QT_VER}
     40if [ "${USE_MYSQL}" = "Y" ]; then
     41   extra_conf="${extra_conf} -plugin-sql-mysql $( mysql_config --include )"
     42   echo extra_conf
     43fi
     44
     45
     46if [ "${USE_POSTGRES}" = "Y" ]; then
     47   extra_conf="${extra_conf} -plugin-sql-psql -I$( pg_config --includedir )"
     48fi
     49
     50if [ "${USE_ODBC}" = "Y" ]; then
     51   extra_conf="${extra_conf} -plugin-sql-odbc -I/usr/include"
     52fi
     53
     54unpack_tarball qt-x11-free-${QT_VER}
    3655cd ${PKGDIR}
    3756
    3857# Here we have to handle lib / lib64 , and also handle multilib compilers
    39 if [ "Y" = "${BIARCH}" ]; then
     58if [ "Y" = "${MULTIARCH}" ]; then
    4059   platform="linux-g++"
    4160   if [ "${libdirname}" = "lib64" ]; then platform="linux-g++-64" ; fi
     
    4564   mkspecs/${platform}/qmake.conf
    4665
     66# Force removal of existing file when installing
     67echo "QMAKE_INSTALL_FILE      = cp --remove-destination" \
     68   >> mkspecs/${platform}/qmake.conf
     69sed -i -e 's@cp -f@cp --remove-destination@g' \
     70   qmake/Makefile.unix
     71
    4772extra_conf="${extra_conf} -platform ${platform}"
     73
     74export QTDIR="${SRC}/${PKGDIR}"
     75export LD_LIBRARY_PATH="${QTDIR}/lib:${LD_LIBRARY_PATH}"
     76export PATH=${QTDIR}/bin:${PATH}
    4877
    4978max_log_init qt ${QT_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
     
    5281   -no-exceptions -thread -plugin-imgfmt-png \
    5382   -system-libpng -system-libmng -system-zlib -system-libjpeg \
    54    -system-nas-sound -qt-gif \
     83   -system-nas-sound -qt-gif -tablet \
    5584   >> ${LOGFILE} 2>&1 &&
    56 echo " o Configure OK" &&
     85echo " o Configure OK" || barf
    5786
    5887min_log_init ${BUILDLOGS} &&
    5988make \
    6089   >> ${LOGFILE} 2>&1 &&
    61 echo " o Build OK" &&
     90echo " o Build OK" || barf
    6291
    6392if [ "Y" = "${MULTIARCH}" ]; then
     
    6594   # qt platform during install
    6695   case ${platform} in
    67    linux-g++ )
    68       if [ -d ${qtprefix}/mkspecs/linux-g++-64 ];then
    69          mv ${qtprefix}/mkspecs/linux-g++-64 \
    70             ${qtprefix}/mkspecs/linux-g++-64-ORIG
    71       fi
    72    linux-g++-64 )
    73       if [ -d ${qtprefix}/mkspecs/linux-g++ ];then
    74          mv ${qtprefix}/mkspecs/linux-g++ \
    75             ${qtprefix}/mkspecs/linux-g++-ORIG
    76       fi
     96      linux-g++ )
     97         if [ -d ${qtprefix}/mkspecs/linux-g++-64 ];then
     98            mv ${qtprefix}/mkspecs/linux-g++-64 \
     99               ${qtprefix}/mkspecs/linux-g++-64-ORIG
     100         fi
     101      ;;
     102      linux-g++-64 )
     103         if [ -d ${qtprefix}/mkspecs/linux-g++ ];then
     104            mv ${qtprefix}/mkspecs/linux-g++ \
     105               ${qtprefix}/mkspecs/linux-g++-ORIG
     106         fi
     107      ;;
    77108   esac
    78109fi
     
    85116if [ "Y" = "${MULTIARCH}" ]; then
    86117   case ${platform} in
    87    linux-g++ )
    88       if [ -d ${qtprefix}/mkspecs/linux-g++-64-ORIG ];then
    89          rm -rf ${qtprefix}/mkspecs/linux-g++-64
    90          mv ${qtprefix}/mkspecs/linux-g++-64-ORIG \
    91             ${qtprefix}/mkspecs/linux-g++-64
    92       fi
    93    linux-g++-64 )
    94       if [ -d ${qtprefix}/mkspecs/linux-g++-ORIG ];then
    95          rm -rf ${qtprefix}/mkspecs/linux-g++
    96          mv ${qtprefix}/mkspecs/linux-g++-ORIG \
    97             ${qtprefix}/mkspecs/linux-g++
    98       fi
     118      linux-g++ )
     119         if [ -d ${qtprefix}/mkspecs/linux-g++-64-ORIG ];then
     120            rm -rf ${qtprefix}/mkspecs/linux-g++-64
     121            mv ${qtprefix}/mkspecs/linux-g++-64-ORIG \
     122               ${qtprefix}/mkspecs/linux-g++-64
     123         fi
     124      ;;
     125      linux-g++-64 )
     126         if [ -d ${qtprefix}/mkspecs/linux-g++-ORIG ];then
     127            rm -rf ${qtprefix}/mkspecs/linux-g++
     128            mv ${qtprefix}/mkspecs/linux-g++-ORIG \
     129               ${qtprefix}/mkspecs/linux-g++
     130         fi
     131      ;;
    99132   esac
    100133fi
     
    120153   # for the given architecture ). Here we move it to a subdir and
    121154   # create a stub header
    122    create_stub_hdrs ${qtincludedir}/qconfig.h
     155   create_stub_hdrs ${qtheaderdir}/qconfig.h
    123156fi
Note: See TracChangeset for help on using the changeset viewer.