source: scripts/untested/autotools/automake.sh@ 60454e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 60454e2 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100755
File size: 2.6 KB
Line 
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
11cd ${SRC}
12LOG=automake-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball automake-${AUTOMAKE_VER} &&
18cd ${PKGDIR}
19
20case ${AUTOMAKE_VER} in
211.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;;
271.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;;
331.6* )
34 automake_texi=automake.texi
35;;
361.7.9 )
37 apply_patch automake-1.7.9-infopage-namechange
38 automake_texi=automake.texi
39;;
401.8* )
41 apply_patch automake-1.8.2-infopage-namechange
42 automake_texi=doc/automake.texi
43;;
441.9.6 )
45 apply_patch automake-1.9.6-infopage-namechange
46 automake_texi=doc/automake.texi
47;;
48esac
49
50export WANT_AUTOCONF=2.5
51
52sed -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
57max_log_init Automake ${AUTOMAKE_VER} "native (shared)" ${CONFLOGS} ${LOG}
58CC="${CC-gcc} ${ARCH_CFLAGS}" \
59CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
60./configure --prefix=/usr \
61 >> ${LOGFILE} 2>&1 &&
62echo " o Configure OK" &&
63
64case ${AUTOMAKE_VER} in
651.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;;
79esac
80
81case ${AUTOMAKE_VER} in
821.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;;
90esac
91
92ln -sfn ../gnu-config-files/config.sub \
93 /usr/share/automake-${AUTOMAKE_VER:0:3}/config.sub
94ln -sfn ../gnu-config-files/config.guess \
95 /usr/share/automake-${AUTOMAKE_VER:0:3}/config.guess
Note: See TracBrowser for help on using the repository browser.