- Timestamp:
- Feb 21, 2006, 8:23:12 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- e5345f18
- Parents:
- f118837
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/untested/blfs-scripts/blfs-qt.sh
rf118837 rfcf217f 2 2 3 3 ### qt ### 4 5 4 cd ${SRC} 6 5 LOG=qt-blfs.log … … 10 9 set_libdirname 11 10 setup_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 12 17 13 18 if [ "Y" = "${QT_INSTALL_SELF_CONTAINED}" ]; then … … 33 38 fi 34 39 35 unpack_tarball qt-${QT_VER} 40 if [ "${USE_MYSQL}" = "Y" ]; then 41 extra_conf="${extra_conf} -plugin-sql-mysql $( mysql_config --include )" 42 echo extra_conf 43 fi 44 45 46 if [ "${USE_POSTGRES}" = "Y" ]; then 47 extra_conf="${extra_conf} -plugin-sql-psql -I$( pg_config --includedir )" 48 fi 49 50 if [ "${USE_ODBC}" = "Y" ]; then 51 extra_conf="${extra_conf} -plugin-sql-odbc -I/usr/include" 52 fi 53 54 unpack_tarball qt-x11-free-${QT_VER} 36 55 cd ${PKGDIR} 37 56 38 57 # Here we have to handle lib / lib64 , and also handle multilib compilers 39 if [ "Y" = "${ BIARCH}" ]; then58 if [ "Y" = "${MULTIARCH}" ]; then 40 59 platform="linux-g++" 41 60 if [ "${libdirname}" = "lib64" ]; then platform="linux-g++-64" ; fi … … 45 64 mkspecs/${platform}/qmake.conf 46 65 66 # Force removal of existing file when installing 67 echo "QMAKE_INSTALL_FILE = cp --remove-destination" \ 68 >> mkspecs/${platform}/qmake.conf 69 sed -i -e 's@cp -f@cp --remove-destination@g' \ 70 qmake/Makefile.unix 71 47 72 extra_conf="${extra_conf} -platform ${platform}" 73 74 export QTDIR="${SRC}/${PKGDIR}" 75 export LD_LIBRARY_PATH="${QTDIR}/lib:${LD_LIBRARY_PATH}" 76 export PATH=${QTDIR}/bin:${PATH} 48 77 49 78 max_log_init qt ${QT_VER} "blfs (shared)" ${CONFLOGS} ${LOG} … … 52 81 -no-exceptions -thread -plugin-imgfmt-png \ 53 82 -system-libpng -system-libmng -system-zlib -system-libjpeg \ 54 -system-nas-sound -qt-gif \83 -system-nas-sound -qt-gif -tablet \ 55 84 >> ${LOGFILE} 2>&1 && 56 echo " o Configure OK" &&85 echo " o Configure OK" || barf 57 86 58 87 min_log_init ${BUILDLOGS} && 59 88 make \ 60 89 >> ${LOGFILE} 2>&1 && 61 echo " o Build OK" &&90 echo " o Build OK" || barf 62 91 63 92 if [ "Y" = "${MULTIARCH}" ]; then … … 65 94 # qt platform during install 66 95 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 ;; 77 108 esac 78 109 fi … … 85 116 if [ "Y" = "${MULTIARCH}" ]; then 86 117 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 ;; 99 132 esac 100 133 fi … … 120 153 # for the given architecture ). Here we move it to a subdir and 121 154 # create a stub header 122 create_stub_hdrs ${qt includedir}/qconfig.h155 create_stub_hdrs ${qtheaderdir}/qconfig.h 123 156 fi
Note:
See TracChangeset
for help on using the changeset viewer.