source: scripts_home/scripts/untested/blfs-scripts/blfs-fftw.sh@ 1c9c5c3

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: 2.6 KB
Line 
1#!/bin/bash
2
3### fftw ###
4
5cd ${SRC}
6
7LOG=fftw-blfs.log
8
9SELF=`basename ${0}`
10set_buildenv
11set_libdirname
12setup_multiarch
13if [ ! "${libdirname}" = "lib" ]; then
14 extra_conf="--libdir=/usr/${libdirname}"
15fi
16
17case ${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 ;;
24esac
25
26unpack_tarball fftw-${FFTW_VER}
27cd ${SRC}/${PKGDIR}
28
29max_log_init fftw ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
30CC="${CC-gcc} ${ARCH_CFLAGS}" \
31CXX="${CXX-g++} ${ARCH_CFLAGS}" \
32CFLAGS="${TGT_CFLAGS}" \
33CXXFLAGS="${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 &&
39echo " o Configure OK" &&
40
41min_log_init ${BUILDLOGS} &&
42make ${PMFLAGS} \
43 >> ${LOGFILE} 2>&1 &&
44echo " o Build OK" || barf
45
46min_log_init ${TESTLOGS} &&
47make check \
48 >> ${LOGFILE} 2>&1 &&
49echo " o Test OK" || errmsg
50
51min_log_init ${INSTLOGS} &&
52make install \
53 >> ${LOGFILE} 2>&1 &&
54echo " o ALL OK" || barf
55
56make distclean
57
58LOG=fftw-double-blfs.log
59max_log_init fftw-double ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
60CC="${CC-gcc} ${ARCH_CFLAGS}" \
61CXX="${CXX-g++} ${ARCH_CFLAGS}" \
62CFLAGS="${TGT_CFLAGS}" \
63CXXFLAGS="${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 &&
70echo " o Configure OK" &&
71
72min_log_init ${BUILDLOGS} &&
73make ${PMFLAGS} \
74 >> ${LOGFILE} 2>&1 &&
75echo " o Build OK" || barf
76
77min_log_init ${TESTLOGS} &&
78make check \
79 >> ${LOGFILE} 2>&1 &&
80echo " o Test OK" || errmsg
81
82min_log_init ${INSTLOGS} &&
83make install \
84 >> ${LOGFILE} 2>&1 &&
85echo " o ALL OK" || barf
86
87make distclean
88
89LOG=fftw-single-blfs.log
90max_log_init fftw-single ${FFTW_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
91CC="${CC-gcc} ${ARCH_CFLAGS}" \
92CXX="${CXX-g++} ${ARCH_CFLAGS}" \
93CFLAGS="${TGT_CFLAGS}" \
94CXXFLAGS="${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 --enable-float \
101 >> ${LOGFILE} 2>&1 &&
102echo " o Configure OK" &&
103
104min_log_init ${BUILDLOGS} &&
105make ${PMFLAGS} \
106 >> ${LOGFILE} 2>&1 &&
107echo " o Build OK" || barf
108
109min_log_init ${TESTLOGS} &&
110make check \
111 >> ${LOGFILE} 2>&1 &&
112echo " o Test OK" || errmsg
113
114min_log_init ${INSTLOGS} &&
115make install \
116 >> ${LOGFILE} 2>&1 &&
117echo " o ALL OK" || barf
118
Note: See TracBrowser for help on using the repository browser.