source: scripts/untested/blfs-scripts/blfs-fftw.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • 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   >> ${LOGFILE} 2>&1 &&
101echo " o Configure OK" &&
102
103min_log_init ${BUILDLOGS} &&
104make ${PMFLAGS} \
105   >> ${LOGFILE} 2>&1 &&
106echo " o Build OK" || barf
107
108min_log_init ${TESTLOGS} &&
109make check \
110   >> ${LOGFILE} 2>&1 &&
111echo " o Test OK" || errmsg
112
113min_log_init ${INSTLOGS} &&
114make install \
115   >> ${LOGFILE} 2>&1 &&
116echo " o ALL OK" || barf
117
Note: See TracBrowser for help on using the repository browser.