1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native automake build
|
---|
4 | # -------------------------------
|
---|
5 | # $LastChangedBy: roliver $
|
---|
6 | # $LastChangedDate: 2005-05-21 15:22:56 +1000 (Sat, 21 May 2005) $
|
---|
7 | # $LastChangedRevision: 528 $
|
---|
8 | # $HeadURL: svn+ssh://roliver@be-linux.org/svn/cross-lfs/cross-lfs/trunk/scripts/native-scripts/native-automake.sh $
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=automake-native.log
|
---|
13 |
|
---|
14 | set_libdirname
|
---|
15 | setup_multiarch
|
---|
16 |
|
---|
17 | unpack_tarball automake-${AUTOMAKE_VER} &&
|
---|
18 | cd ${PKGDIR}
|
---|
19 |
|
---|
20 | case ${AUTOMAKE_VER} in
|
---|
21 | 1.4* )
|
---|
22 | apply_patch automake-1.4-libtoolize
|
---|
23 | apply_patch automake-1.4-subdirs-89656
|
---|
24 | apply_patch automake-1.4-ansi2knr-stdlib
|
---|
25 | automake_texi=automake.texi
|
---|
26 | ;;
|
---|
27 | 1.5* )
|
---|
28 | apply_patch automake-1.5-target_hook
|
---|
29 | apply_patch automake-1.5-slot
|
---|
30 | apply_patch automake-1.5-test-fixes
|
---|
31 | automake_texi=automake.texi
|
---|
32 | ;;
|
---|
33 | 1.6* )
|
---|
34 | automake_texi=automake.texi
|
---|
35 | ;;
|
---|
36 | 1.7.9 )
|
---|
37 | apply_patch automake-1.7.9-infopage-namechange
|
---|
38 | automake_texi=automake.texi
|
---|
39 | ;;
|
---|
40 | 1.8* )
|
---|
41 | apply_patch automake-1.8.2-infopage-namechange
|
---|
42 | automake_texi=doc/automake.texi
|
---|
43 | ;;
|
---|
44 | 1.9.6 )
|
---|
45 | apply_patch automake-1.9.6-infopage-namechange
|
---|
46 | automake_texi=doc/automake.texi
|
---|
47 | ;;
|
---|
48 | esac
|
---|
49 |
|
---|
50 | export WANT_AUTOCONF=2.5
|
---|
51 |
|
---|
52 | sed -i -e "/^@setfilename/s|automake|automake${AUTOMAKE_VER:0:3}|" \
|
---|
53 | -e "s|automake: (automake)|automake v${AUTOMAKE_VER:0:3}: (automake${AUTOMAKE_VER:0:3})|" \
|
---|
54 | -e "s|aclocal: (automake)|aclocal v${AUTOMAKE_VER:0:3}: (automake${AUTOMAKE_VER:0:3})|" \
|
---|
55 | ${automake_texi}
|
---|
56 |
|
---|
57 | max_log_init Automake ${AUTOMAKE_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
58 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
59 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
60 | ./configure --prefix=/usr \
|
---|
61 | >> ${LOGFILE} 2>&1 &&
|
---|
62 | echo " o Configure OK" &&
|
---|
63 |
|
---|
64 | case ${AUTOMAKE_VER} in
|
---|
65 | 1.4* )
|
---|
66 | min_log_init ${BUILDLOGS} &&
|
---|
67 | make pkgdatadir=/usr/share/automake-${AUTOMAKE_VER:0:3} \
|
---|
68 | m4datadir=/usr/share/aclocal-${AUTOMAKE_VER:0:3} \
|
---|
69 | install \
|
---|
70 | >> ${LOGFILE} 2>&1 &&
|
---|
71 | echo " o Build OK" || barf
|
---|
72 | ;;
|
---|
73 | * )
|
---|
74 | min_log_init ${BUILDLOGS} &&
|
---|
75 | make install \
|
---|
76 | >> ${LOGFILE} 2>&1 &&
|
---|
77 | echo " o Build OK" || barf
|
---|
78 | ;;
|
---|
79 | esac
|
---|
80 |
|
---|
81 | case ${AUTOMAKE_VER} in
|
---|
82 | 1.5 )
|
---|
83 | mv /usr/bin/automake /usr/bin/automake-${AUTOMAKE_VER:0:3}
|
---|
84 | mv /usr/bin/aclocal /usr/bin/aclocal-${AUTOMAKE_VER:0:3}
|
---|
85 | rm -rf /usr/share/automake-${AUTOMAKE_VER:0:3} \
|
---|
86 | /usr/share/aclocal-${AUTOMAKE_VER:0:3}
|
---|
87 | mv /usr/share/automake /usr/share/automake-${AUTOMAKE_VER:0:3}
|
---|
88 | mv /usr/share/aclocal /usr/share/aclocal-${AUTOMAKE_VER:0:3}
|
---|
89 | ;;
|
---|
90 | esac
|
---|
91 |
|
---|
92 | ln -sfn ../gnu-config-files/config.sub \
|
---|
93 | /usr/share/automake-${AUTOMAKE_VER:0:3}/config.sub
|
---|
94 | ln -sfn ../gnu-config-files/config.guess \
|
---|
95 | /usr/share/automake-${AUTOMAKE_VER:0:3}/config.guess
|
---|