[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### fftw ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 |
|
---|
| 7 | LOG=fftw-blfs.log
|
---|
| 8 |
|
---|
| 9 | SELF=`basename ${0}`
|
---|
| 10 | set_buildenv
|
---|
| 11 | set_libdirname
|
---|
| 12 | setup_multiarch
|
---|
| 13 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 14 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | case ${TGT_ARCH} in
|
---|
| 18 | i?86 ) extra_conf="${extra_conf} --enable-i386-hacks" ;;
|
---|
| 19 | x86_64 )
|
---|
| 20 | if [ "${BUILDENV}" = "32" ]; then
|
---|
| 21 | extra_conf="${extra_conf} --enable-i386-hacks"
|
---|
| 22 | fi
|
---|
| 23 | ;;
|
---|
| 24 | esac
|
---|
| 25 |
|
---|
| 26 | unpack_tarball fftw-${FFTW_VER}
|
---|
| 27 | cd ${SRC}/${PKGDIR}
|
---|
| 28 |
|
---|
| 29 | max_log_init fftw ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 30 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 31 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 32 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 33 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 34 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 35 | --mandir=/usr/share/man \
|
---|
| 36 | --infodir=/usr/share/info \
|
---|
| 37 | --enable-shared --enable-threads \
|
---|
| 38 | >> ${LOGFILE} 2>&1 &&
|
---|
| 39 | echo " o Configure OK" &&
|
---|
| 40 |
|
---|
| 41 | min_log_init ${BUILDLOGS} &&
|
---|
| 42 | make ${PMFLAGS} \
|
---|
| 43 | >> ${LOGFILE} 2>&1 &&
|
---|
| 44 | echo " o Build OK" || barf
|
---|
| 45 |
|
---|
| 46 | min_log_init ${TESTLOGS} &&
|
---|
| 47 | make check \
|
---|
| 48 | >> ${LOGFILE} 2>&1 &&
|
---|
| 49 | echo " o Test OK" || errmsg
|
---|
| 50 |
|
---|
| 51 | min_log_init ${INSTLOGS} &&
|
---|
| 52 | make install \
|
---|
| 53 | >> ${LOGFILE} 2>&1 &&
|
---|
| 54 | echo " o ALL OK" || barf
|
---|
| 55 |
|
---|
| 56 | make distclean
|
---|
| 57 |
|
---|
| 58 | LOG=fftw-double-blfs.log
|
---|
| 59 | max_log_init fftw-double ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 60 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 61 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 62 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 63 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 64 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 65 | --mandir=/usr/share/man \
|
---|
| 66 | --infodir=/usr/share/info \
|
---|
| 67 | --enable-shared --enable-threads \
|
---|
| 68 | --enable-type-prefix \
|
---|
| 69 | >> ${LOGFILE} 2>&1 &&
|
---|
| 70 | echo " o Configure OK" &&
|
---|
| 71 |
|
---|
| 72 | min_log_init ${BUILDLOGS} &&
|
---|
| 73 | make ${PMFLAGS} \
|
---|
| 74 | >> ${LOGFILE} 2>&1 &&
|
---|
| 75 | echo " o Build OK" || barf
|
---|
| 76 |
|
---|
| 77 | min_log_init ${TESTLOGS} &&
|
---|
| 78 | make check \
|
---|
| 79 | >> ${LOGFILE} 2>&1 &&
|
---|
| 80 | echo " o Test OK" || errmsg
|
---|
| 81 |
|
---|
| 82 | min_log_init ${INSTLOGS} &&
|
---|
| 83 | make install \
|
---|
| 84 | >> ${LOGFILE} 2>&1 &&
|
---|
| 85 | echo " o ALL OK" || barf
|
---|
| 86 |
|
---|
| 87 | make distclean
|
---|
| 88 |
|
---|
| 89 | LOG=fftw-single-blfs.log
|
---|
| 90 | max_log_init fftw-single ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 91 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 92 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 93 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 94 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 95 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 96 | --mandir=/usr/share/man \
|
---|
| 97 | --infodir=/usr/share/info \
|
---|
| 98 | --enable-shared --enable-threads \
|
---|
| 99 | --enable-type-prefix \
|
---|
| 100 | >> ${LOGFILE} 2>&1 &&
|
---|
| 101 | echo " o Configure OK" &&
|
---|
| 102 |
|
---|
| 103 | min_log_init ${BUILDLOGS} &&
|
---|
| 104 | make ${PMFLAGS} \
|
---|
| 105 | >> ${LOGFILE} 2>&1 &&
|
---|
| 106 | echo " o Build OK" || barf
|
---|
| 107 |
|
---|
| 108 | min_log_init ${TESTLOGS} &&
|
---|
| 109 | make check \
|
---|
| 110 | >> ${LOGFILE} 2>&1 &&
|
---|
| 111 | echo " o Test OK" || errmsg
|
---|
| 112 |
|
---|
| 113 | min_log_init ${INSTLOGS} &&
|
---|
| 114 | make install \
|
---|
| 115 | >> ${LOGFILE} 2>&1 &&
|
---|
| 116 | echo " o ALL OK" || barf
|
---|
| 117 |
|
---|